Skip to content

Commit 9f9d347

Browse files
Ocramiusmorozov
authored andcommitted
Merge pull request #3238 from morozov/phpstan-develop
Fixed and suppressed issues found by PHPStan on develop
2 parents 89fbe15 + 12dd7a7 commit 9f9d347

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

lib/Doctrine/DBAL/Driver/ResultStatement.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ public function columnCount();
2828
/**
2929
* Sets the fetch mode to use while iterating this statement.
3030
*
31-
* @param int $fetchMode Controls how the next row will be returned to the caller.
32-
* The value must be one of the {@link \Doctrine\DBAL\FetchMode} constants.
33-
* @param array $args Optional mode-specific arguments (see {@link self::fetchAll()}).
31+
* @param int $fetchMode Controls how the next row will be returned to the caller.
32+
* The value must be one of the {@link \Doctrine\DBAL\FetchMode} constants.
33+
* @param mixed[] ...$args Optional mode-specific arguments (see {@link self::fetchAll()}).
3434
*
3535
* @return bool
3636
*/
@@ -42,7 +42,7 @@ public function setFetchMode($fetchMode, ...$args);
4242
* @param int|null $fetchMode Controls how the next row will be returned to the caller.
4343
* The value must be one of the {@link \Doctrine\DBAL\FetchMode} constants,
4444
* defaulting to {@link \Doctrine\DBAL\FetchMode::MIXED}.
45-
* @param array $args Optional mode-specific arguments (see {@link self::fetchAll()}).
45+
* @param mixed[] ...$args Optional mode-specific arguments (see {@link self::fetchAll()}).
4646
*
4747
* @return mixed The return value of this method on success depends on the fetch mode. In all cases, FALSE is
4848
* returned on failure.
@@ -55,7 +55,7 @@ public function fetch($fetchMode = null, ...$args);
5555
* @param int|null $fetchMode Controls how the next row will be returned to the caller.
5656
* The value must be one of the {@link \Doctrine\DBAL\FetchMode} constants,
5757
* defaulting to {@link \Doctrine\DBAL\FetchMode::MIXED}.
58-
* @param array $args Optional mode-specific arguments. Supported modes:
58+
* @param mixed[] ...$args Optional mode-specific arguments. Supported modes:
5959
* * {@link \Doctrine\DBAL\FetchMode::COLUMN}
6060
* 1. The 0-indexed column to be returned.
6161
* * {@link \Doctrine\DBAL\FetchMode::CUSTOM_OBJECT}

phpstan.neon.dist

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ parameters:
2424
- '~^Method Doctrine\\DBAL\\Driver\\SQLSrv\\SQLSrvConnection::errorCode\(\) should return string\|null but returns false\.\z~'
2525

2626
# http://php.net/manual/en/pdo.sqlitecreatefunction.php
27-
- '~^Call to an undefined method Doctrine\\DBAL\\Driver\\PDOConnection::sqliteCreateFunction\(\)\.\z~'
27+
- '~^Call to an undefined method PDO::sqliteCreateFunction\(\)\.\z~'
2828

2929
# legacy variadic-like signature
3030
- '~^Method Doctrine\\DBAL\\Driver\\Connection::query\(\) invoked with \d+ parameters?, 0 required\.\z~'
@@ -44,3 +44,9 @@ parameters:
4444

4545
# weird class name, doesn't exist in stubs either
4646
- '~unknown class OCI-(Lob|Collection)~'
47+
48+
# https://github.com/doctrine/dbal/issues/3236
49+
- '~^Call to an undefined method Doctrine\\DBAL\\Schema\\UniqueConstraint::getLocalColumns\(\)~'
50+
51+
# https://github.com/doctrine/dbal/issues/3237
52+
- '~^Call to an undefined method Doctrine\\DBAL\\Driver\\PDOStatement::nextRowset\(\)~'

0 commit comments

Comments
 (0)