Skip to content

Commit 12c3ad7

Browse files
committed
Fix CS
1 parent a1fd93f commit 12c3ad7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function getConfigTreeBuilder(): TreeBuilder
3333
->scalarNode('template')
3434
->defaultValue('@EcommitDoctrineEntitiesGenerator/Theme/base.php.twig')
3535
->validate()
36-
->ifTrue(fn (mixed $value) => !\is_string($value))
36+
->ifTrue(static fn (mixed $value) => !\is_string($value))
3737
->thenInvalid('Invalid template')
3838
->end()
3939
->end()

src/EntityGenerator/Util/UseStatementManipulator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ protected function updateSourceCodeFromNewStmts(): void
217217

218218
protected function getNamespaceNode(): Node\Stmt\Namespace_
219219
{
220-
$node = $this->findFirstNode(/* @param mixed $node */ fn ($node) => $node instanceof Node\Stmt\Namespace_);
220+
$node = $this->findFirstNode(/* @param mixed $node */ static fn ($node) => $node instanceof Node\Stmt\Namespace_);
221221

222222
if (!$node || !$node instanceof Node\Stmt\Namespace_) {
223223
throw new \Exception('Could not find namespace node');

src/EntitySearcher/EntitySearcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ protected function inputMatchesClass(string $className, string $input): bool
8888

8989
public function classCanBeGenerated(ClassMetadata $metadata): bool
9090
{
91-
if (!($metadata instanceof \Doctrine\ORM\Mapping\ClassMetadata)) {
91+
if (!$metadata instanceof \Doctrine\ORM\Mapping\ClassMetadata) {
9292
return false;
9393
}
9494

0 commit comments

Comments
 (0)