Update all non-major dependencies #1060
continuous-integration.yml
on: push
Generate job matrix
7s
Matrix: QA Checks
Annotations
10 errors and 9 warnings
RiskyTruthyFalsyComparison:
src/CodeGenerationUtils/GeneratorStrategy/EvaluatingGeneratorStrategy.php#L42
src/CodeGenerationUtils/GeneratorStrategy/EvaluatingGeneratorStrategy.php:42:26: RiskyTruthyFalsyComparison: Operand of type false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
RedundantCondition:
src/CodeGenerationUtils/ReflectionBuilder/ClassBuilder.php#L197
src/CodeGenerationUtils/ReflectionBuilder/ClassBuilder.php:197:17: RedundantCondition: Type string for $constantName is never null (see https://psalm.dev/122)
|
RedundantCondition:
src/CodeGenerationUtils/ReflectionBuilder/ClassBuilder.php#L197
src/CodeGenerationUtils/ReflectionBuilder/ClassBuilder.php:197:24: RedundantCondition: string can never contain null (see https://psalm.dev/122)
|
DeprecatedProperty:
src/CodeGenerationUtils/Visitor/ClassExtensionVisitor.php#L84
src/CodeGenerationUtils/Visitor/ClassExtensionVisitor.php:84:33: DeprecatedProperty: PhpParser\Node\Name::$parts is marked deprecated (see https://psalm.dev/099)
|
DeprecatedProperty:
src/CodeGenerationUtils/Visitor/ClassImplementorVisitor.php#L92
src/CodeGenerationUtils/Visitor/ClassImplementorVisitor.php:92:33: DeprecatedProperty: PhpParser\Node\Name::$parts is marked deprecated (see https://psalm.dev/099)
|
DeprecatedProperty:
src/CodeGenerationUtils/Visitor/ClassRenamerVisitor.php#L103
src/CodeGenerationUtils/Visitor/ClassRenamerVisitor.php:103:17: DeprecatedProperty: PhpParser\Node\Name::$parts is marked deprecated (see https://psalm.dev/099)
|
RiskyTruthyFalsyComparison:
tests/CodeGenerationUtilsTest/GeneratorStrategy/EvaluatingGeneratorStrategyTest.php#L58
tests/CodeGenerationUtilsTest/GeneratorStrategy/EvaluatingGeneratorStrategyTest.php:58:13: RiskyTruthyFalsyComparison: Operand of type false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
DeprecatedProperty:
tests/CodeGenerationUtilsTest/Visitor/ClassClonerVisitorTest.php#L54
tests/CodeGenerationUtilsTest/Visitor/ClassClonerVisitorTest.php:54:55: DeprecatedProperty: PhpParser\Node\Name::$parts is marked deprecated (see https://psalm.dev/099)
|
DeprecatedProperty:
tests/CodeGenerationUtilsTest/Visitor/ClassRenamerVisitorTest.php#L57
tests/CodeGenerationUtilsTest/Visitor/ClassRenamerVisitorTest.php:57:42: DeprecatedProperty: PhpParser\Node\Name::$parts is marked deprecated (see https://psalm.dev/099)
|
DeprecatedProperty:
tests/CodeGenerationUtilsTest/Visitor/ClassRenamerVisitorTest.php#L80
tests/CodeGenerationUtilsTest/Visitor/ClassRenamerVisitorTest.php:80:66: DeprecatedProperty: PhpParser\Node\Name::$parts is marked deprecated (see https://psalm.dev/099)
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/Autoloader/Autoloader.php#L37
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
}
public function __invoke(string $className) : bool
{
- if (class_exists($className, false) || !$this->classNameInflector->isGeneratedClassName($className)) {
+ if (class_exists($className, true) || !$this->classNameInflector->isGeneratedClassName($className)) {
return false;
}
$file = $this->fileLocator->getGeneratedClassFileName($className);
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/GeneratorStrategy/BaseGeneratorStrategy.php#L46
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
{
$this->prettyPrinter = $prettyPrinter;
}
- protected function getPrettyPrinter() : PrettyPrinterAbstract
+ private function getPrettyPrinter() : PrettyPrinterAbstract
{
return $this->prettyPrinter ?: ($this->prettyPrinter = new Standard());
}
}
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/GeneratorStrategy/FileWriterGeneratorStrategy.php#L64
Escaped Mutant for Mutator "UnwrapTrim":
--- Original
+++ New
@@ @@
{
$this->traverser->traverse($ast);
$generatedCode = parent::generate($ast);
- $className = trim($this->visitor->getNamespace() . '\\' . $this->visitor->getName(), '\\');
+ $className = $this->visitor->getNamespace() . '\\' . $this->visitor->getName();
$fileName = $this->fileLocator->getGeneratedClassFileName($className);
$tmpFileName = $fileName . '.' . uniqid('', true);
// renaming files is necessary to avoid race conditions when the same file is written multiple times
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/GeneratorStrategy/FileWriterGeneratorStrategy.php#L66
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$generatedCode = parent::generate($ast);
$className = trim($this->visitor->getNamespace() . '\\' . $this->visitor->getName(), '\\');
$fileName = $this->fileLocator->getGeneratedClassFileName($className);
- $tmpFileName = $fileName . '.' . uniqid('', true);
+ $tmpFileName = '.' . uniqid('', true);
// renaming files is necessary to avoid race conditions when the same file is written multiple times
// in a short time period
file_put_contents($tmpFileName, "<?php\n\n" . $generatedCode);
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/GeneratorStrategy/FileWriterGeneratorStrategy.php#L66
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$generatedCode = parent::generate($ast);
$className = trim($this->visitor->getNamespace() . '\\' . $this->visitor->getName(), '\\');
$fileName = $this->fileLocator->getGeneratedClassFileName($className);
- $tmpFileName = $fileName . '.' . uniqid('', true);
+ $tmpFileName = $fileName . uniqid('', true);
// renaming files is necessary to avoid race conditions when the same file is written multiple times
// in a short time period
file_put_contents($tmpFileName, "<?php\n\n" . $generatedCode);
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/GeneratorStrategy/FileWriterGeneratorStrategy.php#L66
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
$generatedCode = parent::generate($ast);
$className = trim($this->visitor->getNamespace() . '\\' . $this->visitor->getName(), '\\');
$fileName = $this->fileLocator->getGeneratedClassFileName($className);
- $tmpFileName = $fileName . '.' . uniqid('', true);
+ $tmpFileName = $fileName . uniqid('', true) . '.';
// renaming files is necessary to avoid race conditions when the same file is written multiple times
// in a short time period
file_put_contents($tmpFileName, "<?php\n\n" . $generatedCode);
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/GeneratorStrategy/FileWriterGeneratorStrategy.php#L66
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$generatedCode = parent::generate($ast);
$className = trim($this->visitor->getNamespace() . '\\' . $this->visitor->getName(), '\\');
$fileName = $this->fileLocator->getGeneratedClassFileName($className);
- $tmpFileName = $fileName . '.' . uniqid('', true);
+ $tmpFileName = $fileName . '.';
// renaming files is necessary to avoid race conditions when the same file is written multiple times
// in a short time period
file_put_contents($tmpFileName, "<?php\n\n" . $generatedCode);
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/Inflector/Util/ParameterEncoder.php#L40
Escaped Mutant for Mutator "UnwrapStrReplace":
--- Original
+++ New
@@ @@
*/
public function encodeParameters(array $parameters) : string
{
- return str_replace('+/=', '†‡•', base64_encode(serialize($parameters)));
+ return base64_encode(serialize($parameters));
}
}
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/Visitor/MethodDisablerVisitor.php#L83
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if ($filterResult === null) {
return null;
}
- $node->stmts = [new Throw_(new New_(new FullyQualified('BadMethodCallException'), [new Arg(new String_('Method is disabled'))]))];
+ $node->stmts = [new Throw_(new New_(new FullyQualified('BadMethodCallException'), []))];
return $node;
}
}
|