Skip to content

Commit

Permalink
Update psalm config and baseline
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksei Khudiakov <aleksey@xerkus.pro>
  • Loading branch information
Xerkus committed Nov 24, 2023
1 parent e257120 commit a0877f3
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/.phpunit.result.cache
/.psalm-cache
/vendor/
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"phpunit/phpunit": "^9.5.26",
"psalm/plugin-phpunit": "^0.18.0",
"squizlabs/php_codesniffer": "^3.7.1",
"vimeo/psalm": "^5.0.0"
"vimeo/psalm": "^5.16.0"
},
"autoload": {
"files": [
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 54 additions & 2 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.2.0@fb685a16df3050d4c18d8a4100fe83abe6458cba">
<files psalm-version="4.21.0@d8bec4c7aaee111a532daec32fb09de5687053d1">
<file src="config/replacements.php">
<DuplicateArrayKey occurrences="3">
<code>'ZendAcl' =&gt; 'LaminasAcl'</code>
Expand Down Expand Up @@ -41,7 +41,9 @@
<code>$newKey</code>
<code>$target</code>
</MixedArgument>
<MixedArgumentTypeCoercion occurrences="1"/>
<MixedArgumentTypeCoercion occurrences="1">
<code>[$key]</code>
</MixedArgumentTypeCoercion>
<MixedArrayAssignment occurrences="4">
<code>$config[$key]</code>
<code>$config['aliases'][$alias]</code>
Expand Down Expand Up @@ -88,12 +90,22 @@
<code>$value</code>
<code>$value</code>
</MixedAssignment>
<UnusedMethod occurrences="4">
<code>fallbackReplacement</code>
<code>noopReplacement</code>
<code>replaceDependencyConfiguration</code>
<code>replaceExactValue</code>
</UnusedMethod>
</file>
<file src="src/Module.php">
<MissingReturnType occurrences="2">
<code>init</code>
<code>onMergeConfig</code>
</MissingReturnType>
<PossiblyUnusedParam occurrences="2">
<code>$event</code>
<code>$moduleManager</code>
</PossiblyUnusedParam>
<UndefinedDocblockClass occurrences="2">
<code>ModuleEvent</code>
<code>ModuleManager</code>
Expand Down Expand Up @@ -176,4 +188,44 @@
<code>iterable</code>
</MixedInferredReturnType>
</file>
<file src="test/classes.php">
<UnusedClass occurrences="36">
<code>AbstractZendServer</code>
<code>ApiToolsModuleInterface</code>
<code>ApiToolsProviderInterface</code>
<code>ApiToolsVersionController</code>
<code>Application</code>
<code>Authentication</code>
<code>AuthenticationAdapter</code>
<code>Authorization</code>
<code>Autoloading</code>
<code>BaseModule</code>
<code>DevelopmentMode</code>
<code>LaminasAclFactory</code>
<code>LaminasAuthentication</code>
<code>LaminasBridge</code>
<code>LaminasBridge</code>
<code>LaminasRbac</code>
<code>LaminasRouter</code>
<code>LaminasViewRenderer</code>
<code>Main</code>
<code>Mezzio</code>
<code>MezzioUrlGenerator</code>
<code>MyClass</code>
<code>MyClass</code>
<code>OAuthService</code>
<code>ProblemDetails</code>
<code>Psr7Bridge</code>
<code>Psr7Bridge</code>
<code>Router</code>
<code>RouterAdapter</code>
<code>Service</code>
<code>Tools</code>
<code>Tools</code>
<code>XmlService</code>
<code>ZendMonitor</code>
<code>ZendServerDisk</code>
<code>ZendServerShm</code>
</UnusedClass>
</file>
</files>
11 changes: 7 additions & 4 deletions psalm.xml.dist
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<?xml version="1.0"?>
<psalm
errorLevel="1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
cacheDirectory="./.psalm-cache"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
errorLevel="1"
findUnusedPsalmSuppress="true"
findUnusedCode="true"
errorBaseline="psalm-baseline.xml"
>
<projectFiles>
Expand Down

0 comments on commit a0877f3

Please sign in to comment.