Skip to content

Commit b42071c

Browse files
committed
Change parameter type of ReflectorAwareAttributeInterface to the long list of supported reflector types.
This requires to suppress missingType.generics in more places.
1 parent 199c95a commit b42071c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ReflectorAwareAttributeInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ interface ReflectorAwareAttributeInterface {
99
/**
1010
* Sets the reflector where the attribute was found.
1111
*
12-
* @param \Reflector $reflector
12+
* @param \ReflectionClass|\ReflectionFunctionAbstract|\ReflectionParameter|\ReflectionProperty|\ReflectionClassConstant $reflector
1313
* The place where the attribute was found.
1414
*
1515
* @throws \LogicException
1616
* The attribute is not allowed here.
1717
* There is no point in catching this, the developer must fix their program.
1818
*/
19-
public function setReflector(\Reflector $reflector): void;
19+
public function setReflector(\ReflectionClass|\ReflectionFunctionAbstract|\ReflectionParameter|\ReflectionProperty|\ReflectionClassConstant $reflector): void;
2020

2121
}

0 commit comments

Comments
 (0)