Skip to content

Commit fd49a9d

Browse files
committed
Fix PHP 8 warning about self::x callable.
1 parent 5925ddb commit fd49a9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Util/Str.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class Str
5959
*/
6060
public static function unvis(string $input): string
6161
{
62-
$output = \preg_replace_callback(self::UNVIS_RX, 'self::unvisReplace', $input);
62+
$output = \preg_replace_callback(self::UNVIS_RX, [self::class, 'unvisReplace'], $input);
6363
// other escapes & octal are handled by stripcslashes
6464
return \stripcslashes($output);
6565
}

0 commit comments

Comments
 (0)