Skip to content

Update all non-major dependencies #1487

Update all non-major dependencies

Update all non-major dependencies #1487

Triggered via pull request June 3, 2024 08:47
Status Failure
Total duration 1m 2s
Artifacts

continuous-integration.yml

on: pull_request
Generate job matrix
9s
Generate job matrix
Matrix: Check Demo Scripts
Matrix: QA Checks
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 4 warnings
MoreSpecificReturnType: src/GeneratedHydrator/Factory/HydratorFactory.php#L34
src/GeneratedHydrator/Factory/HydratorFactory.php:34:22: MoreSpecificReturnType: The declared return type 'class-string<GeneratedHydrator\GeneratedHydrator<HydratedObject:GeneratedHydrator\Factory\HydratorFactory as object>>' for GeneratedHydrator\Factory\HydratorFactory::getHydratorClass is more specific than the inferred return type 'string' (see https://psalm.dev/070)
LessSpecificReturnStatement: src/GeneratedHydrator/Factory/HydratorFactory.php#L58
src/GeneratedHydrator/Factory/HydratorFactory.php:58:16: LessSpecificReturnStatement: The type 'string' is more general than the declared return type 'class-string<GeneratedHydrator\GeneratedHydrator<HydratedObject:GeneratedHydrator\Factory\HydratorFactory as object>>' for GeneratedHydrator\Factory\HydratorFactory::getHydratorClass (see https://psalm.dev/129)
RiskyTruthyFalsyComparison: tests/GeneratedHydratorTest/CodeGenerator/Visitor/HydratorMethodsVisitorTest.php#L93
tests/GeneratedHydratorTest/CodeGenerator/Visitor/HydratorMethodsVisitorTest.php:93:18: RiskyTruthyFalsyComparison: Operand of type array<array-key, PhpParser\Node\Stmt>|null contains type array<array-key, PhpParser\Node\Stmt>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: tests/GeneratedHydratorTest/CodeGenerator/Visitor/HydratorMethodsVisitorTest.php#L94
tests/GeneratedHydratorTest/CodeGenerator/Visitor/HydratorMethodsVisitorTest.php:94:18: RiskyTruthyFalsyComparison: Operand of type array<array-key, PhpParser\Node\Stmt>|null contains type array<array-key, PhpParser\Node\Stmt>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
Check Demo Scripts (locked, 8.1, ubuntu-latest)
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/.
Check Demo Scripts (locked, 8.2, ubuntu-latest)
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/.
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...: src/GeneratedHydrator/CodeGenerator/Visitor/HydratorMethodsVisitor.php#L52
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation": --- Original +++ New @@ @@ { foreach ($this->findAllInstanceProperties($reflectedClass) as $property) { $className = $property->getDeclaringClass()->getName(); - if ($property->isPrivate() || $property->isProtected()) { + if (!$property->isPrivate() || !$property->isProtected()) { $this->hiddenPropertyMap[$className][] = ObjectProperty::fromReflection($property); } else { $this->visiblePropertyMap[] = ObjectProperty::fromReflection($property);
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...: src/GeneratedHydrator/CodeGenerator/Visitor/HydratorMethodsVisitor.php#L66
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ if (!$node instanceof Class_) { return null; } - $node->stmts[] = new Property(Class_::MODIFIER_PRIVATE, [new PropertyProperty('hydrateCallbacks', new Array_()), new PropertyProperty('extractCallbacks', new Array_())]); + $node->stmts[] = new Property(Class_::MODIFIER_PRIVATE, [new PropertyProperty('extractCallbacks', new Array_())]); $this->replaceConstructor($this->findOrCreateMethod($node, '__construct')); $this->replaceHydrate($this->findOrCreateMethod($node, 'hydrate')); $this->replaceExtract($this->findOrCreateMethod($node, 'extract'));