Skip to content

Commit

Permalink
Update phpstan / psalm baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Feb 26, 2023
1 parent 27361f2 commit e9d4999
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 10 deletions.
30 changes: 30 additions & 0 deletions phpstan-baseline.neon
Expand Up @@ -10,26 +10,51 @@ parameters:
count: 1
path: src/Action/CheckEmailAction.php

-
message: "#^Call to an undefined method Symfony\\\\Component\\\\Console\\\\Helper\\\\HelperInterface\\:\\:ask\\(\\)\\.$#"
count: 1
path: src/Command/ActivateUserCommand.php

-
message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#"
count: 1
path: src/Command/ActivateUserCommand.php

-
message: "#^Call to an undefined method Symfony\\\\Component\\\\Console\\\\Helper\\\\HelperInterface\\:\\:ask\\(\\)\\.$#"
count: 1
path: src/Command/ChangePasswordCommand.php

-
message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#"
count: 2
path: src/Command/ChangePasswordCommand.php

-
message: "#^Call to an undefined method Symfony\\\\Component\\\\Console\\\\Helper\\\\HelperInterface\\:\\:ask\\(\\)\\.$#"
count: 1
path: src/Command/CreateUserCommand.php

-
message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#"
count: 4
path: src/Command/CreateUserCommand.php

-
message: "#^Call to an undefined method Symfony\\\\Component\\\\Console\\\\Helper\\\\HelperInterface\\:\\:ask\\(\\)\\.$#"
count: 1
path: src/Command/DeactivateUserCommand.php

-
message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#"
count: 1
path: src/Command/DeactivateUserCommand.php

-
message: "#^Call to an undefined method Symfony\\\\Component\\\\Console\\\\Helper\\\\HelperInterface\\:\\:ask\\(\\)\\.$#"
count: 1
path: src/Command/RoleCommand.php

-
message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#"
count: 2
Expand Down Expand Up @@ -95,6 +120,11 @@ parameters:
count: 1
path: src/EventListener/FlashListener.php

-
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Symfony\\\\\\\\Component\\\\\\\\DependencyInjection\\\\\\\\ContainerBuilder' and Symfony\\\\Component\\\\DependencyInjection\\\\ContainerBuilder will always evaluate to true\\.$#"
count: 2
path: tests/DependencyInjection/NucleosUserExtensionTest.php

-
message: "#^Method Nucleos\\\\UserBundle\\\\Tests\\\\DependencyInjection\\\\NucleosUserExtensionTest\\:\\:getEmptyConfig\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
Expand Down
45 changes: 35 additions & 10 deletions psalm-baseline.xml
@@ -1,23 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.20.0@f82a70e7edfc6cf2705e9374c8a0b6a974a779ed">
<files psalm-version="5.7.7@e028ba46ba0d7f9a78bc3201c251e137383e145f">
<file src="src/Action/ChangePasswordAction.php">
<InvalidNullableReturnType occurrences="1">
<InvalidNullableReturnType>
<code>Response</code>
</InvalidNullableReturnType>
<NullableReturnStatement occurrences="1">
<code>$event-&gt;getResponse()</code>
<NullableReturnStatement>
<code><![CDATA[$event->getResponse()]]></code>
</NullableReturnStatement>
</file>
<file src="src/Action/ResetAction.php">
<InvalidNullableReturnType occurrences="1">
<InvalidNullableReturnType>
<code>Response</code>
</InvalidNullableReturnType>
<NullableReturnStatement occurrences="1">
<code>$event-&gt;getResponse()</code>
<NullableReturnStatement>
<code><![CDATA[$event->getResponse()]]></code>
</NullableReturnStatement>
</file>
<file src="src/Command/ActivateUserCommand.php">
<UndefinedInterfaceMethod>
<code>ask</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/Command/ChangePasswordCommand.php">
<UndefinedInterfaceMethod>
<code>ask</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/Command/CreateUserCommand.php">
<UndefinedInterfaceMethod>
<code>ask</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/Command/DeactivateUserCommand.php">
<UndefinedInterfaceMethod>
<code>ask</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/Command/RoleCommand.php">
<UndefinedInterfaceMethod>
<code>ask</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/DependencyInjection/Configuration.php">
<UndefinedMethod occurrences="6">
<UndefinedMethod>
<code>addDefaultsIfNotSet</code>
<code>addDefaultsIfNotSet</code>
<code>addDefaultsIfNotSet</code>
Expand All @@ -27,8 +52,8 @@
</UndefinedMethod>
</file>
<file src="src/Model/User.php">
<RedundantPropertyInitializationCheck occurrences="1">
<code>isset($this-&gt;groups)</code>
<RedundantPropertyInitializationCheck>
<code><![CDATA[isset($this->groups)]]></code>
</RedundantPropertyInitializationCheck>
</file>
</files>

0 comments on commit e9d4999

Please sign in to comment.