szepeviktor/phpstan-wordpress

Add dynamic return type extension for `get_sites()`

swissspidy opened this issue ยท 2 comments

The get_sites() function in WordPress returns of WP_Site[], int[] when 'fields' is set to 'ids', or int when 'count' is passed as a query var.

Hello Pascal!
We need a diligent contributor! ๐Ÿ™ƒ

๐Ÿ’ก Viktor does not let others set up multisite installations.

if (multisite) then exit!