Commit b00dde1
committed
Code Quality: Add
This ensures PHPStan is aware that passing a `WP_Error` instance to `is_wp_error()` will cause the function to return `true`. This reduces the total number of PHPStan errors at rule level 7 from 14,271 to 13,233 (-1,038 or -7.27%).
Developed in #11095
See #64238.
git-svn-id: https://develop.svn.wordpress.org/trunk@61774 602fd350-edb4-49c9-b593-d223f7449a82@phpstan-assert-if-true to is_wp_error().1 parent 105c7aa commit b00dde1
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1798 | 1798 | | |
1799 | 1799 | | |
1800 | 1800 | | |
| 1801 | + | |
| 1802 | + | |
1801 | 1803 | | |
1802 | 1804 | | |
1803 | 1805 | | |
| |||
0 commit comments