Repository navigation
Commit 6f4d111
Exclude phpstorm-stubs test suite from function metadata generation
The Finder in bin/generate-function-metadata.php scanned every PHP file
in vendor/jetbrains/phpstorm-stubs, including the package's own tests/
directory. The latest stubs master added anonymous classes with methods
there, and NameResolver does not assign namespacedName to anonymous
classes, so the script died with "Call to a member function toString()
on null" and the "Update PhpStorm stubs" workflow failed.
Exclude tests/ from the scan and skip methods of anonymous classes.
Regenerating drops four bogus StubTests\* entries that had leaked into
resources/functionMetadata.php, and the generator now writes the
trailing newline that .editorconfig requires.
ob_get_level() was flipped to hasSideEffects => false by hand in #5909
(its level is tracked in the scope, so the call result must stay
narrowable) without teaching the generator, so any regeneration would
have reverted it. Add it to the list of scope-managed functions and
align bin/functionMetadata_original.php, so the generated file is
stable.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RM7vts9eefx5pyNFj7jRKY1 parent 767a56f commit 6f4d111
3 files changed
Lines changed: 8 additions & 7 deletions
File tree
- bin
- resources
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
94 | 99 | | |
95 | 100 | | |
96 | 101 | | |
| |||
229 | 234 | | |
230 | 235 | | |
231 | 236 | | |
232 | | - | |
| 237 | + | |
233 | 238 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | 679 | | |
684 | 680 | | |
685 | 681 | | |
| |||
0 commit comments