1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00
psalm/tests
Barney Laurance ff432ff73d
Simplify error messages and implementation for internal errors (#3881)
* Use more consistent language for Internal errors

There's no meaningful distinction between something being internal and
being 'marked as internal'.

* Rename property psalm_internal to internal in all storage classes

This property holds metadata that can be set using either @internal
or @psalm-internal in docblocks

* Change types of internal properties in storage from ?string to string

Simpler type is easier to handle. Non-internal methods can be considered
to be internal to the entire universe of PHP code, i.e. that code whose
namespace starts with the empty string. It's not a special case.
2020-07-24 09:32:54 -04:00
..
command_functions Namespace base files 2020-07-22 15:57:24 -04:00
Config Fix multiple issues with @internal and @psalm-internal (#3841) 2020-07-22 19:27:35 -04:00
EndToEnd Collect and scan files included by the autoloaders (#3183) 2020-07-11 17:17:22 -04:00
FileManipulation Prevent adding trait property types 2020-07-10 19:11:06 -04:00
FileUpdates Fix another test 2020-05-14 23:56:04 -04:00
fixtures Use composer/package-versions-deprecated instead of ocramius/package-versions (#3846) 2020-07-20 04:53:16 -04:00
Internal/Provider Add more mocking to tests 2020-06-06 16:57:25 -04:00
LanguageServer Add ability to Go to Definition on Use statements (#3805) 2020-07-11 17:16:44 -04:00
Loop Generalise init vars inside for loops 2020-07-03 11:13:44 -04:00
Progress
Template Refactor type comparison 2020-07-21 19:40:35 -04:00
Traits
TypeReconciliation Fix some more tests 2020-07-21 23:16:56 -04:00
AlgebraTest.php
AnnotationTest.php Fix #3506 - prevent black classes in throws check 2020-06-01 14:56:27 -04:00
ArgTest.php Fix tests 2020-06-11 12:19:34 -04:00
ArrayAccessTest.php Fix #3742 - add null to type after possibly null array access 2020-07-05 09:12:07 -04:00
ArrayAssignmentTest.php Fix #3764 - preserve sealed-ness of array into array_map 2020-07-07 09:31:43 -04:00
ArrayFunctionCallTest.php Hopefully final fixes 2020-07-21 23:59:11 -04:00
AssertAnnotationTest.php Fix #3858 - support @psalm-assert falsy for abort_if expressions 2020-07-21 12:55:11 -04:00
AssignmentTest.php Fix #3797 - prevent many chained assignments crashing Psalm 2020-07-10 16:49:45 -04:00
BadFormatTest.php
BinaryOperationTest.php Respect possibly-undefined array keys while merging 2020-05-19 20:10:01 -04:00
CallableTest.php Fix invalid UndefinedClass using array|callable (#3842) 2020-07-20 04:50:07 -04:00
ClassLoadOrderTest.php
ClassScopeTest.php
ClassStringTest.php Fix #3609 - interpret strings as regular static calls 2020-06-18 11:56:08 -04:00
ClassTest.php
CloneTest.php Fix #3719 - prevent crash when cloning missing class 2020-07-01 10:10:55 -04:00
ClosureTest.php Fix tests 2020-07-07 10:41:46 -04:00
CodebaseTest.php
ComposerLockTest.php
ConstantTest.php Infer better types for magic constants used in const initializers (#3602) 2020-06-18 09:48:51 -04:00
DeprecatedAnnotationTest.php
DocblockInheritanceTest.php
DocCommentTest.php Improve \Psalm\Internal\Scanner\DocblockParser::parse() (#3736) 2020-07-02 17:55:57 -04:00
DocumentationTest.php Drop missing issues from XSD schema (#3657) 2020-06-23 16:56:39 -04:00
EnumTest.php
ErrorBaselineTest.php
ExtendsFinalClassTest.php Extending final class is prohibited #3037 (#3576) 2020-06-13 00:29:59 -04:00
FileDiffTest.php
FileReferenceTest.php
ForbiddenCodeTest.php
FunctionCallTest.php Fix echo false issue (#3751) 2020-07-05 08:55:42 -04:00
GeneratorTest.php
ImmutableAnnotationTest.php Warn about simple assignments 2020-07-23 02:40:35 -04:00
IncludeTest.php Fix #3860 - use correct trait element positions for nested error 2020-07-21 14:17:07 -04:00
InterfaceTest.php
InternalAnnotationTest.php Simplify error messages and implementation for internal errors (#3881) 2020-07-24 09:32:54 -04:00
IssueBufferTest.php
IssueSuppressionTest.php
JsonOutputTest.php Fix tests 2020-05-14 23:22:49 -04:00
junit.xsd
ListTest.php Fix #3289 - treat property on non-generic type like actual value 2020-05-02 23:37:59 -04:00
MagicMethodAnnotationTest.php Fix #3721 - prevent crash on empty @method 2020-07-01 09:00:33 -04:00
MagicPropertyTest.php Fix #3857 - allow reconciliation on magic properties 2020-07-22 09:55:22 -04:00
MethodCallTest.php Invalidate memoized getter method results after property assignment 2020-07-16 12:59:49 -04:00
MethodMutationTest.php
MethodSignatureTest.php Prevent false-positive for Exception::__toString overriding 2020-07-02 14:09:56 -04:00
MixinAnnotationTest.php Allow static method mixin to invoke instance method 2020-06-20 18:05:35 -04:00
NamespaceTest.php
Php40Test.php
Php55Test.php
Php56Test.php Improve unpacking 2020-07-22 00:35:18 -04:00
Php70Test.php
Php71Test.php
ProjectCheckerTest.php Prevent tests from producing output (#3847) 2020-07-20 04:52:01 -04:00
PropertyTypeTest.php Add support for potentially-assigned properties 2020-07-08 11:46:55 -04:00
PsalmInternalAnnotationTest.php Simplify error messages and implementation for internal errors (#3881) 2020-07-24 09:32:54 -04:00
PsalmPluginTest.php
PureAnnotationTest.php Fix #3820 - don’t treat a method call as memoisable if it has assertions 2020-07-15 15:09:19 -04:00
ReferenceConstraintTest.php Allow updating array by reference 2020-06-15 14:45:08 -04:00
ReportOutputTest.php Fix #3676 - add multiline output for TaintedInput issues 2020-06-30 13:17:51 -04:00
ReturnTypeTest.php Fix some more tests 2020-07-21 23:16:56 -04:00
SelfOutTest.php Add new annotation: @psalm-self-out (#3650) 2020-07-01 18:10:24 -04:00
StubTest.php Collect and scan files included by the autoloaders (#3183) 2020-07-11 17:17:22 -04:00
SwitchTypeTest.php Prevent mixed erasure in get_class call 2020-07-16 13:56:42 -04:00
TaintTest.php Allow taint through strval sprintf (#3836) 2020-07-17 10:12:04 -04:00
TestCase.php Add faster taint analysis 2020-05-22 12:33:29 -04:00
TestConfig.php Collect and scan files included by the autoloaders (#3183) 2020-07-11 17:17:22 -04:00
ThrowsAnnotationTest.php
ThrowsInGlobalScopeTest.php
ToStringTest.php Only cast in echo when tracking taints 2020-06-29 15:06:11 -04:00
TraceTest.php
TraitTest.php Fix #3460 - allow isset checks on static properties 2020-05-26 17:40:27 -04:00
TryCatchTest.php Support string class_alias calls with leading backslash 2020-05-27 08:14:47 -04:00
TypeAnnotationTest.php Fix #3532 - expand type alias types recursively 2020-06-07 12:01:04 -04:00
TypeCombinationTest.php Fix some more tests 2020-07-21 23:16:56 -04:00
TypeParseTest.php Fix #3716 - prevent crash for Foo|? return type 2020-06-29 17:52:55 -04:00
UnusedCodeTest.php Fix UnusedMethodCall examples 2020-07-16 18:14:15 -04:00
UnusedVariableTest.php
VariadicTest.php Collect and scan files included by the autoloaders (#3183) 2020-07-11 17:17:22 -04:00