Commit c11175a
committed
Fix PHP 8.2 deprecation notices in tolerant-php-parser
https://wiki.php.net/rfc/deprecate_dynamic_properties
was approved and merged into php 8.2.
Dynamic (undeclared) properties will be forbidden without
`#[AllowDynamicProperties]` in the next major release (9.0).
A separate followup question would be whether to include
`#[AllowDynamicProperties]` on the Node class declaration
or to instead do something similar to nikic/php-parser and add a dedicated
attributes array property for any applications using this library to
track state on nodes.
Fix phpstan notice1 parent af2ff38 commit c11175a
File tree
3 files changed
+22
-2
lines changed- src
- tests
3 files changed
+22
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2128 | 2128 | | |
2129 | 2129 | | |
2130 | 2130 | | |
| 2131 | + | |
2131 | 2132 | | |
2132 | 2133 | | |
2133 | 2134 | | |
| |||
2149 | 2150 | | |
2150 | 2151 | | |
2151 | 2152 | | |
| 2153 | + | |
2152 | 2154 | | |
2153 | 2155 | | |
2154 | 2156 | | |
| |||
2275 | 2277 | | |
2276 | 2278 | | |
2277 | 2279 | | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
2278 | 2288 | | |
2279 | 2289 | | |
2280 | 2290 | | |
| |||
2289 | 2299 | | |
2290 | 2300 | | |
2291 | 2301 | | |
2292 | | - | |
2293 | | - | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
2294 | 2308 | | |
2295 | 2309 | | |
2296 | 2310 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
0 commit comments