diff --git a/composer.json b/composer.json index 8d8f339a09d..eaff65ae708 100644 --- a/composer.json +++ b/composer.json @@ -123,7 +123,8 @@ "patches/TreeNode.patch" ], "hoa/consistency": [ - "patches/Consistency.patch" + "patches/Consistency.patch", + "patches/Prelude.patch" ], "hoa/protocol": [ "patches/Node.patch", diff --git a/composer.lock b/composer.lock index 7165ad9d85e..2c24c7a03c0 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "55d62e3e19cd6606c2f5269dd2b68db1", + "content-hash": "ff2813cff2047707b62386eb5c7906d7", "packages": [ { "name": "clue/ndjson-react", diff --git a/patches/Prelude.patch b/patches/Prelude.patch new file mode 100644 index 00000000000..c1d385dd376 --- /dev/null +++ b/patches/Prelude.patch @@ -0,0 +1,11 @@ +--- Prelude.php ++++ Prelude.php +@@ -49,7 +49,7 @@ + + $define = function ($constantName, $constantValue, $case = false) { + if (!defined($constantName)) { +- return define($constantName, $constantValue, $case); ++ return define($constantName, $constantValue); + } + + return false;