1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00
psalm/tests
Lukas Reschke 4de2bf8f7f
Add psalm-flow for string functions from sscanf to wordwrap (#4591)
* Add string functions from sscanf to wordwrap

This should conclude all string functions from https://www.php.net/manual/en/book.strings.php

Continuation of https://github.com/vimeo/psalm/pull/4576

Ref https://github.com/vimeo/psalm/issues/3636

* Add StrTrReturnTypeProvider

* Fix psalm error

* phpcs

* Line length

* Ignore false return on vsprintf

Co-authored-by: Matthew Brown <github@muglug.com>
2021-01-29 11:46:19 +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 allow static return type in PHP8 (#4641) 2021-01-29 11:46:18 +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 Fix #4637 - prevent regression when negating function call with === false 2021-01-29 11:46:18 +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 Fix type inference when unpacking typed iterables (#4487) 2021-01-29 11:46:04 +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 Use better inference for getAttributes return type 2021-01-29 11:45:00 +01:00
BadFormatTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
BinaryOperationTest.php Fix #4527 - improve interpolated string types 2021-01-29 11:46:08 +01:00
CallableTest.php Fix #4210 - fix __invoke declaration tracing 2021-01-29 11:39:38 +01:00
ClassLoadOrderTest.php More return types (#4173) 2021-01-29 11:38:57 +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
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
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
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 More return types (#4173) 2021-01-29 11:38:57 +01:00
MethodMutationTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
MethodSignatureTest.php Fix #4537 - use more rigorous inerhitance for return and param types 2021-01-29 11:46:09 +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 Add psalm-flow for string functions from sscanf to wordwrap (#4591) 2021-01-29 11:46:19 +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 More return types (#4173) 2021-01-29 11:38:57 +01:00
TypeCombinationTest.php Fix a couple of false-positive redundant conditions 2021-01-29 11:39:38 +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 Fix #4472 - if something flows into a byref var it’s used 2021-01-29 11:46:13 +01:00
VariadicTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00