From 3a4a527a6a51d294ba074c106995f82b8db5141a Mon Sep 17 00:00:00 2001 From: Sebastian Michaelsen Date: Fri, 13 Mar 2026 09:35:51 +0100 Subject: [PATCH] chore: add phpstan annotation to assert this makes phpstan actually understand the consequence of the assert function, so it can infer type annotations for example --- Classes/DataProviding/Traits/Assert.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Classes/DataProviding/Traits/Assert.php b/Classes/DataProviding/Traits/Assert.php index 68af641..8ad37ee 100644 --- a/Classes/DataProviding/Traits/Assert.php +++ b/Classes/DataProviding/Traits/Assert.php @@ -10,6 +10,9 @@ */ trait Assert { + /** + * @phpstan-assert true $condition + */ protected function assert(bool $condition, string $message): void { if ($condition) {