Skip to content

chore: ignore deprecations in token_get_all#8963

Merged
kubawerlos merged 6 commits intoPHP-CS-Fixer:masterfrom
gharlan:tokenizer-deprecations
Aug 23, 2025
Merged

chore: ignore deprecations in token_get_all#8963
kubawerlos merged 6 commits intoPHP-CS-Fixer:masterfrom
gharlan:tokenizer-deprecations

Conversation

@gharlan
Copy link
Copy Markdown
Member

@gharlan gharlan commented Aug 22, 2025

No description provided.

@gharlan gharlan changed the title chore: ignore deprecations in token_get_all chore: ignore deprecations in token_get_all Aug 22, 2025
Comment thread src/Tokenizer/Tokens.php
$this->updateSizeToZero(); // clear memory
$tokens = token_get_all($code, \TOKEN_PARSE);

$prevErrorHandler = set_error_handler(static function ($type, $msg, $file, $line, $context = []) use (&$prevErrorHandler) {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@coveralls
Copy link
Copy Markdown

coveralls commented Aug 22, 2025

Coverage Status

coverage: 94.741% (-0.009%) from 94.75%
when pulling f0b12e6 on gharlan:tokenizer-deprecations
into 70a647f on PHP-CS-Fixer:master.

@gharlan gharlan marked this pull request as ready for review August 22, 2025 11:34
@kubawerlos kubawerlos enabled auto-merge (squash) August 23, 2025 13:42
@kubawerlos kubawerlos merged commit 8a2010a into PHP-CS-Fixer:master Aug 23, 2025
31 checks passed
@gharlan gharlan deleted the tokenizer-deprecations branch August 23, 2025 13:53
Comment thread src/Tokenizer/Tokens.php
$this->updateSizeToZero(); // clear memory
$tokens = token_get_all($code, \TOKEN_PARSE);

$prevErrorHandler = set_error_handler(static function ($type, $msg, $file, $line, $context = []) use (&$prevErrorHandler) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

i would wonder if we can have test dedicated to this (not only those already existing tests running on < new php

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.

4 participants