Skip to content

Commit 1205999

Browse files
minor #51096 Use more "First class callable syntax" + Normalize set_error_handler/set_exception_handler calls (lyrixx)
This PR was merged into the 6.4 branch. Discussion ---------- Use more "First class callable syntax" + Normalize set_error_handler/set_exception_handler calls | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Commits ------- be1bbbccc1 Use more "First class callable syntax" + Normalize set_error_handler/set_exception_handler calls
2 parents a40051f + 90c167e commit 1205999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Matcher/Dumper/StaticPrefixCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ private function getCommonPrefix(string $prefix, string $anotherPrefix): array
147147
$baseLength = \strlen($this->prefix);
148148
$end = min(\strlen($prefix), \strlen($anotherPrefix));
149149
$staticLength = null;
150-
set_error_handler([__CLASS__, 'handleError']);
150+
set_error_handler(self::handleError(...));
151151

152152
try {
153153
for ($i = $baseLength; $i < $end && $prefix[$i] === $anotherPrefix[$i]; ++$i) {

0 commit comments

Comments
 (0)