Skip to content

Commit

Permalink
[Maintenance] Fix up static analysis errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lchrusciel committed Jul 12, 2023
1 parent 7fb1369 commit 602a891
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@
"theofidry/alice-data-fixtures": "^1.0"
},
"require-dev": {
"phpstan/phpstan-strict-rules": "^0.12",
"phpstan/phpstan-webmozart-assert": "^0.12",
"phpstan/phpstan-strict-rules": "^1.0",
"phpstan/phpstan-webmozart-assert": "^1.0",
"symfony/serializer": "^5.4 || ^6.0",
"phpstan/phpstan": "^0.12"
"phpstan/phpstan": "^1.8"
},
"scripts": {
"analyse": [
"vendor/bin/phpstan.phar analyse --ansi --no-progress -l 5 src"
"vendor/bin/phpstan analyse --ansi --no-progress src"
]
},
"conflict": {
Expand Down
5 changes: 4 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ includes:
- vendor/phpstan/phpstan-webmozart-assert/extension.neon

parameters:
level: max
level: 5
paths:
- src
- test/src/
5 changes: 2 additions & 3 deletions src/ApiTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
use Doctrine\ORM\EntityManager;
use Fidry\AliceDataFixtures\LoaderInterface;
use Fidry\AliceDataFixtures\ProcessorInterface;
use InvalidArgumentException;
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\Finder\Finder;
Expand Down Expand Up @@ -51,9 +50,9 @@ abstract class ApiTestCase extends WebTestCase
/** @var EntityManager|null */
private $entityManager;

public function __construct(?string $name = null, array $data = [], $dataName = '')
public function __construct(?string $name = null)
{
parent::__construct($name, $data, $dataName);
parent::__construct($name);

$this->matcherFactory = new MatcherFactory();
}
Expand Down

0 comments on commit 602a891

Please sign in to comment.