1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-05 20:48:45 +01:00
psalm/src/Psalm/Internal/Analyzer/Statements/Expression/Fetch
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
..
ArrayFetchAnalyzer.php Add tainting for array keys 2021-03-24 15:32:56 -04:00
AtomicPropertyFetchAnalyzer.php Added event to prevent tainting. (#5398) 2021-03-19 22:41:41 -04:00
ClassConstFetchAnalyzer.php allow $var::class on templates (#5484) 2021-03-26 21:21:38 -04:00
ConstFetchAnalyzer.php Improve completion for namespaced classes 2021-02-14 23:25:13 -05:00
InstancePropertyFetchAnalyzer.php Add slashes 2021-02-09 11:48:24 -05:00
StaticPropertyFetchAnalyzer.php ConcatAnalyzer improvements and non-falsy-string fixes. (#5544) 2021-03-31 23:16:21 -04:00
VariableFetchAnalyzer.php Mark variables in throw arguments as used (#5166) 2021-02-06 22:07:01 -05:00