Skip to content

Fix 19579 - #19582

Merged
dereuromark merged 2 commits into
5.xfrom
fix-19579
Aug 3, 2026
Merged

Fix 19579#19582
dereuromark merged 2 commits into
5.xfrom
fix-19579

Conversation

@markstory

Copy link
Copy Markdown
Member

Correct a gap in source parsing logic that was not handling Router::class references which tokenize to

T_STRING, T_DOUBLE_COLON, T_CLASS.

By tracking the previous token type we can avoid this scenario from being treated as a class definition. I've also removed several stub classes that no longer have base classes defined as these classes were also being caught in the stderr output.

Fixes #19579

These classes no longer have valid base classes. I found these when
reviewing the output from `i18n extract` in the test suite.
Correct a gap in source parsing logic that was not handling
`Router::class` references which tokenize to

```
T_STRING, T_DOUBLE_COLON, T_CLASS.
```

By tracking the previous token type we can avoid this scenario from
being treated as a class definition.

Fixes #19579
@markstory markstory added this to the 5.4.2 milestone Aug 3, 2026
@dereuromark
dereuromark merged commit 64398ca into 5.x Aug 3, 2026
14 of 15 checks passed
@dereuromark
dereuromark deleted the fix-19579 branch August 3, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

i18n extract: parseClassName() treats ::class as a class declaration

3 participants