Browse Source

Fix incorrect annotations.

ADmad 8 years ago
parent
commit
47e0ea2e31
3 changed files with 2 additions and 2 deletions
  1. 1 0
      phpstan.neon
  2. 1 1
      src/Database/Driver.php
  3. 0 1
      src/Datasource/ConnectionInterface.php

+ 1 - 0
phpstan.neon

@@ -26,6 +26,7 @@ parameters:
         - '#Call to an undefined method object::__toString\(\)#'
         - '#Call to an undefined method object::toArray\(\)#'
         - '#Call to an undefined method object::__debugInfo\(\)#'
+        - '#Method PDO::lastInsertId\(\) invoked with 2 parameters, 0-1 required#'
     earlyTerminatingMethodCalls:
         Cake\Shell\Shell:
             - abort

+ 1 - 1
src/Database/Driver.php

@@ -21,7 +21,7 @@ use PDO;
  * Represents a database driver containing all specificities for
  * a database engine including its SQL dialect.
  *
- * @property \Cake\Datasource\ConnectionInterface|null $_connection
+ * @property \PDO|null $_connection
  */
 abstract class Driver
 {

+ 0 - 1
src/Datasource/ConnectionInterface.php

@@ -26,7 +26,6 @@ namespace Cake\Datasource;
  * @method \Cake\Database\StatementInterface prepare($sql)
  * @method \Cake\Database\StatementInterface execute($query, $params = [], array $types = [])
  * @method string quote($value, $type = null)
- * @method string|int lastInsertId($table = null, $column = null)
  */
 interface ConnectionInterface
 {