From 9e6f122bf2b279a245d003c26b504598b82d632d Mon Sep 17 00:00:00 2001 From: Niklas Maier Date: Mon, 24 Feb 2025 13:00:44 +0100 Subject: [PATCH] Use nullable return type for fromString() of ConstructibleFromString --- Classes/Interfaces/ConstructibleFromString.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Classes/Interfaces/ConstructibleFromString.php b/Classes/Interfaces/ConstructibleFromString.php index a9f8ef5..118f2a0 100644 --- a/Classes/Interfaces/ConstructibleFromString.php +++ b/Classes/Interfaces/ConstructibleFromString.php @@ -10,11 +10,7 @@ interface ConstructibleFromString { /** - * Creates an instance of the class based on the provided string. - * - * @param string $value - * - * @return object + * Creates an instance of the class based on the provided string */ - public static function fromString(string $value); + public static function fromString(string $value): ?object; }