summaryrefslogtreecommitdiffstats
path: root/php-sebastian-global-state4-tests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-sebastian-global-state4-tests.patch')
-rw-r--r--php-sebastian-global-state4-tests.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/php-sebastian-global-state4-tests.patch b/php-sebastian-global-state4-tests.patch
new file mode 100644
index 0000000..6ed9d52
--- /dev/null
+++ b/php-sebastian-global-state4-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);
+