bug #12397 [Routing] fix BC (nicolas-grekas)
This PR was merged into the 2.5 branch.
Discussion
----------
[Routing] fix BC
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -
Tests on master and 2.5 are failing because this patch is missing.
Commits
-------
86e667b
[Routing] fix BC
This commit is contained in:
commit
acd515b0ba
@ -61,6 +61,9 @@ class Route implements \Serializable
|
||||
*/
|
||||
private $compiled;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $condition;
|
||||
|
||||
/**
|
||||
@ -130,8 +133,10 @@ class Route implements \Serializable
|
||||
$this->options = $data['options'];
|
||||
$this->schemes = $data['schemes'];
|
||||
$this->methods = $data['methods'];
|
||||
$this->condition = $data['condition'];
|
||||
|
||||
if (isset($data['condition'])) {
|
||||
$this->condition = $data['condition'];
|
||||
}
|
||||
if (isset($data['compiled'])) {
|
||||
$this->compiled = $data['compiled'];
|
||||
}
|
||||
|
Reference in New Issue
Block a user