summaryrefslogtreecommitdiffstats
path: root/php-sebastian-global-state3-tests.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-11-08 10:12:49 +0100
committerRemi Collet <remi@php.net>2021-11-08 10:12:49 +0100
commit1985fcbc6526643d9ae2f83b4abe6b54bcbf252b (patch)
tree315b0f54535298dd96ddc1a1f59a45d14c083e05 /php-sebastian-global-state3-tests.patch
parent87c78049b67b4ce1f1569b92e26c778af57b28ed (diff)
fix FTBFS with 8.1
Diffstat (limited to 'php-sebastian-global-state3-tests.patch')
-rw-r--r--php-sebastian-global-state3-tests.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/php-sebastian-global-state3-tests.patch b/php-sebastian-global-state3-tests.patch
new file mode 100644
index 0000000..6ed9d52
--- /dev/null
+++ b/php-sebastian-global-state3-tests.patch
@@ -0,0 +1,12 @@
+diff -up ./tests/CodeExporterTest.php.old ./tests/CodeExporterTest.php
+--- ./tests/CodeExporterTest.php.old 2021-11-05 12:23:16.685055861 +0100
++++ ./tests/CodeExporterTest.php 2021-11-05 12:23:19.837046004 +0100
+@@ -21,7 +21,7 @@ final class CodeExporterTest extends Tes
+ */
+ public function testCanExportGlobalVariablesToCode(): void
+ {
+- $GLOBALS = ['foo' => 'bar'];
++ $GLOBALS['foo'] = 'bar';
+
+ $snapshot = new Snapshot(null, true, false, false, false, false, false, false, false, false);
+