Skip to content

Commit

Permalink
Add stub for PDOException.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrolGenhald committed Jan 27, 2022
1 parent 5c01913 commit 653d17f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stubs/extensions/pdo.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,8 @@ class PDOStatement implements Traversable
*/
public function fetchObject($class = \stdclass::class, array $ctorArgs = array()) {}
}

class PDOException extends RuntimeException {
protected string $code;
public ?array $errorInfo = null;
}

0 comments on commit 653d17f

Please sign in to comment.