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 4bddfc5 commit 4ae98e3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
13 changes: 4 additions & 9 deletions phpstan-baseline.neon
@@ -1,18 +1,13 @@
parameters:
ignoreErrors:
-
message: "#^Binary operation \"\\.\" between array\\<string, mixed\\>\\|int\\|string and ' nucleos\\-\\-maps…' results in an error\\.$#"
count: 2
path: src/Twig/MapsExtensions.php

-
message: "#^Binary operation \"\\.\" between non\\-empty\\-string and array\\<string, mixed\\>\\|int\\|string results in an error\\.$#"
count: 7
message: "#^Offset 'controller' on array\\{height\\: int, title\\: string, zoom\\: int, controller\\: string, apiKey\\: string, attr\\: array\\<string, mixed\\>\\} on left side of \\?\\? always exists and is not nullable\\.$#"
count: 1
path: src/Twig/MapsExtensions.php

-
message: "#^Parameter \\#1 \\$attributes of method Nucleos\\\\MapsBundle\\\\Twig\\\\MapsExtensions\\:\\:extractAttributes\\(\\) expects array\\<string, mixed\\>, array\\<string, mixed\\>\\|int\\|string given\\.$#"
count: 2
message: "#^Offset 'controller' on array\\{height\\: int, title\\: string, zoom\\: int, controller\\: string, attr\\: array\\<string, mixed\\>\\} on left side of \\?\\? always exists and is not nullable\\.$#"
count: 1
path: src/Twig/MapsExtensions.php

-
Expand Down
39 changes: 22 additions & 17 deletions psalm-baseline.xml
@@ -1,57 +1,62 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="v4.14.0@14dcbc908ab2625cd7a74258ee6c740cbecc6140">
<files psalm-version="5.7.7@e028ba46ba0d7f9a78bc3201c251e137383e145f">
<file src="src/Block/Service/MapBlockService.php">
<MixedAssignment occurrences="2">
<MixedAssignment>
<code>$latitude</code>
<code>$longitude</code>
</MixedAssignment>
<PossiblyNullArgument occurrences="1">
<code>$blockContext-&gt;getTemplate()</code>
<PossiblyNullArgument>
<code><![CDATA[$blockContext->getTemplate()]]></code>
</PossiblyNullArgument>
<UnusedClosureParam occurrences="1">
<UnusedClosureParam>
<code>$value</code>
</UnusedClosureParam>
</file>
<file src="src/DependencyInjection/Configuration.php">
<PossiblyNullReference occurrences="1">
<PossiblyNullReference>
<code>end</code>
</PossiblyNullReference>
<PossiblyUndefinedMethod occurrences="1">
<PossiblyUndefinedMethod>
<code>end</code>
</PossiblyUndefinedMethod>
<UnusedMethodCall occurrences="1">
<UnusedMethodCall>
<code>end</code>
<code>end</code>
<code>end</code>
</UnusedMethodCall>
</file>
<file src="src/DependencyInjection/NucleosMapsExtension.php">
<MixedArgument occurrences="1">
<code>$config['geocoder']['service']</code>
<MixedArgument>
<code><![CDATA[$config['geocoder']['service']]]></code>
</MixedArgument>
<MixedArrayAccess occurrences="1">
<code>$config['geocoder']['service']</code>
<MixedArrayAccess>
<code><![CDATA[$config['geocoder']['service']]]></code>
</MixedArrayAccess>
</file>
<file src="src/Twig/MapsExtensions.php">
<MixedAssignment occurrences="1">
<MixedAssignment>
<code>$value</code>
</MixedAssignment>
<RedundantCast>
<code><![CDATA[(string) ($_ENV['GOOGLE_API_KEY'] ?? '')]]></code>
</RedundantCast>
</file>
<file src="tests/App/AppKernel.php">
<MissingParamType occurrences="3">
<MissingParamType>
<code>$container</code>
<code>$loader</code>
<code>$routes</code>
</MissingParamType>
<MixedMethodCall occurrences="2">
<MixedMethodCall>
<code>add</code>
<code>load</code>
</MixedMethodCall>
<PropertyNotSetInConstructor occurrences="1">
<PropertyNotSetInConstructor>
<code>AppKernel</code>
</PropertyNotSetInConstructor>
</file>
<file src="tests/bootstrap.php">
<UnresolvableInclude occurrences="1">
<UnresolvableInclude>
<code>require_once current($files)</code>
</UnresolvableInclude>
</file>
Expand Down

0 comments on commit 4ae98e3

Please sign in to comment.