1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-14 18:36:58 +01:00
psalm/src/Psalm/Internal
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
..
Algebra
Analyzer ConcatAnalyzer improvements and non-falsy-string fixes. (#5544) 2021-03-31 23:16:21 -04:00
Codebase Closes #3238 Marked flock as an impure function (#5543) 2021-03-31 09:55:36 -04:00
DataFlow Add hints for MixedAssignment issues 2021-03-17 01:10:42 -04:00
Diff Fix #5297 - be more sensitive to additions and deletions in language server mode 2021-02-28 01:36:06 -05:00
ExecutionEnvironment
FileManipulation
Fork
Json Fix JSON reports with long UTF8 strings (#5300) 2021-03-01 11:23:21 -05:00
LanguageServer Add documentation to LSP (#5267) 2021-02-24 10:14:04 -05:00
PhpTraverser
PhpVisitor Forbid template annotation on closures (#5499) 2021-03-29 15:10:04 -04:00
PluginManager
Provider Fix #5506 – make array_values and iterator_to_array respect nested templates 2021-03-29 09:37:51 -04:00
Scanner Add @ignore-var and @psalm-ignore-var (#5488) 2021-03-26 21:20:23 -04:00
Scope
Stubs/Generator Fix inference of conditional types when wildcard constant given 2021-02-20 12:21:52 -05:00
Type ConcatAnalyzer improvements and non-falsy-string fixes. (#5544) 2021-03-31 23:16:21 -04:00
TypeVisitor Support template property invariance (fixes #5371) (#5414) 2021-03-19 21:55:50 -04:00
Algebra.php
Clause.php
Composer.php
ErrorHandler.php Convert PHP errors / warnings / notices to exceptions (#5260) 2021-02-22 09:19:34 -05:00
EventDispatcher.php Added event to prevent tainting. (#5398) 2021-03-19 22:41:41 -04:00
IncludeCollector.php
MethodIdentifier.php
ReferenceConstraint.php
RuntimeCaches.php