diff --git a/src/Collector/Collector/AbstractCollector.php b/src/Collector/Collector/AbstractCollector.php index db715595..ea0b6d1b 100644 --- a/src/Collector/Collector/AbstractCollector.php +++ b/src/Collector/Collector/AbstractCollector.php @@ -35,7 +35,7 @@ public static function loadData(CollectedDataNode $collectedDataNode, string $cl /** * @phpstan-param array $items - * @return ?A[] + * @return non-empty-array|null */ protected function collectItems(array $items): ?array { diff --git a/src/LatteContext/Collector/AbstractLatteContextCollector.php b/src/LatteContext/Collector/AbstractLatteContextCollector.php index 50a6e7b3..f170d641 100644 --- a/src/LatteContext/Collector/AbstractLatteContextCollector.php +++ b/src/LatteContext/Collector/AbstractLatteContextCollector.php @@ -35,7 +35,7 @@ abstract public function getNodeTypes(): array; /** * @param Node $node - * @phpstan-return null|array + * @phpstan-return null|non-empty-array */ abstract public function collectData(Node $node, Scope $scope): ?array; } diff --git a/src/LatteContext/Collector/FormCollector.php b/src/LatteContext/Collector/FormCollector.php index a27c13f0..2cbd1352 100644 --- a/src/LatteContext/Collector/FormCollector.php +++ b/src/LatteContext/Collector/FormCollector.php @@ -38,7 +38,7 @@ public function getNodeTypes(): array /** * @param ClassMethod $node - * @phpstan-return null|CollectedForm[] + * @phpstan-return null|non-empty-array */ public function collectData(Node $node, Scope $scope): ?array { @@ -51,7 +51,7 @@ public function collectData(Node $node, Scope $scope): ?array } /** - * @phpstan-return null|CollectedForm[] + * @phpstan-return null|non-empty-array */ private function findCreateComponent(ClassMethod $node, ClassReflection $classReflection, Scope $scope): ?array { diff --git a/src/LatteContext/Collector/MethodReturnCollector.php b/src/LatteContext/Collector/MethodReturnCollector.php index 25f08194..5078bcc8 100644 --- a/src/LatteContext/Collector/MethodReturnCollector.php +++ b/src/LatteContext/Collector/MethodReturnCollector.php @@ -21,7 +21,7 @@ public function getNodeTypes(): array /** * @param Return_ $node - * @phpstan-return null|CollectedMethod[] + * @phpstan-return null|non-empty-array */ public function collectData(Node $node, Scope $scope): ?array {