We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 393c951 commit 79fd76eCopy full SHA for 79fd76e
src/Model/Route.php
@@ -228,7 +228,7 @@ public function getPath()
228
*/
229
public function setPath($pattern)
230
{
231
- if (!\is_string($pattern) || 0 !== substr($pattern, $this->getStaticPrefix())) {
+ if (!\is_string($pattern) || 0 !== strpos($pattern, $this->getStaticPrefix())) {
232
throw new \InvalidArgumentException(sprintf(
233
'You can not set pattern "%s" for this route with a static prefix of "%s". First update the static prefix or directly use setVariablePattern.',
234
$pattern,
0 commit comments