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 Dec 14, 2023
1 parent cad6062 commit a5c8923
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
8 changes: 0 additions & 8 deletions src/DI/Config/Adapters/NeonAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,6 @@ private function removeUnderscoreVisitor(Neon\Node $node)
if ($attr->key === null && $attr->value instanceof Neon\Node\LiteralNode && $attr->value->value === '_') {
unset($node->attributes[$i]);
$index = true;
} elseif (
$attr->key === null
&& $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 a5c8923

Please sign in to comment.