Skip to content

Commit ec553f9

Browse files
committed
fix: PHPDoc standardization
1 parent e4121fd commit ec553f9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Reflection.php

+10-10
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@ public static function get_attributes(
123123
* Get decorators for a target
124124
*
125125
* @template T of object
126-
* @param Reflector|class-string<T>|T|callable|\Closure|array{T, string} $target The target to get decorators for.
127-
* @param class-string<T> $decorator The decorator to get.
128-
* @param int|null $flags Flags to pass to getAttributes.
129-
* @return array<T>
126+
* @param Reflector|mixed $target The target to get decorators for.
127+
* @param class-string<T> $decorator The decorator to get.
128+
* @param int|null $flags Flags to pass to getAttributes.
129+
* @return array<int,T>
130130
*/
131131
public static function get_decorators(
132-
callable|array|string|object $target,
132+
mixed $target,
133133
string $decorator,
134134
?int $flags = ReflectionAttribute::IS_INSTANCEOF,
135135
): array {
@@ -143,13 +143,13 @@ public static function get_decorators(
143143
* Get decorators for a target class, and its parent classes.
144144
*
145145
* @template T of object
146-
* @param Reflector|class-string<T>|T|callable|\Closure|array{T, string} $target The target to get decorators for.
147-
* @param class-string<T> $decorator The decorator to get.
148-
* @param int|null $flags Flags to pass to getAttributes.
149-
* @return array<T>
146+
* @param Reflector|mixed $target The target to get decorators for.
147+
* @param class-string<T> $decorator The decorator to get.
148+
* @param int|null $flags Flags to pass to getAttributes.
149+
* @return array<int,T>
150150
*/
151151
public static function get_decorators_deep(
152-
callable|array|string|object $target,
152+
mixed $target,
153153
string $decorator,
154154
?int $flags = ReflectionAttribute::IS_INSTANCEOF,
155155
): array {

0 commit comments

Comments
 (0)