Skip to content

Commit 9e6f122

Browse files
committed
Use nullable return type for fromString() of ConstructibleFromString
1 parent 5a6ec86 commit 9e6f122

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Classes/Interfaces/ConstructibleFromString.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@
1010
interface ConstructibleFromString
1111
{
1212
/**
13-
* Creates an instance of the class based on the provided string.
14-
*
15-
* @param string $value
16-
*
17-
* @return object
13+
* Creates an instance of the class based on the provided string
1814
*/
19-
public static function fromString(string $value);
15+
public static function fromString(string $value): ?object;
2016
}

0 commit comments

Comments
 (0)