Skip to content

Commit

Permalink
Fix GlobResource serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
alexismarquis authored and nicolas-grekas committed Nov 2, 2018
1 parent d699036 commit 6ce7f07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Component/Config/Resource/GlobResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ public function serialize()
$this->hash = $this->computeHash();
}

return serialize(array($this->prefix, $this->pattern, $this->recursive, $this->hash));
return serialize(array($this->prefix, $this->pattern, $this->recursive, $this->hash, $this->forExclusion, $this->excludedPrefixes));
}

public function unserialize($serialized)
{
list($this->prefix, $this->pattern, $this->recursive, $this->hash) = unserialize($serialized);
list($this->prefix, $this->pattern, $this->recursive, $this->hash, $this->forExclusion, $this->excludedPrefixes) = unserialize($serialized) + array(4 => false, array());
}

public function getIterator()
Expand Down

0 comments on commit 6ce7f07

Please sign in to comment.