Router#resolveString should return null instead of empty string when $value is null
Closes #4823
This commit is contained in:
parent
a1d1a02b47
commit
c061c30a9e
@ -114,6 +114,10 @@ class Router extends BaseRouter implements WarmableInterface
|
||||
{
|
||||
$container = $this->container;
|
||||
|
||||
if (null === $value) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$escapedValue = preg_replace_callback('/%%|%([^%\s]+)%/', function ($match) use ($container, $value) {
|
||||
// skip %%
|
||||
if (!isset($match[1])) {
|
||||
|
Reference in New Issue
Block a user