We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59db6e6 commit 0634449Copy full SHA for 0634449
1 file changed
src/CallableReflection.php
@@ -77,7 +77,7 @@ public static function fromCallable(callable $callable): self
77
return new self($callable, new ReflectionFunction($callable), self::TYPE_FUNCTION);
78
}
79
80
- if (is_string($callable) && str_contains($callable, '::')) {
+ if (is_string($callable) && strpos($callable, '::') !== false) {
81
return new self($callable, new ReflectionMethod($callable), self::TYPE_STATIC_METHOD);
82
83
0 commit comments