Skip to content

Add missing label characters in PrettyPrinterAbstract::$labelCharMap#1150

Merged
nikic merged 2 commits into
nikic:masterfrom
TimWolla:fix-pretty-print-label-map
Jul 2, 2026
Merged

Add missing label characters in PrettyPrinterAbstract::$labelCharMap#1150
nikic merged 2 commits into
nikic:masterfrom
TimWolla:fix-pretty-print-label-map

Conversation

@TimWolla

@TimWolla TimWolla commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

The underscore was missing from the list. The fix borrows the existing regular expression in NullsafeTokenEmulator.

As a side-effect, the only use of the ext/ctype extension has been removed, allowing the removal of the dependency on this (technically optional) extension.

TimWolla added 2 commits July 2, 2026 10:40
The underscore was missing from the list. The fix borrows the existing regular
expression in `NullsafeTokenEmulator`.
@TimWolla

TimWolla commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

PHPStan failure is unrelated and already exists on master.

@nikic nikic merged commit b560dba into nikic:master Jul 2, 2026
10 of 11 checks passed
@TimWolla TimWolla deleted the fix-pretty-print-label-map branch July 2, 2026 15:34
Comment thread composer.json
"php": ">=7.4",
"ext-tokenizer": "*",
"ext-json": "*",
"ext-ctype": "*"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work with ctype drop 👏

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.

3 participants