This repository has been archived by the owner on Feb 19, 2025. It is now read-only.
Update dependency vimeo/psalm to v6 #1242
continuous-integration.yml
on: pull_request
Generate job matrix
6s
Matrix: QA Checks
Annotations
10 warnings
QA Checks (Infection [8.2, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/Autoloader/Autoloader.php#L37
Escaped Mutant for Mutator "FalseValue":
@@ @@
}
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.2, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/GeneratorStrategy/BaseGeneratorStrategy.php#L46
Escaped Mutant for Mutator "ProtectedVisibility":
@@ @@
{
$this->prettyPrinter = $prettyPrinter;
}
- protected function getPrettyPrinter(): PrettyPrinterAbstract
+ private function getPrettyPrinter(): PrettyPrinterAbstract
{
return $this->prettyPrinter ?: $this->prettyPrinter = new Standard();
}
}
|
QA Checks (Infection [8.2, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/GeneratorStrategy/EvaluatingGeneratorStrategy.php#L42
Escaped Mutant for Mutator "Identical":
@@ @@
*/
public function __construct()
{
- $this->canEval = ini_get('suhosin.executor.disable_eval') === '1';
+ $this->canEval = ini_get('suhosin.executor.disable_eval') !== '1';
}
/**
* Evaluates the generated code before returning it
|
QA Checks (Infection [8.2, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/GeneratorStrategy/EvaluatingGeneratorStrategy.php#L54
Escaped Mutant for Mutator "LogicalNot":
@@ @@
public function generate(array $ast): string
{
$code = parent::generate($ast);
- if (!$this->canEval) {
+ if ($this->canEval) {
$fileName = sys_get_temp_dir() . '/EvaluatingGeneratorStrategy.php.tmp.' . uniqid('', true);
file_put_contents($fileName, "<?php\n" . $code);
/** @psalm-suppress UnresolvableInclude we're doing `eval()` here! There's no going back! */
|
QA Checks (Infection [8.2, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/GeneratorStrategy/EvaluatingGeneratorStrategy.php#L55
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
{
$code = parent::generate($ast);
if (!$this->canEval) {
- $fileName = sys_get_temp_dir() . '/EvaluatingGeneratorStrategy.php.tmp.' . uniqid('', true);
+ $fileName = sys_get_temp_dir() . '/EvaluatingGeneratorStrategy.php.tmp.';
file_put_contents($fileName, "<?php\n" . $code);
/** @psalm-suppress UnresolvableInclude we're doing `eval()` here! There's no going back! */
require $fileName;
|
QA Checks (Infection [8.2, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/GeneratorStrategy/EvaluatingGeneratorStrategy.php#L60
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
file_put_contents($fileName, "<?php\n" . $code);
/** @psalm-suppress UnresolvableInclude we're doing `eval()` here! There's no going back! */
require $fileName;
- unlink($fileName);
+
return $code;
}
eval($code);
|
QA Checks (Infection [8.2, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/GeneratorStrategy/FileWriterGeneratorStrategy.php#L64
Escaped Mutant for Mutator "UnwrapTrim":
@@ @@
{
$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.2, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/GeneratorStrategy/FileWriterGeneratorStrategy.php#L66
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
$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.2, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/GeneratorStrategy/FileWriterGeneratorStrategy.php#L66
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
$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.2, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/CodeGenerationUtils/GeneratorStrategy/FileWriterGeneratorStrategy.php#L66
Escaped Mutant for Mutator "Concat":
@@ @@
$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);
|