Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"nikic/php-parser": "< 4.12.0",
"php-stubs/generator": "^0.8.3",
"phpdocumentor/reflection-docblock": "^5.3",
"phpstan/phpstan": "^1.2"
"phpstan/phpstan": "^1.9"
},
"suggest": {
"paragonie/sodium_compat": "Pure PHP implementation of libsodium",
Expand Down
1 change: 1 addition & 0 deletions functionMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,5 @@
'WP_Block_List::offsetGet' => ['WP_Block|null', 'offset'=>'int'],
'WP_Block_List::offsetSet' => ['void', 'offset'=>'int|null'],
'WP_Block_List::offsetUnset' => ['void', 'offset'=>'int'],
'is_wp_error' => ['bool', '@phpstan-assert-if-true'=>'\WP_Error $thing']
];
2 changes: 2 additions & 0 deletions wordpress-stubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -110284,6 +110284,8 @@ function wp_doing_cron()
*
* @param mixed $thing The variable to check.
* @return bool Whether the variable is an instance of WP_Error.
* @phpstan-assert-if-true \WP_Error $thing
* @phpstan-return bool
*/
function is_wp_error($thing)
{
Expand Down