1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-13 09:47:29 +01:00
psalm/src
AndrolGenhald d022910599
ConcatAnalyzer improvements and non-falsy-string fixes. (#5544)
* ConcatAnalyzer improvements.

Deduplicate code.
Improve type inference.
Allow literal type inference when only one side has multiple types (fixes #5483).
Fix invalid type inference with negative int as right operand.

* Fix inference to be lowercase-string when concatenating int.

* Fix TNonEmptyLowercaseString to not be subtype of TNonFalsyString.

'0' is a non-empty-lowercase-string that is falsy.

* Fix other issues with non-falsy-string.

* Nest ands and ors

Co-authored-by: Matthew Brown <github@muglug.com>
2021-03-31 23:16:21 -04:00
..
Psalm ConcatAnalyzer improvements and non-falsy-string fixes. (#5544) 2021-03-31 23:16:21 -04:00
command_functions.php Add option to dump taint graph (#5080) 2021-01-22 16:04:15 -05:00
functions.php
psalm_plugin.php Wrap entrypoints into IIFE to protect their variables (#5366) 2021-03-11 00:14:22 -05:00
psalm-language-server.php Wrap entrypoints into IIFE to protect their variables (#5366) 2021-03-11 00:14:22 -05:00
psalm-refactor.php Fix BC break introduced in 4.6.3 (#5410) 2021-03-16 19:28:18 -04:00
psalm.php Fix BC break introduced in 4.6.3 (#5410) 2021-03-16 19:28:18 -04:00
psalter.php Fix BC break introduced in 4.6.3 (#5410) 2021-03-16 19:28:18 -04:00
spl_object_id.php