diff --git a/src/Core/AspectKernel.php b/src/Core/AspectKernel.php index e0a903fc..25364193 100644 --- a/src/Core/AspectKernel.php +++ b/src/Core/AspectKernel.php @@ -41,6 +41,16 @@ * excludePaths: string[], * containerClass: class-string * } + * @phpstan-type UserKernelOptions array{ + * debug?: bool, + * appDir?: string, + * cacheDir?: string|null, + * cacheFileMode?: int, + * features?: int, + * includePaths?: string[], + * excludePaths?: string[], + * containerClass?: class-string + * } */ abstract class AspectKernel { @@ -102,16 +112,7 @@ public static function getInstance(): self /** * Init the kernel and make adjustments * - * @phpstan-param array{ - * debug?: bool, - * appDir?: literal-string&non-falsy-string, - * cacheDir?: string|null, - * cacheFileMode?: int, - * features?: int, - * includePaths?: array{}, - * excludePaths?: array{}, - * containerClass?: class-string - * } $options Additional kernel options + * @phpstan-param UserKernelOptions $options Additional kernel options */ public function init(array $options = []): void {