Skip to content

Commit 0634449

Browse files
committed
Avoid using a PHP8-only function
1 parent 59db6e6 commit 0634449

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/CallableReflection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static function fromCallable(callable $callable): self
7777
return new self($callable, new ReflectionFunction($callable), self::TYPE_FUNCTION);
7878
}
7979

80-
if (is_string($callable) && str_contains($callable, '::')) {
80+
if (is_string($callable) && strpos($callable, '::') !== false) {
8181
return new self($callable, new ReflectionMethod($callable), self::TYPE_STATIC_METHOD);
8282
}
8383

0 commit comments

Comments
 (0)