Skip to content

Commit

Permalink
Merge pull request #3969 from greg0ire/psalm-7
Browse files Browse the repository at this point in the history
Psalm 7
  • Loading branch information
greg0ire authored Apr 21, 2020
2 parents c7ca69c + feba49d commit 155d028
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ before_commands:
tools:
external_code_coverage:
timeout: 3600
runs: 28 # 23x Travis (jobs with COVERAGE=yes) + 3x AppVeyor (jobs with coverage=yes) + 2x ContinuousPHP
runs: 27 # 23x Travis (jobs with COVERAGE=yes) + 3x AppVeyor (jobs with coverage=yes) + 1x ContinuousPHP

filter:
excluded_paths:
Expand Down
7 changes: 0 additions & 7 deletions lib/Doctrine/DBAL/Driver/DriverException.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ interface DriverException extends Throwable
*/
public function getErrorCode();

/**
* Returns the driver error message.
*
* @return string
*/
public function getMessage();

/**
* Returns the SQLSTATE the driver was in at the time the error occurred.
*
Expand Down
20 changes: 19 additions & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<psalm
totallyTyped="false"
errorLevel="8"
errorLevel="7"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
Expand All @@ -23,6 +23,24 @@
<file name="vendor/jetbrains/phpstorm-stubs/sqlsrv/sqlsrv.php" />
</stubs>
<issueHandlers>
<ConflictingReferenceConstraint>
<errorLevel type="suppress">
<!--
This one is just too convoluted for Psalm to figure out, by
its author's own admission
-->
<file name="lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php"/>
</errorLevel>
</ConflictingReferenceConstraint>
<MethodSignatureMismatch>
<errorLevel type="suppress">
<!--
This one is clearly deliberate; it's a hack to adapt \PDO to
Doctrine\DBAL\Driver\Connection
-->
<file name="lib/Doctrine/DBAL/Driver/PDOConnection.php"/>
</errorLevel>
</MethodSignatureMismatch>
<TooFewArguments>
<errorLevel type="suppress">
<!--
Expand Down

0 comments on commit 155d028

Please sign in to comment.