Commit 4b9ac85
committed
Update the docs for constant usage in params
The docs said you can use `::JSON_THROW_ON_ERROR` in allowed param values which is incorrect as you have to use `::constant(JSON_THROW_ON_ERROR)` but only if PHPStan uses an older version of nette/di, which it currently does. If one day PHPStan will start using a newer version, it may break, but consider yourself warned.
Close #361
See also #2501 parent d58cc29 commit 4b9ac85
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
0 commit comments