Skip to content

Commit 55ebe5c

Browse files
authored
CSSJanus: Replace use of 'self' in callables
Fixes https://github.com/wikimedia/php-cssjanus/issues/36
1 parent 816f9f0 commit 55ebe5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/CSSJanus.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ private static function fixFourPartNotation($css) {
310310
private static function fixBorderRadius($css) {
311311
return preg_replace_callback(
312312
self::$patterns['border_radius'],
313-
array('self', 'calculateBorderRadius'),
313+
array(self::class, 'calculateBorderRadius'),
314314
$css
315315
);
316316
}
@@ -434,7 +434,7 @@ private static function fixTranslate($css) {
434434
private static function fixBackgroundPosition($css) {
435435
$replaced = preg_replace_callback(
436436
self::$patterns['bg_horizontal_percentage'],
437-
array('self', 'calculateNewBackgroundPosition'),
437+
array(self::class, 'calculateNewBackgroundPosition'),
438438
$css
439439
);
440440
if ($replaced !== null) {
@@ -443,7 +443,7 @@ private static function fixBackgroundPosition($css) {
443443
}
444444
$replaced = preg_replace_callback(
445445
self::$patterns['bg_horizontal_percentage_x'],
446-
array('self', 'calculateNewBackgroundPosition'),
446+
array(self::class, 'calculateNewBackgroundPosition'),
447447
$css
448448
);
449449
if ($replaced !== null) {

0 commit comments

Comments
 (0)