Skip to content

Commit 155d028

Browse files
authored
Merge pull request #3969 from greg0ire/psalm-7
Psalm 7
2 parents c7ca69c + feba49d commit 155d028

File tree

3 files changed

+20
-9
lines changed

3 files changed

+20
-9
lines changed

.scrutinizer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ before_commands:
2121
tools:
2222
external_code_coverage:
2323
timeout: 3600
24-
runs: 28 # 23x Travis (jobs with COVERAGE=yes) + 3x AppVeyor (jobs with coverage=yes) + 2x ContinuousPHP
24+
runs: 27 # 23x Travis (jobs with COVERAGE=yes) + 3x AppVeyor (jobs with coverage=yes) + 1x ContinuousPHP
2525

2626
filter:
2727
excluded_paths:

lib/Doctrine/DBAL/Driver/DriverException.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ interface DriverException extends Throwable
2424
*/
2525
public function getErrorCode();
2626

27-
/**
28-
* Returns the driver error message.
29-
*
30-
* @return string
31-
*/
32-
public function getMessage();
33-
3427
/**
3528
* Returns the SQLSTATE the driver was in at the time the error occurred.
3629
*

psalm.xml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<psalm
33
totallyTyped="false"
4-
errorLevel="8"
4+
errorLevel="7"
55
resolveFromConfigFile="true"
66
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
77
xmlns="https://getpsalm.org/schema/config"
@@ -23,6 +23,24 @@
2323
<file name="vendor/jetbrains/phpstorm-stubs/sqlsrv/sqlsrv.php" />
2424
</stubs>
2525
<issueHandlers>
26+
<ConflictingReferenceConstraint>
27+
<errorLevel type="suppress">
28+
<!--
29+
This one is just too convoluted for Psalm to figure out, by
30+
its author's own admission
31+
-->
32+
<file name="lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php"/>
33+
</errorLevel>
34+
</ConflictingReferenceConstraint>
35+
<MethodSignatureMismatch>
36+
<errorLevel type="suppress">
37+
<!--
38+
This one is clearly deliberate; it's a hack to adapt \PDO to
39+
Doctrine\DBAL\Driver\Connection
40+
-->
41+
<file name="lib/Doctrine/DBAL/Driver/PDOConnection.php"/>
42+
</errorLevel>
43+
</MethodSignatureMismatch>
2644
<TooFewArguments>
2745
<errorLevel type="suppress">
2846
<!--

0 commit comments

Comments
 (0)