Skip to content

Commit

Permalink
Properly ignore error
Browse files Browse the repository at this point in the history
  • Loading branch information
Lustmored committed Dec 21, 2023
1 parent 768f328 commit ff3acae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .phpstan/default.neon
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ parameters:
paths:
- ../src
- ../tests
ignoreErrors:
-
message: '#Class Symfony\Component\Config\Definition\Builder\TreeBuilder does not have a constructor and must be instantiated without any parameters.#'
path: src/DependencyInjection/Configuration.php
2 changes: 1 addition & 1 deletion src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private function createTreeBuilder(string $name): TreeBuilder
{
// Symfony 4.2 +
if (method_exists(TreeBuilder::class, '__construct')) {
return new TreeBuilder($name); /** @phpstan-ignore-line */
return new TreeBuilder($name);
}

// Symfony 4.1 and below
Expand Down

0 comments on commit ff3acae

Please sign in to comment.