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)
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 ) {
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments