diff options
| author | Remi Collet <remi@remirepo.net> | 2025-12-09 08:41:48 +0100 |
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2025-12-09 08:41:48 +0100 |
| commit | 659cdb6074d0a87f10724fb2bf707bbfe7299d88 (patch) | |
| tree | f66b79208abd020c051da2847109f297de4192cb /upstream.patch | |
| parent | bf4b6dfa49f1b9e63ab70c9059b9289bd35e880a (diff) | |
raise dependency on nikic/php-parser 5.7.0
raise dependency on theseer/tokenizer 2.0.1
add upstream patch for theseer/tokenizer 2.x
Diffstat (limited to 'upstream.patch')
| -rw-r--r-- | upstream.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/upstream.patch b/upstream.patch new file mode 100644 index 0000000..06f320e --- /dev/null +++ b/upstream.patch @@ -0,0 +1,36 @@ +From 3cf9ab1cff5a9b8912bd251f7e4fc5f700aea7b7 Mon Sep 17 00:00:00 2001 +From: Markus Staab <markus.staab@redaxo.de> +Date: Mon, 8 Dec 2025 12:32:24 +0100 +Subject: [PATCH] Fix regression from update to theseer/tokenizer 2.x + +--- + composer.json | 2 +- + .../source_with_class_and_anonymous_function.php.xml | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/composer.json b/composer.json +index 607a2d5e1..550171f84 100644 +--- a/composer.json ++++ b/composer.json +@@ -40,7 +40,7 @@ + "sebastian/environment": "^8.0.3", + "sebastian/lines-of-code": "^4.0", + "sebastian/version": "^6.0", +- "theseer/tokenizer": "^2.0" ++ "theseer/tokenizer": "^2.0.1" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.1" +diff --git a/tests/_files/Report/XML/CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.xml b/tests/_files/Report/XML/CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.xml +index 9ef89df19..88523d37c 100644 +--- a/tests/_files/Report/XML/CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.xml ++++ b/tests/_files/Report/XML/CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.xml +@@ -100,7 +100,7 @@ + <token name="T_FUNCTION">function</token> + <token name="T_WHITESPACE"> </token> + <token name="T_OPEN_BRACKET">(</token> +- <token name="T_AMPERSAND">&</token> ++ <token name="T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG">&</token> + <token name="T_VARIABLE">$val</token> + <token name="T_COMMA">,</token> + <token name="T_WHITESPACE"> </token> |
