1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00
psalm/tests
Ricardo Boss 26dd4c5b8f
Try to provide literal int types when possible (fixes #6966) (#7071)
* Fixed vimeo/psalm#6966

* Only accept >= 0 values for mode argument in round()

* Made round() only return float or literal float values and remove unneeded test

* Registered RoundReturnTypeProvider

* Updated cast analyzer to handle single string literal int values as literal ints

* Fixed psalm errors

* Fix invalid property accesses

* Addressed comments

* Added Tests

* Marked RoundReturnTypeProvider as internal

* Fixed CS
2022-01-16 21:33:04 +01:00
..
CommandFunctions
Config
EndToEnd
FileManipulation
FileUpdates
fixtures
Internal
LanguageServer
Loop
Progress
ReturnTypeProvider
Template
Traits
Type
TypeReconciliation
AlgebraTest.php
AnnotationTest.php
ArgTest.php
ArrayAccessTest.php
ArrayAssignmentTest.php
ArrayFunctionCallTest.php
AssertAnnotationTest.php
AssignmentTest.php
AttributeTest.php
BadFormatTest.php
BinaryOperationTest.php
CallableTest.php
ClassLikeDocblockParserTest.php
ClassLikeStringTest.php
ClassLoadOrderTest.php
ClassScopeTest.php
ClassTest.php
CloneTest.php
ClosureTest.php
CodebaseTest.php
CommentAnalyzerTest.php
ComposerLockTest.php
ConstantTest.php
ConstValuesTest.php
CoreStubsTest.php
DeprecatedAnnotationTest.php
DocblockInheritanceTest.php
DocCommentTest.php
DocumentationTest.php
EnumTest.php
ErrorBaselineTest.php
ExtendsFinalClassTest.php
ExtensionRequirementTest.php
FileDiffTest.php
FileReferenceTest.php
ForbiddenCodeTest.php
FunctionCallTest.php
FunctionLikeDocblockParserTest.php
GeneratorTest.php
IfThisIsTest.php
ImmutableAnnotationTest.php
ImplementationRequirementTest.php
IncludeTest.php
InterfaceTest.php
InternalAnnotationTest.php
IntRangeTest.php
IssueBufferTest.php
IssueSuppressionTest.php
JsonOutputTest.php
junit.xsd
ListTest.php
MagicMethodAnnotationTest.php
MagicPropertyTest.php
MatchTest.php
MethodCallTest.php
MethodMutationTest.php
MethodSignatureTest.php
MixinAnnotationTest.php
NamespaceTest.php
Php40Test.php
Php55Test.php
Php56Test.php
Php70Test.php
Php71Test.php
ProjectCheckerTest.php
PropertyTypeInvarianceTest.php
PropertyTypeTest.php
PsalmPluginTest.php
PureAnnotationTest.php
PureCallableTest.php
ReadonlyPropertyTest.php
ReferenceConstraintTest.php
ReportOutputTest.php
ReturnTypeTest.php
somefile.php
StubTest.php
SuperGlobalsTest.php
SwitchTypeTest.php
TaintTest.php
TestCase.php
TestConfig.php
ThisOutTest.php
ThrowsAnnotationTest.php
ThrowsInGlobalScopeTest.php
ToStringTest.php
TraceTest.php
TraitTest.php
TryCatchTest.php
TypeAnnotationTest.php
TypeCombinationTest.php
TypeComparatorTest.php
TypeParseTest.php
UnresolvableIncludeTest.php
UnusedCodeTest.php
UnusedVariableTest.php
VariadicTest.php