Commit 4f281a6
committed
Check if the property exists before checking whether it's an int
Older nette/database (pre 3.2.4) used never return type for __get and in that case PHPStan returns "Call to function is_int() with never will always evaluate to true." I could require nette/database 3.2.4 or add this check, and I think the check makes a bit more sense.1 parent 834bb4b commit 4f281a6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| |||
0 commit comments