Skip to content

Commit

Permalink
Pin Psalm version and put new errors in baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean85 committed May 10, 2024
1 parent 3507419 commit 76c6bf0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 35 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
"phpdocumentor/reflection-docblock": ">=4.0.1",
"phpspec/prophecy-phpunit": "^2.0",
"phpunit/phpunit": "^9.6",
"psalm/plugin-phpunit": "^0.18.4",
"psalm/plugin-phpunit": "0.18.4",
"rector/rector": "^1.0",
"symfony/phpunit-bridge": "^6.2",
"vimeo/psalm": "^5.8.0"
"vimeo/psalm": "5.24.0"
},
"autoload": {
"psr-4": {
Expand Down
44 changes: 11 additions & 33 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,37 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.8.0@9cf4f60a333f779ad3bc704a555920e81d4fdcda">
<files psalm-version="5.24.0@462c80e31c34e58cc4f750c656be3927e80e550e">
<file src="src/Statement.php">
<DeprecatedMethod>
<code>getWrappedConnection</code>
</DeprecatedMethod>
<MissingParamType>
<code>$callable</code>
<code>$params</code>
</MissingParamType>
<MissingReturnType>
<code>executeWithRetry</code>
</MissingReturnType>
<MixedArgument>
<code>$callable</code>
</MixedArgument>
<MixedInferredReturnType>
<code>Result</code>
<code>int</code>
</MixedInferredReturnType>
<MixedReturnStatement>
<code><![CDATA[$this->executeWithRetry([parent::class, 'executeQuery'], $params)]]></code>
<code><![CDATA[$this->executeWithRetry([parent::class, 'executeStatement'], $params)]]></code>
</MixedReturnStatement>
</file>
<file src="tests/functional/AbstractFunctionalTestCase.php">
<DeprecatedMethod>
<code>fetch</code>
</DeprecatedMethod>
<MixedAssignment>
<code>$id</code>
</MixedAssignment>
<MixedOperand>
<code>$id</code>
</MixedOperand>
<InvalidArgument>
<code><![CDATA[[parent::class, 'executeQuery']]]></code>
<code><![CDATA[[parent::class, 'executeQuery']]]></code>
<code><![CDATA[[parent::class, 'executeStatement']]]></code>
<code><![CDATA[[parent::class, 'executeStatement']]]></code>
</InvalidArgument>
<UndefinedMethod>
<code><![CDATA[canTryAgain]]></code>
<code><![CDATA[increaseAttemptCount]]></code>
</UndefinedMethod>
</file>
</files>

0 comments on commit 76c6bf0

Please sign in to comment.