Update nikic/php-parser to 4.19.1 (#1415) #2114
test.yml
on: push
Matrix: deptrac
Matrix: infection
Matrix: unit-tests
Annotations
25 warnings
deptrac (ubuntu-20.04, 8.1, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
deptrac (ubuntu-20.04, 8.1, false)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
deptrac (ubuntu-20.04, 8.1, false)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
deptrac (ubuntu-20.04, 8.2, true)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
deptrac (ubuntu-20.04, 8.2, true)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
deptrac (ubuntu-20.04, 8.2, true)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
unit-tests (ubuntu-20.04, 8.2, true)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
unit-tests (ubuntu-20.04, 8.2, true)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
unit-tests (ubuntu-20.04, 8.2, true)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
unit-tests (ubuntu-20.04, 8.1, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
unit-tests (ubuntu-20.04, 8.1, false)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
unit-tests (ubuntu-20.04, 8.1, false)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
infection (ubuntu-20.04, 8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
infection (ubuntu-20.04, 8.1)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
infection (ubuntu-20.04, 8.1):
src/Contract/Result/LegacyResult.php#L58
Escaped Mutant for Mutator "GreaterThan":
--- Original
+++ New
@@ @@
}
public function hasUncovered() : bool
{
- return count($this->uncovered()) > 0;
+ return count($this->uncovered()) >= 0;
}
/**
* @return Allowed[]
|
infection (ubuntu-20.04, 8.1):
src/Contract/Result/LegacyResult.php#L66
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
*/
public function allowed() : array
{
- return array_filter($this->rules, static fn(RuleInterface $rule) => $rule instanceof Allowed);
+ return array_filter($this->rules, static fn(RuleInterface $rule) => false);
}
public function hasErrors() : bool
{
|
infection (ubuntu-20.04, 8.1):
src/Core/Analyser/EventHandler/SkippedViolationHelper.php#L33
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
public function isViolationSkipped(string $depender, string $dependent) : bool
{
$matched = isset($this->skippedViolation[$depender]) && in_array($dependent, $this->skippedViolation[$depender], true);
- if ($matched && false !== ($key = array_search($dependent, $this->unmatchedSkippedViolation[$depender], true))) {
+ if ($matched && true !== ($key = array_search($dependent, $this->unmatchedSkippedViolation[$depender], true))) {
unset($this->unmatchedSkippedViolation[$depender][$key]);
}
return $matched;
|
infection (ubuntu-20.04, 8.1):
src/Core/Ast/AstMap/AstMap.php#L110
Escaped Mutant for Mutator "AssignCoalesce":
--- Original
+++ New
@@ @@
*/
private function recursivelyResolveDependencies(AstInherit $inheritDependency, ArrayObject $alreadyResolved = null, SplStack $pathStack = null) : iterable
{
- $alreadyResolved ??= new ArrayObject();
+ $alreadyResolved = new ArrayObject();
/** @var ArrayObject<string, true> $alreadyResolved */
if (null === $pathStack) {
/** @var SplStack<AstInherit> $pathStack */
|
infection (ubuntu-20.04, 8.1):
src/Core/Ast/AstMap/AstMap.php#L133
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
return [];
}
foreach ($classReference->inherits as $inherit) {
- $alreadyResolved[$className] = true;
+ $alreadyResolved[$className] = false;
/** @var AstInherit[] $path */
$path = iterator_to_array($pathStack);
(yield $inherit->withPath($path));
|
infection (ubuntu-20.04, 8.1):
src/Core/Ast/AstMap/ClassLike/ClassLikeReference.php#L28
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
* @param AstInherit[] $inherits
* @param DependencyToken[] $dependencies
*/
- public function __construct(private readonly ClassLikeToken $classLikeName, ClassLikeType $classLikeType = null, public readonly array $inherits = [], public readonly array $dependencies = [], public readonly bool $isInternal = false, private readonly ?FileReference $fileReference = null)
+ public function __construct(private readonly ClassLikeToken $classLikeName, ClassLikeType $classLikeType = null, public readonly array $inherits = [], public readonly array $dependencies = [], public readonly bool $isInternal = true, private readonly ?FileReference $fileReference = null)
{
$this->type = $classLikeType ?? ClassLikeType::TYPE_CLASSLIKE;
}
|
infection (ubuntu-20.04, 8.1):
src/Core/Ast/AstMap/ClassLike/ClassLikeReference.php#L48
Escaped Mutant for Mutator "NullSafePropertyCall":
--- Original
+++ New
@@ @@
}
public function getFilepath() : ?string
{
- return $this->fileReference?->filepath;
+ return $this->fileReference->filepath;
}
public function getToken() : ClassLikeToken
{
|
infection (ubuntu-20.04, 8.1):
src/Core/Ast/AstMap/ClassLike/ClassLikeReferenceBuilder.php#L20
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
/**
* @param string[] $tokenTemplates
*/
- protected function __construct(array $tokenTemplates, string $filepath, private readonly ClassLikeToken $classLikeToken, private readonly ClassLikeType $classLikeType, private readonly bool $isInternal)
+ private function __construct(array $tokenTemplates, string $filepath, private readonly ClassLikeToken $classLikeToken, private readonly ClassLikeType $classLikeType, private readonly bool $isInternal)
{
parent::__construct($tokenTemplates, $filepath);
}
|
infection (ubuntu-20.04, 8.1):
src/Core/Ast/AstMap/File/FileReference.php#L41
Escaped Mutant for Mutator "UnwrapArrayMap":
--- Original
+++ New
@@ @@
/** @psalm-suppress ImpureFunctionCall */
$this->classLikeReferences = array_map(fn(ClassLikeReference $classReference) => $classReference->withFileReference($this), $classLikeReferences);
/** @psalm-suppress ImpureFunctionCall */
- $this->functionLikeReferences = array_map(fn(FunctionLikeReference $functionReference) => $functionReference->withFileReference($this), $functionLikeReferences);
+ $this->functionLikeReferences = $functionLikeReferences;
}
public function getFilepath() : ?string
{
|
infection (ubuntu-20.04, 8.1):
src/Core/Ast/AstMap/File/FileToken.php#L23
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
public function toString() : string
{
$wd = getcwd();
- if (false !== $wd) {
+ if (true !== $wd) {
$wd = Path::normalize($wd);
}
if (false !== $wd && str_starts_with($this->path, $wd)) {
|
infection (ubuntu-20.04, 8.1)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|