1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 12:55:26 +01:00
psalm/tests
AndrolGenhald d54eebfe02 Fix various array spread issues.
- Correctly infer `array` and `list` instead of `non-empty-array` and `non-empty-list` (fixes #7296)
 - Add support for spreading string keys (fixes #7297).
 - Show issue when trying to unpack non-iterable
 - Show issue when trying to unpack iterable with non-array-key key
 - Re-added invalid PHP 8.0 tests removed in #6613
 - Unpacked lists with known keys will be inferred as eg `array{0: int, 1: int}<int<0, max>, int>` now but will still be treated as lists
 - Unpacked arrays with known keys will now be inferred as eg `array{a: string, b: string}<int, int>` instead of `array<int|string, int|string>`
2022-07-26 12:00:03 -05:00
..
CommandFunctions Apply literal number separator rector 2022-01-05 01:00:05 +02:00
Config
EndToEnd
FileManipulation
FileUpdates
fixtures
Internal Fix codestyle erors in InternalCallMapHandlerTest 2022-07-06 03:33:34 -05:00
LanguageServer
Loop
Progress
ReturnTypeProvider Merge branch '4.x' into update-master 2022-05-28 14:49:12 -04:00
Template Merge branch '4.x' 2022-07-07 15:01:38 -05:00
Traits
Type
TypeReconciliation Fix type reconciliation breaking Context::$references_in_scope (fixes #8289). 2022-07-21 14:27:21 -05:00
AlgebraTest.php
AnnotationTest.php
ArgTest.php Update empty list/array notation 2022-05-28 16:19:49 -04:00
ArrayAccessTest.php Fix tests. 2022-06-22 01:53:42 -05:00
ArrayAssignmentTest.php Fix various array spread issues. 2022-07-26 12:00:03 -05:00
ArrayFunctionCallTest.php Update empty list/array notation 2022-05-28 16:19:49 -04:00
ArrayKeysTest.php
AssertAnnotationTest.php bugfix: do not extend the type - only narrow down 2022-06-12 19:20:38 +02:00
AssignmentTest.php
AttributeTest.php Merge branch '4.x' 2022-07-07 15:01:38 -05:00
BadFormatTest.php
BinaryOperationTest.php Merge branch '4.x' 2022-07-07 15:01:38 -05:00
CallableTest.php
CastTest.php
CheckTypeTest.php
ClassLikeDocblockParserTest.php
ClassLikeStringTest.php
ClassLoadOrderTest.php
ClassScopeTest.php
ClassTest.php
CloneTest.php
ClosureTest.php
CodebaseTest.php
CommentAnalyzerTest.php
ComposerLockTest.php
ConstantTest.php Fix class const issue when using floats declared in future consts (fixes #7973). 2022-05-20 14:46:05 -05:00
ConstValuesTest.php
CoreStubsTest.php
DeprecatedAnnotationTest.php Run method call prohibition analyzer when cloning 2022-06-24 12:37:33 +02:00
DocblockInheritanceTest.php
DocCommentTest.php
DocumentationTest.php Document @psalm-ignore-variable-* 2022-04-27 01:46:13 -04:00
EnumTest.php
ErrorBaselineTest.php
ExtendsFinalClassTest.php
ExtensionRequirementTest.php
FileDiffTest.php
FileReferenceTest.php
ForbiddenCodeTest.php
FunctionCallTest.php
FunctionLikeDocblockParserTest.php update test cases 2022-06-15 12:31:53 +02:00
GeneratorTest.php Remove @psalm-generator-return annotation 2022-04-09 22:15:37 +02:00
IfThisIsTest.php
ImmutableAnnotationTest.php
ImplementationRequirementTest.php
IncludeTest.php
InterfaceTest.php
InternalAnnotationTest.php Merge branch '4.x' 2022-07-07 15:01:38 -05:00
IntRangeTest.php Merge branch '4.x' 2022-07-07 15:01:38 -05:00
IssueBufferTest.php
IssueSuppressionTest.php
JsonOutputTest.php
junit.xsd
KeyOfArrayTest.php
ListTest.php
MagicMethodAnnotationTest.php
MagicPropertyTest.php
MatchTest.php
MethodCallTest.php release:fix: Change return type of createFromInterface() methods on DateTime and DateTimeImmutable to 'static' so extending classes are recognized. 2022-06-13 14:41:02 +02:00
MethodMutationTest.php
MethodSignatureTest.php
MixinAnnotationTest.php
NamespaceTest.php
NativeIntersectionsTest.php
NativeUnionsTest.php
Php40Test.php
Php55Test.php
Php56Test.php
Php70Test.php
Php71Test.php
ProjectCheckerTest.php Fix tests. 2022-06-22 01:53:42 -05:00
PropertiesOfTest.php
PropertyTypeInvarianceTest.php
PropertyTypeTest.php
PsalmPluginTest.php
PureAnnotationTest.php
PureCallableTest.php
ReadonlyPropertyTest.php
ReferenceConstraintTest.php
ReferenceTest.php Fix type reconciliation breaking Context::$references_in_scope (fixes #8289). 2022-07-21 14:27:21 -05:00
ReportOutputTest.php
ReturnTypeTest.php Post-merge fixes 2022-05-28 15:05:17 -04:00
somefile.php
StubTest.php
SuperGlobalsTest.php
SwitchTypeTest.php
TaintTest.php Support taints in new $_GET["a"] calls 2022-07-15 22:17:59 -04:00
TestCase.php Avoid json_encode when serializing non-UTF8 literals 2022-04-27 01:42:37 -04:00
TestConfig.php
ThisOutTest.php
ThrowsAnnotationTest.php
ThrowsInGlobalScopeTest.php
ToStringTest.php
TraceTest.php
TraitTest.php
TryCatchTest.php
TypeAnnotationTest.php
TypeCombinationTest.php
TypeComparatorTest.php
TypeParseTest.php
UnresolvableIncludeTest.php
UnusedCodeTest.php
UnusedVariableTest.php
ValueOfTest.php Allow value-of to work with backed enums (fixes #7874). 2022-07-18 14:10:06 -05:00
VariadicTest.php