1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00
Grégoire Paris b47306ad3b
Account for PDOException (#3175)
Probably for legacy reasons, PDOException::getCode() can return string (it's an
SQLSTATE code). Note that if you instantiate it yourself, you will get
an integer though.

I changed the signature of the Exception stub accordingly, and then
there were errors about incompatible signatures, so I had to change the
signature of Throwable too, which makes sense since a Throwable could be
a PDOException. The signature at
https://www.php.net/manual/en/throwable.getcode.php seems plain wrong,
and that same page of the docs warns about PDOException. Not sure what
are the plans for future versions of PHP.
2020-04-18 10:39:23 -04:00
..
2020-02-17 22:05:58 -05:00
2020-03-14 23:54:51 -04:00
2020-04-03 14:56:11 -04:00
2020-03-29 19:51:13 -04:00
2020-04-06 08:57:18 -04:00
2020-02-16 18:30:05 -05:00
2020-03-14 23:54:51 -04:00
2020-02-16 18:40:59 -05:00
2020-03-08 20:18:35 -05:00
2020-04-06 08:57:18 -04:00
2020-04-06 08:57:18 -04:00
2020-04-06 08:57:18 -04:00
2020-04-06 08:57:18 -04:00
2020-04-05 17:25:00 -04:00
2020-03-02 23:07:21 -05:00