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
(cherry picked from commit 1203b8e014)
36 lines
1.7 KiB
Diff
36 lines
1.7 KiB
Diff
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>
|