Skip to content

Commit

Permalink
NeonAdapter: fixed to string conversion [Closes #307]
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Feb 7, 2024
1 parent eba66c9 commit cba0caf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DI/Config/Adapters/NeonAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ private function convertAtSignVisitor(Neon\Node $node)
private function deprecatedParametersVisitor(Neon\Node $node)
{
if (($node instanceof Neon\Node\StringNode || $node instanceof Neon\Node\LiteralNode)
&& str_contains((string) $node->value, '%parameters%')
&& is_string($node->value)
&& str_contains($node->value, '%parameters%')
) {
trigger_error('%parameters% is deprecated, use @container::getParameters() (in ' . $this->file . ')', E_USER_DEPRECATED);
}
Expand Down

0 comments on commit cba0caf

Please sign in to comment.