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

* fix redundant cast issues

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