Skip to content

Commit 90c167e

Browse files
committed
Use more "First class callable syntax" + Normalize set_error_handler/set_exception_handler calls
1 parent 3a0611a commit 90c167e

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)