1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00
psalm/tests
orklah 005373bbc2
Detect redundant cast (#4695)
* detect redundant cast

* fix redundant cast issues

* fix redundant cast in tests
2021-01-29 11:46:25 +01:00
..
CommandFunctions More return types (#4173) 2021-01-29 11:38:57 +01:00
Config allow static return type in PHP8 (#4641) 2021-01-29 11:46:18 +01:00
EndToEnd Fix test 2021-01-29 11:46:19 +01:00
FileManipulation Fix test 2021-01-29 11:46:23 +01:00
FileUpdates Fix tests 2021-01-29 11:46:05 +01:00
fixtures Break apart complex method 2021-01-29 11:46:07 +01:00
Internal/Provider Fix #4464 - bust cache when Psalm’s version changes, not just composer’s 2021-01-29 11:45:01 +01:00
LanguageServer unused use statements (#4228) 2021-01-29 11:39:42 +01:00
Loop Fix #4467 - variables are only the same if they were set in the same location 2021-01-29 11:45:01 +01:00
Progress
Template Fix #4545 - allow intersections in more places 2021-01-29 11:46:10 +01:00
Traits Ensure Stringable is always available to tests that need it 2021-01-29 11:44:35 +01:00
TypeReconciliation Detect redundant cast (#4695) 2021-01-29 11:46:25 +01:00
AlgebraTest.php Fix overeager inference 2021-01-29 11:45:02 +01:00
AnnotationTest.php Fix int-mask-of expansion 2021-01-29 11:45:02 +01:00
ArgTest.php Allow named arguments to variadic functions (#4575) 2021-01-29 11:46:11 +01:00
ArrayAccessTest.php Detect trying to access to a list with a negative offset (#4552) 2021-01-29 11:46:11 +01:00
ArrayAssignmentTest.php Detect redundant cast (#4695) 2021-01-29 11:46:25 +01:00
ArrayFunctionCallTest.php Use more accurate comparison for non-empty-lists 2021-01-29 11:44:34 +01:00
AssertAnnotationTest.php Fix #4414 - allow multiple @psalm-assert-if-true on same var 2021-01-29 11:44:31 +01:00
AssignmentTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
AttributeTest.php Fix #4609 - add more attribute rules 2021-01-29 11:46:21 +01:00
BadFormatTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
BinaryOperationTest.php Narrow inference of $a <=> $b from "int" to "-1|0|1" (#4680) 2021-01-29 11:46:23 +01:00
CallableTest.php Fix #4210 - fix __invoke declaration tracing 2021-01-29 11:39:38 +01:00
ClassLoadOrderTest.php Detect redundant cast (#4695) 2021-01-29 11:46:25 +01:00
ClassScopeTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ClassStringTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ClassTest.php Fix tests 2021-01-29 11:46:05 +01:00
CloneTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ClosureTest.php Add descendant variables for closure uses 2021-01-29 11:46:07 +01:00
CodebaseTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ComposerLockTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ConstantTest.php Fix #4479 - use correct keys in message 2021-01-29 11:46:03 +01:00
DeprecatedAnnotationTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
DocblockInheritanceTest.php Fix #4537 - use more rigorous inerhitance for return and param types 2021-01-29 11:46:09 +01:00
DocCommentTest.php Test parallelization (#4045) 2021-01-29 11:38:04 +01:00
DocumentationTest.php Break out TaintedInput issues into a lot of separate ones 2021-01-29 11:46:13 +01:00
EnumTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ErrorBaselineTest.php return types (#4311) 2021-01-29 11:39:53 +01:00
ExtendsFinalClassTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ExtensionRequirementTest.php Initial proposal for psalm-require-{extends, implements} (#4361) 2021-01-29 11:41:10 +01:00
FileDiffTest.php replace deprecated methods with their equivalent (#4217) 2021-01-29 11:39:39 +01:00
FileReferenceTest.php unused use statements (#4228) 2021-01-29 11:39:42 +01:00
ForbiddenCodeTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
FunctionCallTest.php Fix preg_match_all stub (#4325) 2021-01-29 11:39:55 +01:00
GeneratorTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
IfThisIsTest.php Add more tests (interface contained by still faulty) 2020-07-12 20:06:03 +00:00
ImmutableAnnotationTest.php unused use statements (#4228) 2021-01-29 11:39:42 +01:00
ImplementationRequirementTest.php Initial proposal for psalm-require-{extends, implements} (#4361) 2021-01-29 11:41:10 +01:00
IncludeTest.php Fix #4264 - prevent crash when analysing file with duplicate classes 2021-01-29 11:39:44 +01:00
InterfaceTest.php Fix #4537 - use more rigorous inerhitance for return and param types 2021-01-29 11:46:09 +01:00
InternalAnnotationTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
IssueBufferTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
IssueSuppressionTest.php Support multiple issue types in @psalm-suppress (#4179) 2021-01-29 11:39:36 +01:00
JsonOutputTest.php Fix #4349 - improve types for suggested unions 2021-01-29 11:39:57 +01:00
junit.xsd Validate junit output against xsd 2020-03-08 20:18:35 -05:00
ListTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
MagicMethodAnnotationTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
MagicPropertyTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
MatchTest.php Fix #4544 - improve handling of get_class in match 2021-01-29 11:46:10 +01:00
MethodCallTest.php Detect redundant cast (#4695) 2021-01-29 11:46:25 +01:00
MethodMutationTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
MethodSignatureTest.php Detect redundant cast (#4695) 2021-01-29 11:46:25 +01:00
MixinAnnotationTest.php unused use statements (#4228) 2021-01-29 11:39:42 +01:00
NamespaceTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
Php40Test.php More return types (#4173) 2021-01-29 11:38:57 +01:00
Php55Test.php More return types (#4173) 2021-01-29 11:38:57 +01:00
Php56Test.php Fix int-mask-of expansion 2021-01-29 11:45:02 +01:00
Php70Test.php More return types (#4173) 2021-01-29 11:38:57 +01:00
Php71Test.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ProjectCheckerTest.php unused use statements (#4228) 2021-01-29 11:39:42 +01:00
PropertyTypeTest.php Fix #4540 - use correct method when simulating property setting 2021-01-29 11:46:09 +01:00
PsalmPluginTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
PureAnnotationTest.php unused use statements (#4228) 2021-01-29 11:39:42 +01:00
PureCallableTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ReferenceConstraintTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ReportOutputTest.php Add SARIF as report output (#4582) 2021-01-29 11:46:13 +01:00
ReturnTypeTest.php Add support for @return never 2021-01-29 11:45:02 +01:00
SelfOutTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
StubTest.php Fix #4509 - treat expression-derived constants as mixed 2021-01-29 11:46:06 +01:00
SwitchTypeTest.php Fix #4327 - make sure loop always returns 2021-01-29 11:39:55 +01:00
TaintTest.php Move param taint sink addition after arguuments have been analysed 2021-01-29 11:46:22 +01:00
TestCase.php Add SARIF as report output (#4582) 2021-01-29 11:46:13 +01:00
TestConfig.php replace return; by return null; in every non-void method, add return null; when mising, add return types, remove redundant phpdoc (#4176) 2021-01-29 11:38:58 +01:00
ThrowsAnnotationTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ThrowsInGlobalScopeTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ToStringTest.php Ensure Stringable is always available to tests that need it 2021-01-29 11:44:35 +01:00
TraceTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
TraitTest.php Track final-ness of class when evaluating trait returns 2021-01-29 11:44:31 +01:00
TryCatchTest.php Fix #4418 - improve try analysis for mixed, too 2021-01-29 11:44:32 +01:00
TypeAnnotationTest.php Fix #4653 - prevent crash with recursive type in root namespace 2021-01-29 11:46:20 +01:00
TypeCombinationTest.php Don’t erase already-known literal ints 2021-01-29 11:46:20 +01:00
TypeParseTest.php Add support for int-mask<...> and int-mask-of<...> 2021-01-29 11:44:35 +01:00
UnusedCodeTest.php Fix #4386 - fix issues with property promotion 2021-01-29 11:41:13 +01:00
UnusedVariableTest.php Detect redundant cast (#4695) 2021-01-29 11:46:25 +01:00
VariadicTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00