- Fixed a bad merge

This commit is contained in:
Dave Mc Nicoll 2023-04-28 19:56:05 +00:00
parent 710ecad98d
commit 2fe97c60ed
1 changed files with 0 additions and 5 deletions

View File

@ -252,13 +252,8 @@ PATTERN;
if ($default ?? false) { if ($default ?? false) {
$value = $default; $value = $default;
} }
<<<<<<< Updated upstream
elseif ($this->enforceExistingArguments && ! strpos($route, sprintf('[/{%s:', $variable)) ) {
throw new \RuntimeException(sprintf("Error while preparing route %s : could not match variable '%s' into given arguments ( %s )", $route, $variable, json_encode($arguments)));
=======
elseif ($this->enforceExistingArguments) {dump($routeParam); elseif ($this->enforceExistingArguments) {dump($routeParam);
throw new \RuntimeException(sprintf("Error while preparing route %s : could not match variable '%s' into given arguments ( %s ) from %s::%s", $route, $variable, json_encode($arguments), $routeParam['class'], $routeParam['classMethod'])); throw new \RuntimeException(sprintf("Error while preparing route %s : could not match variable '%s' into given arguments ( %s ) from %s::%s", $route, $variable, json_encode($arguments), $routeParam['class'], $routeParam['classMethod']));
>>>>>>> Stashed changes
} }
} }