Skip to content

Commit

Permalink
fix existing test for redefine
Browse files Browse the repository at this point in the history
support redefine if file is already loaded
  • Loading branch information
cebe committed Apr 2, 2019
1 parent 4a4fccf commit 00d8ba0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/SchemaReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,12 @@ private function loadRedefine(Schema $schema, DOMElement $node)

$schema->addSchema($redefined);

return function (): void {
return function () use ($redefined, $node, $schema): void {

$callbacks = $this->schemaNode($redefined, $node, $schema);
foreach ($callbacks as $callback) {
$callback();
}
};
}

Expand Down

0 comments on commit 00d8ba0

Please sign in to comment.