@@ -22,7 +22,7 @@ final class Stub
2222 *
2323 * @template T of object
2424 */
25- public static function create (string $ class , array $ properties = []) : object
25+ public static function create (string $ class , array $ properties = []): object
2626 {
2727 $ reflection = new ReflectionClass ($ class );
2828
@@ -49,7 +49,7 @@ public static function create(string $class, array $properties = []) : object
4949 *
5050 * @template T of object
5151 */
52- public static function extend (object $ stub , array $ newProperties = []) : object
52+ public static function extend (object $ stub , array $ newProperties = []): object
5353 {
5454 // phpstan has problem with analyzing this still
5555 // phpcs:ignore SlevomatCodingStandard.Classes.ModernClassNameReference.ClassNameReferencedViaFunctionCall
@@ -77,7 +77,7 @@ public static function extend(object $stub, array $newProperties = []) : object
7777 *
7878 * @template T of object
7979 */
80- private static function getClosestProperty (ReflectionClass $ class , string $ property ) : ? ReflectionProperty
80+ private static function getClosestProperty (ReflectionClass $ class , string $ property ): ReflectionProperty | null
8181 {
8282 if ($ class ->hasProperty ($ property )) {
8383 return $ class ->getProperty ($ property );
@@ -103,7 +103,7 @@ private static function getClosestProperty(ReflectionClass $class, string $prope
103103 *
104104 * @template T of object
105105 */
106- private static function getAllProperties (ReflectionClass $ reflection , array $ properties = []) : array
106+ private static function getAllProperties (ReflectionClass $ reflection , array $ properties = []): array
107107 {
108108 $ properties = array_merge ($ reflection ->getProperties (), $ properties );
109109
0 commit comments