summaryrefslogtreecommitdiffstats
path: root/upstream.patch
diff options
context:
space:
mode:
Diffstat (limited to 'upstream.patch')
-rw-r--r--upstream.patch36
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">&amp;</token>
++ <token name="T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG">&amp;</token>
+ <token name="T_VARIABLE">$val</token>
+ <token name="T_COMMA">,</token>
+ <token name="T_WHITESPACE"> </token>