Skip to content

Commit 45a17d3

Browse files
committed
Change declared exception type to LogicException in ReflectorAwareAttributeInterface.
1 parent 3fa0467 commit 45a17d3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Attribute/ReflectorAwareAttributeInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ interface ReflectorAwareAttributeInterface {
1212
* @param \Reflector $reflector
1313
* The place where the attribute was found.
1414
*
15-
* @throws \Ock\ClassDiscovery\Exception\MalformedDeclarationException
15+
* @throws \LogicException
16+
* The attribute is not allowed here.
17+
* There is no point in catching this, the developer must fix their program.
1618
*/
1719
public function setReflector(\Reflector $reflector): void;
1820

0 commit comments

Comments
 (0)