Skip to content

Commit e713078

Browse files
committed
Restrict TBehavior template to BehaviorInterface in HasBehaviorsInterface
1 parent a64e2ae commit e713078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/product/behavior/HasBehaviorsInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function withBehaviors();
1919
public function hasBehavior(string $behaviorClassName): bool;
2020

2121
/**
22-
* @template TBehavior of object
22+
* @template TBehavior of BehaviorInterface
2323
* @param class-string<TBehavior> $class
2424
* @return TBehavior|null
2525
*/

0 commit comments

Comments
 (0)