From 2f4411f5955d4145a61e900961346bd31aa357a5 Mon Sep 17 00:00:00 2001 From: LolGleb Date: Wed, 23 Aug 2023 18:04:05 +0200 Subject: [PATCH] [phpstorm-stub] WI-73537 Added @throws PDOException for PDO::lastInsertId() --- PDO/PDO.php | 1 + 1 file changed, 1 insertion(+) diff --git a/PDO/PDO.php b/PDO/PDO.php index 98c06135a..bab566d70 100644 --- a/PDO/PDO.php +++ b/PDO/PDO.php @@ -1146,6 +1146,7 @@ public function query( * If the PDO driver does not support this capability, * PDO::lastInsertId triggers an * IM001 SQLSTATE. + * @throws PDOException On error if PDO::ERRMODE_EXCEPTION option is true. */ #[TentativeType] public function lastInsertId(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $name = null): string|false {}