@@ -163,7 +163,7 @@ public static function getProperty(string $property, object $object): mixed
163163 return $ property ->getValue ($ object );
164164 }
165165
166- public static function getType (Type | string | null $ type ): string
166+ public static function getType (Type | string | null $ type ): string
167167 {
168168 $ exception = new LogicException (
169169 sprintf (
@@ -195,7 +195,7 @@ public static function getType(Type | string | null $type): string
195195 *
196196 * @throws ReflectionException
197197 */
198- public static function setProperty (string $ property , UuidInterface | array | null $ value , object $ object ): void
198+ public static function setProperty (string $ property , UuidInterface | array | null $ value , object $ object ): void
199199 {
200200 $ clazz = new ReflectionClass ($ object ::class);
201201
@@ -208,6 +208,8 @@ public static function setProperty(string $property, UuidInterface | array | nul
208208 * Helper method to get valid value for specified type.
209209 *
210210 * @throws Throwable
211+ *
212+ * @param string|class-string $type
211213 */
212214 public static function getValidValueForType (string $ type , FieldMapping |AssociationMapping |null $ meta ): mixed
213215 {
@@ -225,7 +227,7 @@ public static function getValidValueForType(string $type, FieldMapping|Associati
225227 *
226228 * @throws Throwable
227229 */
228- public static function getInvalidValueForType (string $ type ): DateTime | stdClass | string
230+ public static function getInvalidValueForType (string $ type ): DateTime | stdClass | string
229231 {
230232 if ($ type !== stdClass::class && substr_count ($ type , '\\' ) > 1 ) {
231233 $ type = self ::TYPE_CUSTOM_CLASS ;
@@ -257,11 +259,11 @@ public static function getInvalidValueForType(string $type): DateTime | stdClass
257259 /**
258260 * @throws Throwable
259261 *
260- * @param class-string $type
262+ * @param string| class-string $type
261263 */
262264 private static function getValidValue (
263265 FieldMapping |AssociationMapping |null $ meta ,
264- string $ type
266+ string $ type,
265267 ): mixed {
266268 $ class = stdClass::class;
267269 $ params = [null ];
0 commit comments