From 6c5d9de3ca6aade8e40e6a17fcdffa701701fa8b Mon Sep 17 00:00:00 2001 From: fadrian06 Date: Fri, 14 Aug 2026 02:15:03 -0400 Subject: [PATCH] remove Engine @template --- flight/Engine.php | 1 - flight/core/Dispatcher.php | 9 --------- 2 files changed, 10 deletions(-) diff --git a/flight/Engine.php b/flight/Engine.php index 880decf..372f952 100644 --- a/flight/Engine.php +++ b/flight/Engine.php @@ -57,7 +57,6 @@ use Psr\Container\ContainerInterface; * @method void lastModified(int $time) * @method void download(string $filePath) * - * @phpstan-template EngineTemplate of object * @phpstan-method void registerContainerHandler(ContainerInterface|callable(class-string $id, array $params): ?EngineTemplate $containerHandler) * @phpstan-method Route route(string $pattern, callable|string|array{0: class-string, 1: string} $callback, bool $pass_route = false, string $alias = '') * @phpstan-method void group(string $pattern, callable $callback, (class-string|callable|array{0: class-string, 1: string})[] $group_middlewares = []) diff --git a/flight/core/Dispatcher.php b/flight/core/Dispatcher.php index 62ff7f9..97ea22e 100644 --- a/flight/core/Dispatcher.php +++ b/flight/core/Dispatcher.php @@ -20,7 +20,6 @@ use TypeError; * * @license MIT, http://flightphp.com/license * @copyright Copyright (c) 2011, Mike Cao - * @phpstan-template EngineTemplate of object */ class Dispatcher { @@ -30,7 +29,6 @@ class Dispatcher /** Exception message if thrown by setting the container as a callable method. */ protected ?Throwable $containerException = null; - /** @var ?Engine $engine Engine instance. */ protected ?Engine $engine = null; /** @var array Mapped events. */ @@ -76,13 +74,6 @@ class Dispatcher ); } - /** - * Sets the engine instance - * - * @param Engine $engine Flight instance - * - * @return void - */ public function setEngine(Engine $engine): void { $this->engine = $engine;