Skip to content

Commit

Permalink
removed support for three ... dots
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed May 16, 2024
1 parent 2b38910 commit cff4960
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
5 changes: 0 additions & 5 deletions src/DI/Config/Adapters/NeonAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,6 @@ private function removeUnderscoreVisitor(Neon\Node $node): void
if ($attr->value instanceof Neon\Node\LiteralNode && $attr->value->value === '_') {
unset($node->attributes[$i]);
$index = true;

} elseif ($attr->value instanceof Neon\Node\LiteralNode && $attr->value->value === '...') {
trigger_error("Replace ... with _ in configuration file '$this->file'.", E_USER_DEPRECATED);
unset($node->attributes[$i]);
$index = true;
}
}
}
Expand Down
11 changes: 0 additions & 11 deletions tests/DI/NeonAdapter.preprocess.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,6 @@ Assert::equal(
);


// ... deprecated
$data = @$adapter->load(Tester\FileMock::create('
- Class(arg1, ..., [...])
', 'neon'));

Assert::equal(
[new Statement('Class', ['arg1', 2 => ['...']])],
$data,
);


// @ escaping
$data = @$adapter->load(Tester\FileMock::create('
- @@double
Expand Down

0 comments on commit cff4960

Please sign in to comment.