From 78eaab2d9dc143ce900aab5d9ff3a179b30afe56 Mon Sep 17 00:00:00 2001 From: Ion Bazan Date: Wed, 22 Feb 2023 10:19:39 +0800 Subject: [PATCH] Bump Psalm baseline Signed-off-by: Ion Bazan --- psalm-baseline.xml | 1552 ++++++++++++++++++++++++++++---------------- 1 file changed, 981 insertions(+), 571 deletions(-) diff --git a/psalm-baseline.xml b/psalm-baseline.xml index b1746d30..e7d42e5b 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,62 +1,77 @@ - + - + $directive - + $value - + self - + self::{$method}($value) + + encoding + getValue + ticks + - - ! is_array($options) && ! $options instanceof Traversable + + - + $optionName $optionValue - + $optionName - + (bool) $isSourceDirty (string) $indentation - + + AbstractMemberGenerator + AbstractMemberGenerator + AbstractMemberGenerator + AbstractMemberGenerator + + (string) $name - + + setContent + + (string) $content - + $method $name - + DocBlockGenerator::fromArray($value) - + + empty($name) || ! is_string($name) is_string($name) is_string($name) - + string - - $array['name'] + + $value $value $value @@ -76,250 +91,281 @@ array_values($property) array_values($property) - + $name - + $value - + static::IMPLEMENTS_KEYWORD static::OBJECT_TYPE - - $this->traitUsageGenerator->getUseAlias($fqnClassName) + + traitUsageGenerator->getUseAlias($fqnClassName)]]> - - strrpos($name, '\\') + + - - strrpos($name, '\\') + + - + $namespaceAlias - + + self + static + static + static + static + + is_array($constant) - + ! is_string($name) - - new static($array['name']) - new static($classReflection->getName()) + + + getName())]]> - - $tagManager->createTagFromReflection($reflectionTag) + + createTagFromReflection($reflectionTag)]]> - + Tag + + fromReflection + getDescription + setDescription + - - $tagManager->createTagFromReflection($reflectionTag) + + createTagFromReflection($reflectionTag)]]> - + AuthorTag + + fromReflection + - + $this $this string|null - - $this->name + + name]]> - - $tagManager->createTagFromReflection($reflectionTag) + + createTagFromReflection($reflectionTag)]]> - + ReturnTag + + fromReflection + - + (bool) $isStatic - - $tagManager->createTagFromReflection($reflectionTag) - $this->setTypes($datatype) + + createTagFromReflection($reflectionTag)]]> + setTypes($datatype)]]> - + $types - + ParamTag ParamTag - + + fromReflection + getDatatype + getParamName + setParamName + + + ParamTag + + $variableName - - $tagManager->createTagFromReflection($reflectionTag) - $this->setTypes($datatype) + + createTagFromReflection($reflectionTag)]]> + setTypes($datatype)]]> - + ReturnTag ReturnTag + + fromReflection + getDatatype + + + ReturnTag + - + new Tag() - + $value $value $value - + $name - + $value - - $this->tags + + tags]]> TagInterface[] - + (bool) $value - + new static() new static() - - $type === 'int' || $type === 'string' - $type === 'string' + + + - + $type - - $backingType->getName() - static fn(ReflectionEnumBackedCase $case): string => $case->getName() - static fn(ReflectionEnumBackedCase $case): string|int => $case->getBackingValue() + + getName()]]> + $case->getName()]]> + $case->getBackingValue()]]> - - $case->getName() - $singleCase->getName() - - - non-empty-string - non-empty-string - - + ClassGenerator::fromArray($class) ClassGenerator::fromArray($value) - DeclareStatement::fromArray([$directive => $value]) + $value])]]> - + $docBlock - - [$directive => $value] + + $value]]]> - + $uses - - - array<int, array{string, null|string, false|null|string}> - - + + $value - + $value $value $value $value $value - + $name $name - + $value - + + ]]> + + current($use) - + $alias $import + $uses[$useIndex][0] + $uses[$useIndex][1] - + + getFilename + setBody + setClasses + setDocBlock + + (string) $body (string) $filename (string) $namespace - + new static() - - $name - - + DocBlockGenerator::fromArray($value) - + IMPLEMENTS_KEYWORD OBJECT_TYPE - - $array['name'] + + $value $value $value $value $value - + $name - + $value $value - - new static($array['name']) - new static($classReflection->getName()) + + + getName())]]> - - $reflectionMethod->getReturnType() + + getReturnType()]]> - + DocBlockGenerator::fromArray($value) ParameterGenerator::fromArray($parameter) - + __toString - - $array['name'] + + $value $value $value @@ -331,29 +377,29 @@ $value $value - + $name - + $value - - $reflectionMethod->getDocBlock() + + getDocBlock()]]> - + (bool) $returnsReference - - new static($array['name']) + + new static() - - $reflectionParameter->getType() + + getType()]]> - - $array['name'] + + $value $value $value @@ -362,31 +408,31 @@ $value $value - + $name - + $value - + (bool) $passedByReference (bool) $variadic (int) $position (string) $name - - new static($array['name']) + + - - $reflectionProperty->getType() + + getType()]]> - + DocBlockGenerator::fromArray($value) - - $array['name'] + + $value $value $value @@ -396,77 +442,80 @@ $value $value - + $name - + $defaultValue - - new static($array['name']) + + $isConst + + + new static() - + DocBlockGenerator::fromArray($value) - + OBJECT_TYPE - - $array['name'] + + $value $value $value $value $value - + $name - + $value - - $classReflection->getDocBlock() + + getDocBlock()]]> - - new static($array['name']) - new static($classReflection->getName()) + + + getName())]]> - + is_string($alias) - + $method - $this->traitOverrides[$method] - $this->traitOverrides[$traitAndMethod] + traitOverrides[$method]]]> + traitOverrides[$traitAndMethod]]]> $traitAndMethod $traitAndMethod $traitAndMethod - + $traits - - $this->traitOverrides[$method][$key] + + traitOverrides[$method][$key]]]> - - $this->traitOverrides[$traitAndMethod][] + + traitOverrides[$traitAndMethod][]]]> - - $this->traitOverrides[$method][$key] - $this->traitOverrides[$traitAndMethod] - $this->traitOverrides[$traitAndMethod] - $this->traitOverrides[$traitAndMethod] + + traitOverrides[$method][$key]]]> + traitOverrides[$traitAndMethod]]]> + traitOverrides[$traitAndMethod]]]> + traitOverrides[$traitAndMethod]]]> - - $this->traitOverrides[$traitAndMethod] + + traitOverrides[$traitAndMethod]]]> - + $alias $insteadof $insteadofTrait @@ -475,22 +524,27 @@ $traitAndMethod $traitToRemove - + $insteadofTrait - + addTraitOverride addTraitOverride - - + + + + addAlias - + $value $value - + $key $key $key @@ -499,264 +553,353 @@ $method + + + $this + $this + self + self + self + self + + - - - allowsNull - getTypes - getTypes - - + $type - - $atomicType !== 'null' - $atomicType->type !== 'mixed' && $atomicType !== 'null' + + + type !== 'mixed' && $atomicType !== 'null']]> - + $type instanceof ReflectionNamedType - - - getName - getName - getParentClass - - - + getConstants - + $constants instanceof SplArrayObject || $constants instanceof StdlibArrayObject $constants instanceof StdlibArrayObject - + __toString - + initEnvironmentConstants - + $constant $n $value - + $constant $curValue $n $v - $value - + $value - + + addConstant + deleteConstant + getArrayDepth + getOutputMode + + + $allowedTypes + + (int) $arrayDepth (string) $outputMode (string) $type - - 'float' + + - + $newPrototype - + PrototypeInterface - + setName - + $newPrototype - - clone $this->genericPrototype + + genericPrototype]]> - + + $filter + $filter + + Exception\ExceptionInterface - + + int|false + + + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + + __toString - + + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + + $lines - + $startnum - + $startnum - $this->getStartLine() + getStartLine()]]> - + getStartLine - + __toString - + + contentSplitCharacter]]> + + string|null - + __toString - - $this->name + + name]]> + + getContent + - + __toString - + __toString + + + getDescription + + - + __toString - + ! is_string($filter) - + __toString - - $tag['name'] - $tag['value'] - $this->docComment + + + + docComment]]> - - $tag['name'] - $tag['value'] + + + - + $returnTags[] $tag $tag $tag $tag $tag - $this->docComment - $this->endLine - $this->startLine + docComment]]> + endLine]]> + startLine]]> - + DocBlockTagInterface|false - + getName getName getName - + $tag - + $tag - + $returnTags - $this->tags + tags]]> DocBlockTagInterface[] - + + export + + $endLine $reflector $startLine - + is_string($commentOrReflector) - + getStartLine getStartLine + + + BadMethodCallException + + - + detectType - + + parent::getStartLine() + + + int + + + $endLine + $endLine + + + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + public function __toString() + + __toString - + + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + public function __toString() + + $returnTypes $returnTypes - + $lines $lines - + $returnTypes[0] - + $returnType $returnTypes - - $prototype['return'] + + - - strrpos($this->getName(), '\\') - strrpos($this->getName(), '\\') + + getName(), '\\')]]> + getName(), '\\')]]> - + getDescription getTypes - - $endLine - $endLine + $startLine $startLine $startLine $startLine - + + getReturn + + getDescription getTypes - + detectType - + + parent::getStartLine() + + + int + + + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + + __toString - + + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + + $haystack[$i][0] $haystack[$i][0] $haystack[$i][0] $returnTypes $returnTypes - + $lines - + $returnTypes[0] - + $returnType $returnTypes $tokenType @@ -765,72 +908,75 @@ $tokenValue $tokenValue - - $prototype['return'] + + $tokenValue - + getStartLine getTypes - + getTypes - - $function->getName() + + getName()]]> - - getDeclaringClass + getDocBlock getDocBlock - getModifiers - getModifiers - getModifiers - getName - getName - getName - getName - getName - getName getProperty getTags - + string|null - - $type->getName() + + getName()]]> - + + $isFromMethod + + getName getName isBuiltin + + + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + + + #[ReturnTypeWillChange] + #[ReturnTypeWillChange] + + - - $this->tags[$tagIndex] - $this->tags[$tagIndex] + + tags[$tagIndex]]]> + tags[$tagIndex]]]> - + $length $positionsForward $type - - function ($length) use (&$currentWord, &$tokens, &$tokenIndex) { + + function ($positionsForward = 1) use ( - function ($type) use (&$tokenIndex, &$tokens) { - function () use (&$currentChar, &$tokens, &$tokenIndex) { - function () use (&$currentLine, &$MACRO_STREAM_ADVANCE_CHAR) { - function () use (&$currentLine, &$tokens, &$tokenIndex) { - function () use (&$currentWord, &$MACRO_STREAM_ADVANCE_CHAR) { - function () use (&$currentWord, &$tokens, &$tokenIndex) { - function () use (&$tokenIndex, &$tokens) { + + + + + + + - + $currentLine $currentWord $currentWord @@ -841,10 +987,10 @@ $streamIndex $tokens - + $stream[$streamIndex] - $this->tags[$tagIndex]['value'] - $this->tags[$tagIndex]['value'] + tags[$tagIndex]['value']]]> + tags[$tagIndex]['value']]]> $token[0] $token[1] $token[1] @@ -862,8 +1008,8 @@ $tokens[$tokenIndex][1] $tokens[$tokenIndex][1] - - $this->tags[$tagIndex]['value'] + + tags[$tagIndex]['value']]]> $tokens[$tokenIndex] $tokens[$tokenIndex] $tokens[$tokenIndex] @@ -876,7 +1022,7 @@ $tokens[$tokenIndex][1] $tokens[$tokenIndex][1] - + $stream[$streamIndex] $stream[$streamIndex] $tokens[$tokenIndex] @@ -891,7 +1037,7 @@ $tokens[$tokenIndex] $tokens[$tokenIndex] - + $context $context $context @@ -904,17 +1050,17 @@ $tokenIndex $tokens[$tokenIndex][0] - + $MACRO_STREAM_ADVANCE_CHAR() $MACRO_STREAM_ADVANCE_CHAR() $MACRO_STREAM_ADVANCE_CHAR() $MACRO_STREAM_ADVANCE_CHAR(strlen($currentLine)) $MACRO_STREAM_ADVANCE_CHAR(strlen($currentWord)) - + array - + $CONTEXT_INSIDE_ASTERISK $CONTEXT_INSIDE_ASTERISK $CONTEXT_INSIDE_ASTERISK @@ -923,7 +1069,7 @@ $CONTEXT_INSIDE_DOCBLOCK $context $streamIndex - $this->tags[$tagIndex]['value'] + tags[$tagIndex]['value']]]> $tokenIndex $token[1] $token[1] @@ -936,17 +1082,17 @@ ~$CONTEXT_INSIDE_ASTERISK ~$CONTEXT_INSIDE_DOCBLOCK - + $tokens - + $context === 0x00 - $mode <= 2 + - + $tagIndex !== null - + $MACRO_TOKEN_APPEND_WORD_PARTIAL $context $context @@ -955,37 +1101,81 @@ - + testConstructor testSetOptionsThrowsExceptionOnInvalidArgument - + new stdClass() - + testSetDocBlockThrowsExceptionWithInvalidType testSetFlagsWithArray - - 'bool' + + - - '' - 'ExtendedClass' - 'ExtendedClass' - 'ExtendedClass' - 'LaminasTest_Code_NsTest_BarClass' - 'ParentClass' - ['Class1', 'Class2'] + + + + + + + + - - + + 'SampleClass', + 'flags' => ClassGenerator::FLAG_ABSTRACT, + 'extendedClass' => 'ExtendedClassName', + 'implementedInterfaces' => ['Iterator', 'Traversable'], + 'properties' => [ + 'foo', + ['name' => 'bar'], + ], + 'methods' => [ + ['name' => 'baz'], + ], + ])]]> + 'ClassWithFinalConst', + 'properties' => [ + [ + 'FINAL', + 'const', + PropertyGenerator::FLAG_CONSTANT | + PropertyGenerator::FLAG_PUBLIC | + PropertyGenerator::FLAG_FINAL, + ], + ], + ])]]> + 'SampleClass', + 'docblock' => [ + 'shortdescription' => 'foo', + ], + ])]]> + 'SampleClass', + 'docblock' => new DocBlockGenerator('foo'), + ])]]> + 'SomeClass', + 'flags' => ClassGenerator::FLAG_FINAL | ClassGenerator::FLAG_READONLY, + ])]]> + 'SomeClass', + 'flags' => ClassGenerator::FLAG_FINAL, + ])]]> + + $reflClass $reflClass $reflClass @@ -993,9 +1183,9 @@ $reflector $reflector $reflector - '' - 'public' - 'public' + + + ExceptionInterface::class [] new ClassGenerator() @@ -1006,28 +1196,28 @@ true true - + [] new ClassGenerator() - + FooClass FooClass - - $overrides['myTrait::foo'] - $overrides['myTrait::foo'] - $overrides['myTrait::foo'] - $overrides['myTrait::foo'] + + + + + FooClass::class FooClass::class - - $overrides['myTrait::foo'][0] - $overrides['myTrait::foo'][1] - $overrides['myTrait::foo'][1] + + + + - + getDefaultValue getDefaultValue getDefaultValue @@ -1044,59 +1234,59 @@ getDefaultValue getDefaultValue - - ['Class1', 'Class2'] + + - + testConstructorWithOptions testCreatingTagFromReflection testGetterAndSetterPersistValue testNameIsCorrect testParamProducesCorrectDocBlockLine - + $reflectionTag - + null null - + testConstructorWithOptions testCreatingTagFromReflection testGetterAndSetterPersistValue testParamProducesCorrectDocBlockLine - + $reflectionTag - + null null - + testConstructorWithOptions testCreatingTagFromReflection testGetterAndSetterPersistValue testLicenseProducesCorrectDocBlockLine testNameIsCorrect - + $reflectionTag - + null null - + testConstructorWithOptions testCreatingTagFromReflection testGetterAndSetterPersistValue @@ -1104,16 +1294,16 @@ testNameIsCorrect testParamProducesCorrectDocBlockLine - + $reflectionTag - + null null - + testConstructorWithOptions testCreatingTagFromReflection testGetterAndSetterPersistValue @@ -1121,16 +1311,16 @@ testNameIsCorrect testParamProducesCorrectDocBlockLine - + $reflectionTag - + null null - + testConstructorWithOptions testCreatingTagFromReflection testGetterAndSetterPersistValue @@ -1138,44 +1328,44 @@ testNameIsCorrect testParamProducesCorrectDocBlockLine - + $reflectionTag - + null null - + testCreatingTagFromReflection testNameIsCorrect testReturnProducesCorrectDocBlockLine - + $reflectionTag - + null null - + testCreatingTagFromReflection testNameIsCorrect testParamProducesCorrectDocBlockLine - + $reflectionTag - + null null - + testConstructorWithOptions testGetterAndSetterPersistValue testGetterForTypesAsStringWithMultipleTypes @@ -1183,16 +1373,26 @@ testGetterForTypesAsStringWithSingleType testGetterForTypesAsStringWithSingleTypeAndDelimiter - + null - + + 'foo', + 'longdescription' => 'bar', + 'tags' => [ + [ + 'name' => 'foo', + 'description' => 'bar', + ], + ], + ])]]> setDatatype setDatatype - + testCanPassTagsToConstructor testCreateFromArray testDocBlockFromReflectionAuthorTag @@ -1210,12 +1410,85 @@ testTagGettersAndSetters + + + validEnumSpecifications + validOptionSpecifications + + - - - $file->getUses() + + [ + 'name' => 'SampleClass', + ], + ])]]> + [ + 'fubar' => 1, + ], + 'class' => [ + 'name' => 'SampleClass', + ], + ])]]> + [ + 'strict_types' => 'wrong type', + ], + 'class' => [ + 'name' => 'SampleClass', + ], + ])]]> + [ + 'strict_types' => 1, + 'ticks' => 2, + ], + 'class' => [ + 'name' => 'SampleClass', + ], + ])]]> + [ + 'strict_types' => 1, + ], + 'class' => [ + 'name' => 'SampleClass', + ], + ])]]> + 'foo.php', + 'class' => [ + 'name' => 'bar', + ], + ])]]> + 'foo.php', + 'class' => new ClassGenerator('bar'), + ])]]> + ['SampleClass.php'], + 'class' => [ + 'abstract' => true, + 'name' => 'SampleClass', + 'extendedClass' => 'ExtendedClassName', + 'implementedInterfaces' => ['Iterator', 'Traversable'], + ], + ])]]> + ['SampleClass.php'], + 'class' => [ + 'flags' => ClassGenerator::FLAG_ABSTRACT, + 'name' => 'SampleClass', + 'extendedClass' => 'ExtendedClassName', + 'implementedInterfaces' => ['Iterator', 'Traversable'], + ], + ])]]> + + + getUses()]]> - + testClassNotFoundException testConstruction testCreateFromArrayWithClassFromArray @@ -1235,15 +1508,32 @@ - - ['Class1', 'Class2'] + + - - + + 'MyInterface', + 'docblock' => new DocBlockGenerator('foo'), + ])]]> + 'SampleClass', + 'docblock' => [ + 'shortdescription' => 'foo', + ], + ])]]> + 'SampleInterface', + 'methods' => [ + ['name' => 'baz'], + ], + ])]]> + + $reflClass new ClassReflection(self::class) - + testAbstractAccessorsReturnsFalse testClassNotAnInterfaceException testCodeGenerationShouldTakeIntoAccountNamespacesFromReflection @@ -1262,27 +1552,50 @@ testSetextendedclassShouldNotIgnoreNonEmptyClassnameOnGenerate testToString - + isInterface isInterface - - ['Class1', 'Class2'] + + - + $className - - ParameterGenerator::fromArray(['name' => 'bar', 'type' => 'array']) - ParameterGenerator::fromArray(['name' => 'baz', 'type' => stdClass::class, 'position' => 1]) - ParameterGenerator::fromArray(['name' => 'baz', 'type' => stdClass::class]) + + 'SampleMethod', + 'returnsreference' => $value, + ])]]> + 'SampleMethod', + 'body' => 'foo', + 'docblock' => [ + 'shortdescription' => 'foo', + ], + 'abstract' => true, + 'final' => true, + 'static' => true, + 'visibility' => MethodGenerator::VISIBILITY_PROTECTED, + 'returntype' => '\\SampleType', + ])]]> + 'execute', + 'interface' => true, + 'docblock' => [ + 'shortdescription' => 'Short Description', + ], + ])]]> + 'bar', 'type' => 'array'])]]> + 'baz', 'type' => stdClass::class, 'position' => 1])]]> + 'baz', 'type' => stdClass::class])]]> - + new stdClass() - + testByRefReturnType testCopyMethodSignature testCreateFromArray @@ -1306,28 +1619,51 @@ testSetReturnType testSetReturnTypeWithNull - + generate + + php80Methods + returnTypeHintClasses + returnsReferenceValues + - - 'LaminasTest_Code_NsTest_BarClass' - 'Namespaced\TypeHint\Bar' + + - - - + + 'SampleParameter', + 'type' => 'int', + 'defaultvalue' => 'default-foo', + 'passedbyreference' => false, + 'position' => 1, + 'sourcedirty' => false, + 'sourcecontent' => 'foo', + 'indentation' => '-', + 'omitdefaultvalue' => true, + ])]]> + + + $definition[0] . '#' . $definition[1], + $parameters + ), + $parameters + )]]> + + string[][] - + testCallableTypeHint testCreateFromArray testDefaultValueGetterAndSetterPersistValue testFromReflectionGenerate testFromReflectionGetArrayHint testFromReflectionGetDefaultValue - testFromReflectionGetDefaultValueNotOptional testFromReflectionGetParameterName testFromReflectionGetParameterType testFromReflectionGetReference @@ -1347,50 +1683,127 @@ testTypeHintWithValidClassName testTypehintsWithNamespaceInNamepsacedClassReturnTypewithBackslash + + dataFromReflectionGenerate + php80Methods + reflectionHints + simpleHints + validClassName + variadicHints + + + setAccessible + - + $type - - + + 'SampleProperty', + 'const' => false, + 'defaultvalue' => 'default-foo', + 'docblock' => [ + 'shortdescription' => 'foo', + ], + 'abstract' => true, + 'final' => true, + 'static' => true, + 'visibility' => PropertyGenerator::VISIBILITY_PROTECTED, + 'omitdefaultvalue' => true, + 'type' => TypeGenerator::fromTypeString(self::class), + ])]]> + 'ReadonlyProperty', + 'readonly' => true, + ])]]> + 'someVal', + 'type' => 'invalidStringn', + ])]]> + + new stdClass() - - + + + + bool[][]|string[][]|int[][]|null[][] - + testOmitType - + $generator - - Generator - - - testSetBogusTypeSetValueGenerateUseAutoDetection - testSetBogusTypeSetValueGenerateUseAutoDetection - testSetDefaultValue - testSetTypeSetValueGenerate - testSetTypeSetValueGenerate - - + + dataSetTypeSetValueGenerate + visibility + + assertIsArray + + setAccessible + - + testPropertyValueAddsSemicolonToValueGenerator - - 'LaminasTest_Code_NsTest_BarClass' + + - - + + new DocBlockGenerator('foo'), + ])]]> + 'SampleClass', + 'containingfile' => new FileGenerator(), + ])]]> + 'SampleClass', + 'namespacename' => $namespace, + ])]]> + 'SampleClass', + 'properties' => [ + 'foo', + ['name' => 'bar'], + ], + 'methods' => [ + ['name' => 'baz'], + ], + ])]]> + 'SampleClass', + 'docblock' => [ + 'shortdescription' => 'foo', + ], + ])]]> + 'SampleClass', + 'docblock' => new DocBlockGenerator('foo'), + ])]]> + + $reflClass $reflClass $reflClass @@ -1400,32 +1813,48 @@ true true + + setAccessible + - - iterable - + + validType + + + + + invalidIntersectionsExamples + sortingExamples + + + + + invalidUnionsExamples + sortingExamples + - - testFromValidTypeString + testIsAGenerator - testRejectsInvalidTypeString - testStringCastFromValidTypeString + + invalidType + validClassName + - + getConstants getConstants initEnvironmentConstants initEnvironmentConstants initEnvironmentConstants - + $constants - + testEscaping testPropertyDefaultValueCanHandleArray testPropertyDefaultValueCanHandleArrayWithUnsortedKeys @@ -1436,33 +1865,30 @@ testPropertyDefaultValueConstructor testPropertyDefaultValueIsSettable - - Generator - array - array - array - array - + + complexArray + complexArrayWCustomIndent + constantsType + getEscapedParameters + invalidValue + simpleArray + unsortedKeysArray + validConstantTypes + - - setMethods - - + testAddAndGetPrototype testFallBackToGeneric testSetNameOnGenericIsCalledOnce - - null - - - 'ReflectionClass' - __NAMESPACE__ . '\\' . $className + + + - + testGetContentsReturnsContents testGetContentsReturnsContentsWithImplementsOnSeparateLine testGetContentsReturnsEmptyContentsOnEvaldCode @@ -1474,42 +1900,39 @@ testPropertyReturns testStartLine - - $parent - - + getName - + $traitsArray[TestTraitClass3::class] - + testParseName testParseNameAndEmail - + testParse - + testParseUrl testParseUrlAndLicenseName - + getReturnType getReturnType getReturnType getReturnType getReturnType - + testParseName testParseNameAndStatic testParseNameAndStaticAndDescription @@ -1518,13 +1941,13 @@ - + getType getType getType getType - + testParseName testParseNameAndDescription testParseTypeAndName @@ -1532,7 +1955,7 @@ - + testAllCharactersFromTypenameAreSupported testMultipleTypesWithDescription testMultipleTypesWithoutDescription @@ -1541,22 +1964,22 @@ - + testParse - - array - + + varTagProvider + - + getType getType getType getType getType - + testDocBlockContents testDocBlockLines testDocBlockLongDescription @@ -1567,7 +1990,7 @@ testTabbedDocBlockTags testToString - + getContents getLongDescription getShortDescription @@ -1595,7 +2018,7 @@ hasTag hasTag - + getDescription getType getType @@ -1603,39 +2026,44 @@ - - __NAMESPACE__ . '\\' . $functionName + + - + getPrototype getPrototype - - 'LaminasTest\Code\Reflection\TestAsset\function1' - 'LaminasTest\Code\Reflection\TestAsset\function1' - 'LaminasTest\Code\Reflection\TestAsset\function10' - 'LaminasTest\Code\Reflection\TestAsset\function10' - 'LaminasTest\Code\Reflection\TestAsset\function11' - 'LaminasTest\Code\Reflection\TestAsset\function11' - 'LaminasTest\Code\Reflection\TestAsset\function12' - 'LaminasTest\Code\Reflection\TestAsset\function12' - 'LaminasTest\Code\Reflection\TestAsset\function2' - 'LaminasTest\Code\Reflection\TestAsset\function3' - 'LaminasTest\Code\Reflection\TestAsset\function3' - 'LaminasTest\Code\Reflection\TestAsset\function4' - 'LaminasTest\Code\Reflection\TestAsset\function4' - 'LaminasTest\Code\Reflection\TestAsset\function5' - 'LaminasTest\Code\Reflection\TestAsset\function5' - 'LaminasTest\Code\Reflection\TestAsset\function6' - 'LaminasTest\Code\Reflection\TestAsset\function6' - 'LaminasTest\Code\Reflection\TestAsset\function7' - 'LaminasTest\Code\Reflection\TestAsset\function7' - 'LaminasTest\Code\Reflection\TestAsset\function8' - 'LaminasTest\Code\Reflection\TestAsset\function8' - 'LaminasTest\Code\Reflection\TestAsset\function9' - 'LaminasTest\Code\Reflection\TestAsset\function9' + + + $list2[0] + $list3[0] + + + + + + + + + + + + + + + + + + + + + + + + + - + testFunctionBodyReturn testFunctionClosureBodyReturn testFunctionClosureContentsReturnWithDocBlock @@ -1650,7 +2078,17 @@ testInternalFunctionContentsReturn testParemeterReturn - + + $function5 + $function6 + $function7 + + + $function5 + $function6 + $function7 + + $function1 $function10 $function10 @@ -1658,25 +2096,12 @@ $function2 $function3 $function4 - $function5 - $function6 - $function7 $function8 $function9 $function9 $function9 - - - $list1['closure'] - $list2[0] - $list3[0] - - - $function5 - $function6 - $function7 - - + + $body $body $body @@ -1696,34 +2121,18 @@ $body $body - - $function1 - $function10 - $function10 - $function2 - $function2 - $function3 - $function4 - $function8 - $function9 - $function9 - $function9 - $list1 - $list2 - $list3 - - - 'DOMDocument' - 'DOMDocument' - 'DateTime' - 'FooClass' - 'ReflectionClass' - 'ReflectionException' - __NAMESPACE__ . '\\' . $className + + + + + + + + - + getPrototype getPrototype getPrototype @@ -1733,7 +2142,7 @@ getPrototype getPrototype - + testCanParseClassBodyWhenUsingTrait testCodeGetBodyReturnsEmptyWithCommentedFunction testCodeGetContentsDoesNotThrowExceptionOnDocBlock @@ -1752,35 +2161,36 @@ - + detectType detectType detectType detectType detectType - + testCallableTypeHint testClassReturn testClassReturnNoClassGivenReturnsNull testDeclaringClassReturn - testDetectType - testDetectTypeWithDocBlockOnlyTypes - testGetType - testGetTypeWithDocBlockOnlyTypes - testTypeReturn - + + docBlockHints + paramType + paramTypeWithNotAllParamsDeclared + reflectionHints + + getName - + testDeclaringClassReturn - + testAllowsMultipleSpacesInDocBlockTagLine testAllowsMultipleSpacesInDocBlockTagLine2 testNamespaceInParam @@ -1794,10 +2204,7 @@ testTypeParam testVariableName - - array - - + getAuthorEmail getAuthorName getContent @@ -1828,10 +2235,13 @@ getVariableName getVariableName - + $tag - + + propertyVarDocProvider + + getAuthorEmail getAuthorName getContent @@ -1851,18 +2261,18 @@ - + testDocBlockScannerDescriptions testDocBlockScannerParsesTagsWithNoValuesProperly testInvalidDocBlock - + $tags[0] $tags[0] - - $tags[0]['name'] - $tags[0]['value'] + + +