1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +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 Remove reference 2022-03-07 14:59:11 -05:00
EndToEnd Fix extension capitalization issue, add extensions to version message. 2022-02-03 11:34:50 -06:00
FileManipulation Merge branch '4.x' into upstream-master 2022-02-11 03:51:48 +02:00
FileUpdates Merge remote-tracking branch 'upstream/4.x' into upstream-master4 2022-01-22 17:48:42 +01:00
fixtures Merge remote-tracking branch 'upstream/4.x' into upstream-master7 2022-02-12 09:59:55 +01:00
Internal Fix codestyle erors in InternalCallMapHandlerTest 2022-07-06 03:33:34 -05:00
LanguageServer Set number of lines before and after namespace. 2021-12-15 04:58:32 +01:00
Loop Remove more unused code from LoopAnalyzer 2022-02-09 16:37:15 -05:00
Progress Set number of lines before and after namespace. 2021-12-15 04:58:32 +01:00
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 Merge remote-tracking branch 'upstream/4.x' into upstream-master13 2022-02-26 21:26:59 +01:00
Type Format declare(strict_types=1) 2021-12-15 04:42:37 +01:00
TypeReconciliation Fix type reconciliation breaking Context::$references_in_scope (fixes #8289). 2022-07-21 14:27:21 -05:00
AlgebraTest.php Fix test with sort 2022-03-14 13:02:55 -04:00
AnnotationTest.php Add support for references and improve UnusedVariable checks (fixes #7254). 2022-01-26 12:55:47 -06:00
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 feat: allow unions for key-of/value-of 2022-01-27 22:28:24 +01:00
AssertAnnotationTest.php bugfix: do not extend the type - only narrow down 2022-06-12 19:20:38 +02:00
AssignmentTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
AttributeTest.php Merge branch '4.x' 2022-07-07 15:01:38 -05:00
BadFormatTest.php Set number of lines before and after namespace. 2021-12-15 04:58:32 +01:00
BinaryOperationTest.php Merge branch '4.x' 2022-07-07 15:01:38 -05:00
CallableTest.php refactor description of types in Atomic 2022-01-22 19:34:57 +01:00
CastTest.php Improve bool to int casting. 2022-02-18 13:22:17 -06:00
CheckTypeTest.php Add @psalm-check-type and @psalm-check-type-exact. 2022-02-17 10:37:13 -06:00
ClassLikeDocblockParserTest.php remove unused imports 2022-01-21 00:17:06 +01:00
ClassLikeStringTest.php Use objects, not strings, for assertions (#7410) 2022-01-20 17:33:06 -05:00
ClassLoadOrderTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
ClassScopeTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
ClassTest.php Fix tests 2022-01-31 10:28:47 +01:00
CloneTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
ClosureTest.php merge fixes 2022-02-26 21:28:15 +01:00
CodebaseTest.php [FEATURE] Allow to intercept adding issue in IssueBuffer 2022-01-30 17:46:08 +01:00
CommentAnalyzerTest.php Set number of lines before and after namespace. 2021-12-15 04:58:32 +01:00
ComposerLockTest.php Applied JsonThrowOnErrorRector 2022-01-05 19:32:43 +02:00
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 Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
CoreStubsTest.php fix merge induced errors 2022-01-22 18:05:32 +01:00
DeprecatedAnnotationTest.php Run method call prohibition analyzer when cloning 2022-06-24 12:37:33 +02:00
DocblockInheritanceTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
DocCommentTest.php Set number of lines before and after namespace. 2021-12-15 04:58:32 +01:00
DocumentationTest.php Document @psalm-ignore-variable-* 2022-04-27 01:46:13 -04:00
EnumTest.php Merge remote-tracking branch 'upstream/4.x' into upstream-master13 2022-02-26 21:26:59 +01:00
ErrorBaselineTest.php Set number of lines before and after namespace. 2021-12-15 04:58:32 +01:00
ExtendsFinalClassTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
ExtensionRequirementTest.php Ensure that all entries in test arrays have explicit keys (#7386) 2022-01-13 13:49:37 -05:00
FileDiffTest.php Applied ClosureToArrowFunctionRector 2022-01-06 00:48:04 +02:00
FileReferenceTest.php Set number of lines before and after namespace. 2021-12-15 04:58:32 +01:00
ForbiddenCodeTest.php remove forbidEcho 2022-01-18 18:25:18 +01:00
FunctionCallTest.php Fix issues with int range unpacking and with min/max. 2022-02-18 15:55:26 -06:00
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 fix merge induced errors 2022-01-18 23:07:35 +01:00
ImmutableAnnotationTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
ImplementationRequirementTest.php Ensure that all entries in test arrays have explicit keys (#7386) 2022-01-13 13:49:37 -05:00
IncludeTest.php Merge remote-tracking branch 'upstream/4.x' into upstream-master4 2022-01-22 17:48:42 +01:00
InterfaceTest.php Fix tests 2022-01-31 10:28:47 +01:00
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 Strip colours from success message 2022-02-09 15:35:40 +02:00
IssueSuppressionTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
JsonOutputTest.php Make error message for truthy/falsy more accurate 2022-02-10 18:46:22 -05:00
junit.xsd
KeyOfArrayTest.php feat: expand properties-of to keyed array 2022-02-21 23:02:27 +01:00
ListTest.php merge fixes 2022-02-26 21:28:15 +01:00
MagicMethodAnnotationTest.php Merge branch '4.x' into upstream-master 2022-02-11 03:51:48 +02:00
MagicPropertyTest.php Merge remote-tracking branch 'upstream/4.x' into upstream-master 2022-01-14 21:01:25 +01:00
MatchTest.php don't anonymize call to count to allow assertions on count to be retrieved 2022-02-13 22:38:38 +01:00
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 Set number of lines before and after namespace. 2021-12-15 04:58:32 +01:00
MethodSignatureTest.php skip a test because we removed the feature for now 2022-02-11 21:53:29 +01:00
MixinAnnotationTest.php Merge branch '4.x' into upstream-master 2022-02-11 03:51:48 +02:00
NamespaceTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
NativeIntersectionsTest.php fix: Tests / minor bug 2022-01-22 00:00:45 +00:00
NativeUnionsTest.php fix: Tests / minor bug 2022-01-22 00:00:45 +00:00
Php40Test.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
Php55Test.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
Php56Test.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
Php70Test.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
Php71Test.php Ensure all template parameters are specified in classes, interfaces, traits 2022-01-31 10:06:31 +01:00
ProjectCheckerTest.php Fix tests. 2022-06-22 01:53:42 -05:00
PropertiesOfTest.php feat: ignore static properties in properties-of<T> 2022-02-22 19:49:03 +01:00
PropertyTypeInvarianceTest.php Ensure all template parameters are specified in classes, interfaces, traits 2022-01-31 10:06:31 +01:00
PropertyTypeTest.php Remove more unused code from LoopAnalyzer 2022-02-09 16:37:15 -05:00
PsalmPluginTest.php drop compatibility aliases 2022-01-19 19:29:16 +01:00
PureAnnotationTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
PureCallableTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
ReadonlyPropertyTest.php fix merge induced errors 2022-01-18 23:07:35 +01:00
ReferenceConstraintTest.php Minor CS fix, phrasing improvement, fix test. 2022-01-26 12:55:47 -06:00
ReferenceTest.php Fix type reconciliation breaking Context::$references_in_scope (fixes #8289). 2022-07-21 14:27:21 -05:00
ReportOutputTest.php Applied JsonThrowOnErrorRector 2022-01-05 19:32:43 +02:00
ReturnTypeTest.php Post-merge fixes 2022-05-28 15:05:17 -04:00
somefile.php create real path for Psalm to stop ignoring suppressions 2021-08-19 19:31:58 +02:00
StubTest.php Ensure all template parameters are specified in classes, interfaces, traits 2022-01-31 10:06:31 +01:00
SuperGlobalsTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
SwitchTypeTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
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 Enable extensions based on composer.json instead of those loaded at runtime (fixes #5482). 2022-01-27 16:30:14 -06:00
ThisOutTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
ThrowsAnnotationTest.php Set number of lines before and after namespace. 2021-12-15 04:58:32 +01:00
ThrowsInGlobalScopeTest.php Set number of lines before and after namespace. 2021-12-15 04:58:32 +01:00
ToStringTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
TraceTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
TraitTest.php merge fixes 2022-02-26 21:28:15 +01:00
TryCatchTest.php Remove unused use 2022-01-13 19:01:56 -05:00
TypeAnnotationTest.php Simplify issue suppression in tests 2022-01-13 14:38:17 -05:00
TypeCombinationTest.php remove TPositiveInt usage for TIntRange 2022-01-23 22:04:18 +01:00
TypeComparatorTest.php style: fix linting issues and failing tests 2022-02-22 20:13:24 +01:00
TypeParseTest.php feat: make value-of<T> capable for template types 2022-01-27 22:28:40 +01:00
UnresolvableIncludeTest.php Ensure that all entries in test arrays have explicit keys (#7386) 2022-01-13 13:49:37 -05:00
UnusedCodeTest.php Ensure all template parameters are specified in classes, interfaces, traits 2022-01-31 10:06:31 +01:00
UnusedVariableTest.php Fix some minor issues with references. 2022-02-17 09:31:33 -06:00
ValueOfTest.php Allow value-of to work with backed enums (fixes #7874). 2022-07-18 14:10:06 -05:00
VariadicTest.php Ensure that all entries in test arrays have explicit keys (#7386) 2022-01-13 13:49:37 -05:00