Skip to content

Reflection classes extend native, attributes fully supported, more co… #92

Reflection classes extend native, attributes fully supported, more co…

Reflection classes extend native, attributes fully supported, more co… #92

Triggered via push February 8, 2024 07:03
Status Failure
Total duration 1m 42s
Artifacts
Matrix: composer-normalize
Matrix: composer-validate
Matrix: infection
Matrix: php-cs-fixer
Matrix: psalm
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 19 warnings
php-cs-fixer (8.1)
Process completed with exit code 2.
UnusedPsalmSuppress: src/MethodReflection.php#L42
src/MethodReflection.php:42:24: UnusedPsalmSuppress: This suppression is never used (see https://psalm.dev/207)
UnusedParam: src/MethodReflection.php#L44
src/MethodReflection.php:44:56: UnusedParam: Param #1 is never referenced in this method (see https://psalm.dev/135)
PossiblyInvalidArgument: src/PhpParserReflector/ContextualPhpParserReflector.php#L82
src/PhpParserReflector/ContextualPhpParserReflector.php:82:24: PossiblyInvalidArgument: Argument 15 of Typhoon\Reflection\Metadata\ClassMetadata::__construct expects 0|16|32|48|64|80|96|112, but possibly different type 0|16|32|48|64|80|96|112|65536|65552|65568|65584|65600|65616|65632|65648 provided (see https://psalm.dev/092)
psalm (8.1)
Process completed with exit code 2.
psalm (8.2)
The operation was canceled.
psalm (8.3)
The operation was canceled.
composer-normalize (8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test (8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
php-cs-fixer (8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
psalm (8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test (8.2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
psalm (8.2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
psalm (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
infection (8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
infection (8.1): src/ClassReflection.php#L55
Escaped Mutant for Mutator "MatchArmRemoval": --- Original +++ New @@ @@ { return match ($name) { 'name' => $this->metadata->name, - default => new \OutOfBoundsException(sprintf('Property %s::$%s does not exist.', self::class, $name)), }; } public function __isset(string $name) : bool
infection (8.1): src/ClassReflection.php#L78
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ * @param class-string<TClass>|null $name * @return ($name is null ? list<AttributeReflection<object>> : list<AttributeReflection<TClass>>) */ - public function getAttributes(?string $name = null, int $flags = 0) : array + public function getAttributes(?string $name = null, int $flags = -1) : array { if ($this->attributes === null) { $class = $this->metadata->name;
infection (8.1): src/ClassReflection.php#L78
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ * @param class-string<TClass>|null $name * @return ($name is null ? list<AttributeReflection<object>> : list<AttributeReflection<TClass>>) */ - public function getAttributes(?string $name = null, int $flags = 0) : array + public function getAttributes(?string $name = null, int $flags = 1) : array { if ($this->attributes === null) { $class = $this->metadata->name;
infection (8.1): src/ClassReflection.php#L101
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } public function getConstants(?int $filter = null) : array { - $this->loadNative(); + return parent::getConstants($filter); } public function getConstructor() : ?MethodReflection
infection (8.1): src/ClassReflection.php#L113
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } public function getDefaultProperties() : array { - $this->loadNative(); + return parent::getDefaultProperties(); } public function getDocComment() : string|false
infection (8.1): src/ClassReflection.php#L125
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ } public function getEndLine() : int|false { - return $this->metadata->endLine ?? false; + return $this->metadata->endLine ?? true; } public function getExtension() : ?\ReflectionExtension {
infection (8.1): src/ClassReflection.php#L191
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ */ public function getMethods(?int $filter = null) : array { - if ($filter === null || $filter === 0) { + if ($filter === null || $filter === -1) { return array_values($this->getResolvedMethods()); } return array_values(array_filter($this->getResolvedMethods(), static fn(MethodReflection $method): bool => ($filter & $method->getModifiers()) !== 0));
infection (8.1): src/ClassReflection.php#L192
Escaped Mutant for Mutator "UnwrapArrayValues": --- Original +++ New @@ @@ public function getMethods(?int $filter = null) : array { if ($filter === null || $filter === 0) { - return array_values($this->getResolvedMethods()); + return $this->getResolvedMethods(); } return array_values(array_filter($this->getResolvedMethods(), static fn(MethodReflection $method): bool => ($filter & $method->getModifiers()) !== 0)); }
infection (8.1): src/ClassReflection.php#L195
Escaped Mutant for Mutator "UnwrapArrayValues": --- Original +++ New @@ @@ if ($filter === null || $filter === 0) { return array_values($this->getResolvedMethods()); } - return array_values(array_filter($this->getResolvedMethods(), static fn(MethodReflection $method): bool => ($filter & $method->getModifiers()) !== 0)); + return array_filter($this->getResolvedMethods(), static fn(MethodReflection $method): bool => ($filter & $method->getModifiers()) !== 0); } public function getModifiers() : int {
infection (8.1): src/ClassReflection.php#L264
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ */ public function getProperties(?int $filter = null) : array { - if ($filter === null || $filter === 0) { + if ($filter === null || $filter === -1) { return array_values($this->getResolvedProperties()); } return array_values(array_filter($this->getResolvedProperties(), static fn(PropertyReflection $property): bool => ($filter & $property->getModifiers()) !== 0));