1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-29 20:28:59 +01:00
psalm/tests
Joe Hoyle 6953658961
Add constant fetch to reference map (#5115)
* Add constant fetch to reference map

To support showing constant types on hover of constant references, we need to add them to the ref map.

* Fix root constants

* PHPCBF
2021-01-29 11:47:38 +01:00
..
CommandFunctions More return types (#4173) 2021-01-29 11:38:57 +01:00
Config Trigger dispatch even when only legacy hooks (#4962) 2021-01-29 11:47:28 +01:00
EndToEnd Use separate exit code to indicate Psalm finding issues (#5087) 2021-01-29 11:47:35 +01:00
FileManipulation Split unit test over multiple jobs in GitHub Actions, lowering the total run time (#4985) 2021-01-29 11:47:31 +01:00
FileUpdates Remove file map cache when re-analyzing files (#5084) 2021-01-29 11:47:34 +01:00
fixtures Add option to dump taint graph (#5080) 2021-01-29 11:47:34 +01:00
Internal/Provider Remove file map cache when re-analyzing files (#5084) 2021-01-29 11:47:34 +01:00
LanguageServer Add constant fetch to reference map (#5115) 2021-01-29 11:47:38 +01:00
Loop Fix #5001 - update variables after context after type change from empty 2021-01-29 11:47:31 +01:00
Progress Add framework for taint analysis to Psalm 2019-08-04 10:37:36 -04:00
Template Fix #5107 - treat function-bound templated parameters the same 2021-01-29 11:47:37 +01:00
Traits Ensure Stringable is always available to tests that need it 2021-01-29 11:44:35 +01:00
TypeReconciliation Ensure getId() output can always be parsed as a type 2021-01-29 11:47:36 +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 Fix #4631 - prevent reusing named params 2021-01-29 11:47:38 +01:00
ArrayAccessTest.php add ArrayAccess to SimpleXmlElement (#4934) 2021-01-29 11:47:27 +01:00
ArrayAssignmentTest.php don't throw InvalidArrayOffset when dealing with templates (#5019) 2021-01-29 11:47:32 +01:00
ArrayFunctionCallTest.php Ensure getId() output can always be parsed as a type 2021-01-29 11:47:36 +01:00
AssertAnnotationTest.php Ensure getId() output can always be parsed as a type 2021-01-29 11:47:36 +01:00
AssignmentTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
AttributeTest.php Allow Attribute::IS_REPEATABLE (#4971) 2021-01-29 11:47:29 +01:00
BadFormatTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
BinaryOperationTest.php Calculate more literal values (#5032) 2021-01-29 11:47:32 +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 Resolve class aliases when accessing properties (#5068) 2021-01-29 11:47:34 +01:00
CloneTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ClosureTest.php Ensure getId() output can always be parsed as a type 2021-01-29 11:47:36 +01:00
CodebaseTest.php implement DTO for plugins (#4881) 2021-01-29 11:47:27 +01:00
ComposerLockTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ConstantTest.php Break out array_key_exists tests 2021-01-29 11:47:12 +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 Added test to enforce that all supported annotations are documented (#4723) 2021-01-29 11:47:04 +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 #4997 added more precise type inference for count() returning 0 or positive-int on known arrays (#4999) 2021-01-29 11:47:31 +01:00
GeneratorTest.php Check iterator types on yield from (#5042) 2021-01-29 11:47:33 +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 phpdoc (#4905) 2021-01-29 11:47:23 +01:00
InterfaceTest.php Fix #4010 – don’t create interface intersections unless there’s no overlap 2021-01-29 11:47:37 +01:00
InternalAnnotationTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
IssueBufferTest.php implement DTO for plugins (#4881) 2021-01-29 11:47:27 +01:00
IssueSuppressionTest.php Support multiple issue types in @psalm-suppress (#4179) 2021-01-29 11:39:36 +01:00
JsonOutputTest.php Ensure getId() output can always be parsed as a type 2021-01-29 11:47:36 +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 Allow by reference parameters in method docblock (#4873) 2021-01-29 11:47:22 +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 Remove ReflectionType::getName(), move ReflectionType::isBuiltin() (#5090) 2021-01-29 11:47:35 +01:00
MethodMutationTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
MethodSignatureTest.php Fix #5070 – fix static return type inference in static methods 2021-01-29 11:47:34 +01:00
MixinAnnotationTest.php Fix #4837 - bind correct static class when checking mixin types 2021-01-29 11:47:20 +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 Ensure getId() output can always be parsed as a type 2021-01-29 11:47:36 +01:00
Php70Test.php Fix test failures 2021-01-29 11:46:26 +01:00
Php71Test.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ProjectCheckerTest.php implement DTO for plugins (#4881) 2021-01-29 11:47:27 +01:00
PropertyTypeTest.php Fix #5097 - memoise more things during null coalesce 2021-01-29 11:47:37 +01:00
PsalmPluginTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
PureAnnotationTest.php Tighten up rules arouund when mutation-free methods get memoised 2021-01-29 11:47:18 +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 SARIF report: Include help links (#4924) 2021-01-29 11:47:25 +01:00
ReturnTypeTest.php Ensure getId() output can always be parsed as a type 2021-01-29 11:47:36 +01:00
SelfOutTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
StubTest.php Fix #4705 - clear documenting method ids when scanning stubs 2021-01-29 11:47:10 +01:00
SwitchTypeTest.php Fix #4794 - invvalidate dependent types when their variables change 2021-01-29 11:47:17 +01:00
TaintTest.php Avoid false positives for taint specialized calls even when not using a variable (#4948) 2021-01-29 11:47:28 +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 Make more try vars potentially undefined 2021-01-29 11:47:14 +01:00
TypeAnnotationTest.php Fix #4653 - prevent crash with recursive type in root namespace 2021-01-29 11:46:20 +01:00
TypeCombinationTest.php Ensure getId() output can always be parsed as a type 2021-01-29 11:47:36 +01:00
TypeParseTest.php Ensure getId() output can always be parsed as a type 2021-01-29 11:47:36 +01:00
UnusedCodeTest.php Break out parent and implemented class checks 2021-01-29 11:47:26 +01:00
UnusedVariableTest.php Add missing dataflow population in array spreads (#5059) 2021-01-29 11:47:34 +01:00
VariadicTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00