1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00
psalm/tests
Grégoire Paris bc91de015e
Mark throwable methods as pure (#3171)
* Write stub as valid PHP

This works probably because it is not parsed by PHP but by something
more tolerant, but let's make it more valid (the final access type in
the signature is not valid) PHP anyway, that will raise fewer eyebrows.

* Document actual return type

See ca006e54e3/Zend/zend_exceptions.stub.php (L8)

* Mark all methods from Throwable as mutation free

Exception is the only possible class implementation of Throwable, and
all of its methods except __toString() are final.
See ca006e54e3/Zend/zend_exceptions.stub.php (L3-L25)

Closes #3170
2020-04-17 22:08:26 -04:00
..
command_functions Ensured resetting previous memory limit in after test has run. 2020-02-24 21:19:16 -05:00
Config Fix #3009 - make sure return type is set when returning early 2020-03-23 13:25:55 -04:00
EndToEnd Make config generation smarter 2020-02-17 22:05:58 -05:00
FileManipulation Use more accurate means of determining whether function did return 2020-03-28 23:37:42 -04:00
FileUpdates Fix #3117 - invalidate all caches when composer lockfile changes 2020-04-12 11:41:37 -04:00
fixtures Allow types to be traversed 2020-03-14 23:54:51 -04:00
Internal/Provider Fix ProjectAnalyzer test 2020-04-12 12:02:19 -04:00
LanguageServer Fix #3117 - invalidate all caches when composer lockfile changes 2020-04-12 11:41:37 -04:00
Loop Fix #3125 - only apply clauses where applicable 2020-04-12 21:50:10 -04:00
Progress
Template Revert "Support non-empty-arrays in array_keys (#3168)" (#3172) 2020-04-17 16:52:08 -04:00
Traits Fix deprecated call 2020-04-03 14:56:11 -04:00
TypeReconciliation Fix #3133 - prevent crash when analysing isset 2020-04-13 08:34:38 -04:00
AlgebraTest.php Fix a test thing 2020-03-29 19:51:13 -04:00
AnnotationTest.php Consolidate generator tests 2020-04-06 08:57:18 -04:00
ArgTest.php Things with mixed values can be the same 2020-03-23 12:08:05 -04:00
ArrayAccessTest.php Allow memoisation of ArrayAccess::offsetGet 2020-04-12 14:43:12 -04:00
ArrayAssignmentTest.php Improve ergonomics of array assignment 2020-04-11 17:50:24 -04:00
ArrayFunctionCallTest.php Fix #3061 - prevent array_key_exists from completely changing type 2020-04-03 08:05:21 -04:00
AssertAnnotationTest.php Fix $assertion_var_id calculation in method calls (#3115) 2020-04-09 23:03:53 -04:00
AssignmentTest.php
BadFormatTest.php
BinaryOperationTest.php Fix #2940 - fix array offset assignment under ??= 2020-03-09 14:09:41 -04:00
CallableTest.php Merge with mixed in nested arrays 2020-04-09 09:27:21 -04:00
ClassLoadOrderTest.php
ClassScopeTest.php Prevent self/static refs outside classes 2020-03-01 17:25:55 -05:00
ClassStringTest.php Fix resolution of get_called_class 2020-03-27 09:51:53 -04:00
ClassTest.php Improve treatment of static in intersection 2020-03-27 19:17:44 -04:00
ClosureTest.php
CodebaseTest.php
ComposerLockTest.php
ConstantTest.php Fix #3014 - change constant class access rules 2020-03-29 09:47:29 -04:00
DeprecatedAnnotationTest.php Fix #2721 - only warn about deprecated classes exactly where they are used 2020-02-22 01:12:19 -05:00
DocblockInheritanceTest.php
DocCommentTest.php Dont add newline before return (#2969) 2020-03-13 12:40:08 -04:00
DocumentationTest.php Refactor reference checks to use more appropriate properties 2020-03-28 16:30:56 -04:00
EnumTest.php
ErrorBaselineTest.php Fix commas 2020-02-16 18:30:05 -05:00
FileDiffTest.php Allow types to be traversed 2020-03-14 23:54:51 -04:00
FileReferenceTest.php Refactor reference checks to use more appropriate properties 2020-03-28 16:30:56 -04:00
ForbiddenCodeTest.php
FunctionCallTest.php Add better inference for date calls 2020-04-14 21:07:44 -04:00
GeneratorTest.php Ensure Generator return types are enforced for a function using yield from 2020-04-06 09:23:13 -04:00
ImmutableAnnotationTest.php Detect assigning collections of mutable objects in immutable 2020-03-15 00:21:20 -04:00
IncludeTest.php make skipping of checks after invalid includes configurable 2020-02-27 18:49:23 -05:00
InterfaceTest.php
InternalAnnotationTest.php
IssueBufferTest.php Fix even more commas 2020-02-16 18:40:59 -05:00
IssueSuppressionTest.php
JsonOutputTest.php Added new language server options and functionality. (#3161) 2020-04-17 00:47:18 -04:00
junit.xsd Validate junit output against xsd 2020-03-08 20:18:35 -05:00
ListTest.php
MagicMethodAnnotationTest.php Fix #3107 - prevent bad @method with dash 2020-04-09 12:16:58 -04:00
MagicPropertyTest.php Fix #3156 - only override existing property types with @property suggestions 2020-04-16 00:22:00 -04:00
MethodCallTest.php Prevent checking assertions on $this-> types, always accessible 2020-04-12 14:13:42 -04:00
MethodMutationTest.php Use MethodIdentifier object instead of string 2020-02-14 20:54:26 -05:00
MethodSignatureTest.php Fix false positive in trait comparison in 7.4 2020-04-03 15:11:37 -04:00
MixinAnnotationTest.php Fix #2989 - delay @mixin hydration until parent methods inherited 2020-03-18 21:38:53 -04:00
NamespaceTest.php
Php40Test.php
Php55Test.php Consolidate generator tests 2020-04-06 08:57:18 -04:00
Php56Test.php Consolidate generator tests 2020-04-06 08:57:18 -04:00
Php70Test.php Consolidate generator tests 2020-04-06 08:57:18 -04:00
Php71Test.php
ProjectCheckerTest.php Fix ProjectAnalyzer test 2020-04-12 12:02:19 -04:00
PropertyTypeTest.php Fix #3096 - forget clauses in context after call 2020-04-08 01:03:37 -04:00
PsalmInternalAnnotationTest.php
PsalmPluginTest.php
PureAnnotationTest.php Mark throwable methods as pure (#3171) 2020-04-17 22:08:26 -04:00
ReferenceConstraintTest.php Fix #2910 - prevent ternaries from ever being considered valid reference 2020-03-04 22:30:53 -05:00
ReportOutputTest.php Added new language server options and functionality. (#3161) 2020-04-17 00:47:18 -04:00
ReturnTypeTest.php Consolidate generator tests 2020-04-06 08:57:18 -04:00
StubTest.php Fix #2191 - allow inheritance from stub-only files 2020-03-29 00:13:01 -04:00
SwitchTypeTest.php Add some limits on switch case assertion calculation 2020-03-30 00:20:00 -04:00
TaintTest.php
TestCase.php Allow PHPUnit 9 (#3072) 2020-04-05 17:25:00 -04:00
TestConfig.php TestCase/TestConfig: Allow plugins to reuse these files 2020-02-24 21:20:06 -05:00
ThrowsAnnotationTest.php Ignore exceptions already caught by previous catch 2020-03-08 20:19:56 -05:00
ThrowsInGlobalScopeTest.php
ToStringTest.php
TraceTest.php @psalm-trace is now a specific low-level issue, because plain debug print breaks structured output (after #3080) (#3106) 2020-04-08 21:03:05 -04:00
TraitTest.php Fix location of traits 2020-03-02 23:07:21 -05:00
TryCatchTest.php
TypeAnnotationTest.php
TypeCombinationTest.php Improve ergonomics of array assignment 2020-04-11 17:50:24 -04:00
TypeParseTest.php Support intersection types for object-like arrays (#3064) 2020-04-08 09:35:53 -04:00
UnusedCodeTest.php Refactor reference checks to use more appropriate properties 2020-03-28 16:30:56 -04:00
UnusedVariableTest.php Refactor reference checks to use more appropriate properties 2020-03-28 16:30:56 -04:00
VariadicTest.php