Skip to content

Commit 30a1120

Browse files
committed
Make more anonymous functions static
1 parent ec9dd53 commit 30a1120

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/CSSList/CSSList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ protected function renderListContents(OutputFormat $oOutputFormat)
413413
$oNextLevel = $oOutputFormat->nextLevel();
414414
}
415415
foreach ($this->aContents as $oContent) {
416-
$sRendered = $oOutputFormat->safely(function () use ($oNextLevel, $oContent): string {
416+
$sRendered = $oOutputFormat->safely(static function () use ($oNextLevel, $oContent): string {
417417
return $oContent->render($oNextLevel);
418418
});
419419
if ($sRendered === null) {

src/RuleSet/RuleSet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ protected function renderRules(OutputFormat $oOutputFormat)
266266
$oNextLevel = $oOutputFormat->nextLevel();
267267
foreach ($this->aRules as $aRules) {
268268
foreach ($aRules as $rule) {
269-
$sRendered = $oNextLevel->safely(function () use ($rule, $oNextLevel): string {
269+
$sRendered = $oNextLevel->safely(static function () use ($rule, $oNextLevel): string {
270270
return $rule->render($oNextLevel);
271271
});
272272
if ($sRendered === null) {

0 commit comments

Comments
 (0)