File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ protected function renderListContents(OutputFormat $oOutputFormat)
413
413
$ oNextLevel = $ oOutputFormat ->nextLevel ();
414
414
}
415
415
foreach ($ this ->aContents as $ oContent ) {
416
- $ sRendered = $ oOutputFormat ->safely (function () use ($ oNextLevel , $ oContent ): string {
416
+ $ sRendered = $ oOutputFormat ->safely (static function () use ($ oNextLevel , $ oContent ): string {
417
417
return $ oContent ->render ($ oNextLevel );
418
418
});
419
419
if ($ sRendered === null ) {
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ protected function renderRules(OutputFormat $oOutputFormat)
266
266
$ oNextLevel = $ oOutputFormat ->nextLevel ();
267
267
foreach ($ this ->aRules as $ aRules ) {
268
268
foreach ($ aRules as $ rule ) {
269
- $ sRendered = $ oNextLevel ->safely (function () use ($ rule , $ oNextLevel ): string {
269
+ $ sRendered = $ oNextLevel ->safely (static function () use ($ rule , $ oNextLevel ): string {
270
270
return $ rule ->render ($ oNextLevel );
271
271
});
272
272
if ($ sRendered === null ) {
You can’t perform that action at this time.
0 commit comments