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 Apr 28, 2024
1 parent a3818a1 commit 4a2efb2
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
Expand Up @@ -179,11 +179,6 @@ private function removeUnderscoreVisitor(Neon\Node $node)
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
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 4a2efb2

Please sign in to comment.