Skip to content

Commit 79fd76e

Browse files
committed
revert strpos -> substr change
1 parent 393c951 commit 79fd76e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model/Route.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public function getPath()
228228
*/
229229
public function setPath($pattern)
230230
{
231-
if (!\is_string($pattern) || 0 !== substr($pattern, $this->getStaticPrefix())) {
231+
if (!\is_string($pattern) || 0 !== strpos($pattern, $this->getStaticPrefix())) {
232232
throw new \InvalidArgumentException(sprintf(
233233
'You can not set pattern "%s" for this route with a static prefix of "%s". First update the static prefix or directly use setVariablePattern.',
234234
$pattern,

0 commit comments

Comments
 (0)