Skip to content

Commit a6144e2

Browse files
SanderMullerclaude
authored andcommitted
Fix PHP 8.6 deprecation in hoa/consistency
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent ea3e112 commit a6144e2

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

‎composer.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@
123123
"patches/TreeNode.patch"
124124
],
125125
"hoa/consistency": [
126-
"patches/Consistency.patch"
126+
"patches/Consistency.patch",
127+
"patches/Prelude.patch"
127128
],
128129
"hoa/protocol": [
129130
"patches/Node.patch",

‎composer.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎patches/Prelude.patch‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- Prelude.php
2+
+++ Prelude.php
3+
@@ -49,7 +49,7 @@
4+
5+
$define = function ($constantName, $constantValue, $case = false) {
6+
if (!defined($constantName)) {
7+
- return define($constantName, $constantValue, $case);
8+
+ return define($constantName, $constantValue);
9+
}
10+
11+
return false;

0 commit comments

Comments
 (0)