Skip to content

Commit a87a35e

Browse files
committed
Fix scheme comparison
1 parent 9119186 commit a87a35e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Component/Scheme/SchemeImpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __construct(string $name)
2828
public function equals(mixed $other): bool
2929
{
3030
return $other === $this
31-
|| ($other instanceof static
31+
|| ($other instanceof SchemeInterface
3232
&& $other->name === $this->name);
3333
}
3434

0 commit comments

Comments
 (0)