1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00
psalm/dictionaries
Marco Pivetta fabcda16b4 Ensure trait_exists() always returns bool
Fixes #7478

As discussed in the upstream issue, `trait_exists()` always returns `bool`: while
it can return `null` when the arguments passed to it do not match (either no arguments, or
3 or more arguments), we do not support that scenario, as that already doesn't respect the
type signature of this function.

We cut to the point: always make it `bool`, which is the scenario that works under healthy
operational conditions.

Ref: https://github.com/Roave/BetterReflection/pull/983#discussion_r790908170
Ref: https://psalm.dev/r/c41a43805d
Ref: https://github.com/vimeo/psalm/issues/7478#issuecomment-1020330351
Ref: https://github.com/vimeo/psalm/issues/7478#issuecomment-1020337712
Ref: https://3v4l.org/XpHmh
2022-02-01 16:51:09 +01:00
..
scripts unnecessary qualified names 2021-12-27 20:16:34 +01:00
CallMap_71_delta.php Batch 2: checked all the signatures against PHP docs and ext/pgsql code 2021-10-29 02:22:55 +03:00
CallMap_72_delta.php Adjusting delta/historical callmaps 2021-11-13 22:59:19 +01:00
CallMap_73_delta.php in array form all attributes are nullable since PHP 7.3 2022-01-22 15:34:16 +01:00
CallMap_74_delta.php unify argument names in historical and current CallMap for proc_open 2022-01-21 09:45:28 +01:00
CallMap_80_delta.php Fixed return type in the historical callmap, and the old state in the CallMap_80_delta.php 2022-01-26 18:02:27 +01:00
CallMap_81_delta.php Merge pull request #7145 from villfa/fix/ldap_set_rebind_proc 2021-12-15 00:49:50 +01:00
CallMap_historical.php Ensure trait_exists() always returns bool 2022-02-01 16:51:09 +01:00
CallMap.php Ensure trait_exists() always returns bool 2022-02-01 16:51:09 +01:00
InternalTaintSinkMap.php Conversion of Psalm\Type 2021-12-14 02:31:22 +01:00
PropertyMap.php Made the nodeValue nullable as indicated by the docs. 2022-01-27 19:19:57 +01:00