diff --git a/src/ViewManager.php b/src/ViewManager.php index 3ec28752..7f310331 100644 --- a/src/ViewManager.php +++ b/src/ViewManager.php @@ -61,7 +61,7 @@ public function addEngine(EngineInterface $engine): void { $this->engines[] = $engine->withLoader($this->loader); - \uasort($this->engines, static fn (EngineInterface $a, EngineInterface $b) => \strcmp( + \uasort($this->engines, static fn (EngineInterface $a, EngineInterface $b): int => \strcmp( $a->getLoader()->getExtension() ?? '', $b->getLoader()->getExtension() ?? '' ));