@@ -123,13 +123,13 @@ public static function get_attributes(
123
123
* Get decorators for a target
124
124
*
125
125
* @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>
130
130
*/
131
131
public static function get_decorators (
132
- callable | array | string | object $ target ,
132
+ mixed $ target ,
133
133
string $ decorator ,
134
134
?int $ flags = ReflectionAttribute::IS_INSTANCEOF ,
135
135
): array {
@@ -143,13 +143,13 @@ public static function get_decorators(
143
143
* Get decorators for a target class, and its parent classes.
144
144
*
145
145
* @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>
150
150
*/
151
151
public static function get_decorators_deep (
152
- callable | array | string | object $ target ,
152
+ mixed $ target ,
153
153
string $ decorator ,
154
154
?int $ flags = ReflectionAttribute::IS_INSTANCEOF ,
155
155
): array {
0 commit comments