Skip to content

Commit 339689c

Browse files
authored
Merge pull request #584 from TomHAnderson/feature/phpstan-1
Feature/phpstan 1
2 parents 2b0dc92 + b9b180b commit 339689c

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

.github/workflows/static-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
dependency-versions: "${{ matrix.dependencies }}"
3434

3535
- name: "Run a static analysis with phpstan/phpstan"
36-
run: "vendor/bin/phpstan analyse src --level 0"
36+
run: "vendor/bin/phpstan analyse src --level 1"

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"vendor/bin/parallel-lint src tests",
9595
"vendor/bin/phpcs",
9696
"vendor/bin/phpunit",
97-
"vendor/bin/phpstan analyze src --level 0"
97+
"vendor/bin/phpstan analyze src --level 1"
9898
],
9999
"coverage": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-html=coverage"
100100
}

src/EntityManagerFactory.php

-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ public function create(array $settings = []): EntityManagerInterface
8383
$connection = DriverManager::getConnection(
8484
$connectionConfiguration,
8585
$configuration,
86-
$eventManager,
8786
);
8887

8988
$this->setNamingStrategy($settings, $configuration);

src/Validation/DoctrinePresenceVerifier.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use Doctrine\ORM\QueryBuilder;
88
use Doctrine\Persistence\ManagerRegistry;
9-
use Doctrine\Persistence\ObjectManager;
109
use Illuminate\Support\Str;
1110
use Illuminate\Validation\DatabasePresenceVerifierInterface;
1211
use InvalidArgumentException;
@@ -97,7 +96,7 @@ protected function queryExtraConditions(array $extra, QueryBuilder $builder): vo
9796
}
9897
}
9998

100-
protected function getEntityManager(string $entity): ObjectManager
99+
protected function getEntityManager(string $entity): mixed
101100
{
102101
if ($this->connection !== null) {
103102
return $this->registry->getManager($this->connection);

0 commit comments

Comments
 (0)