Commit 15527e5
committed
Fix PHPStan issue with nette/component-model 3.1.0
nette/component-model 3.1.0 made the type annotations more precise,
correctly declaring that `null` will not be returned when `$throw` argument is `true` (default):
nette/component-model@fbab7bc
As a result PHPStan started to complain:
Expression on left side of ?? is not nullable.
(cherry picked from commit 7445d0d, 2afcd08)1 parent 950fe0c commit 15527e5
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
399 | 400 | | |
400 | 401 | | |
401 | 402 | | |
| 403 | + | |
402 | 404 | | |
403 | 405 | | |
404 | 406 | | |
405 | | - | |
| 407 | + | |
406 | 408 | | |
407 | 409 | | |
408 | 410 | | |
| |||
0 commit comments