Bump the dev-dependencies group across 1 directory with 2 updates #157
Annotations
14 warnings
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use the latest version of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/
|
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/
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Run infection:
src/Contract/Analyser/EventHelper.php#L37
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
public function shouldViolationBeSkipped(string $depender, string $dependent) : bool
{
$skippedViolation = $this->skippedViolations[$depender] ?? [];
- $matched = [] !== $skippedViolation && in_array($dependent, $skippedViolation, true);
+ $matched = [] !== $skippedViolation || in_array($dependent, $skippedViolation, true);
if (!$matched) {
return false;
}
|
Run infection:
src/Contract/Config/CollectorConfig.php#L20
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
return $this;
}
/** @return array{'type': string, 'private': bool, ...} */
- public function toArray() : array
+ protected function toArray() : array
{
return ['type' => $this->collectorType->value, 'private' => $this->private];
}
}
|
Run infection:
src/Contract/Config/DeptracConfig.php#L134
Escaped Mutant for Mutator "NotIdentical":
--- Original
+++ New
@@ @@
if ([] !== $this->formatters) {
$config['formatters'] = array_map(static fn(FormatterConfigInterface $formatterConfig) => $formatterConfig->toArray(), $this->formatters);
}
- if ([] !== $this->excludeFiles) {
+ if ([] === $this->excludeFiles) {
$config['exclude_files'] = $this->excludeFiles;
}
if ([] !== $this->layers) {
|
Run infection:
src/Contract/Config/DeptracConfig.php#L146
Escaped Mutant for Mutator "NotIdentical":
--- Original
+++ New
@@ @@
if ([] !== $this->rulesets) {
$config['ruleset'] = array_map(static fn(Ruleset $rulesetConfig) => $rulesetConfig->toArray(), $this->rulesets);
}
- if ([] !== $this->skipViolations) {
+ if ([] === $this->skipViolations) {
$config['skip_violations'] = $this->skipViolations;
}
$config['ignore_uncovered_internal_classes'] = $this->ignoreUncoveredInternalClasses;
|
Run infection:
src/Contract/Config/DeptracConfig.php#L153
Escaped Mutant for Mutator "ArrayOneItem":
--- Original
+++ New
@@ @@
}
$config['ignore_uncovered_internal_classes'] = $this->ignoreUncoveredInternalClasses;
$config['cache_file'] = $this->cacheFile;
- return $config;
+ return count($config) > 1 ? array_slice($config, 0, 1, true) : $config;
}
public function getExtensionAlias() : string
{
|
Run infection:
src/Core/Analyser/EventHandler/DependsOnDisallowedLayer.php#L24
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
}
public static function getSubscribedEvents()
{
- return [ProcessEvent::class => ['invoke', -1]];
+ return [];
}
public function invoke(ProcessEvent $event) : void
{
|
Run infection:
src/Core/Analyser/EventHandler/DependsOnDisallowedLayer.php#L25
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
}
public static function getSubscribedEvents()
{
- return [ProcessEvent::class => ['invoke', -1]];
+ return [ProcessEvent::class => ['invoke', -2]];
}
public function invoke(ProcessEvent $event) : void
{
|
Run infection:
src/Core/Analyser/EventHandler/DependsOnDisallowedLayer.php#L25
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
}
public static function getSubscribedEvents()
{
- return [ProcessEvent::class => ['invoke', -1]];
+ return [ProcessEvent::class => ['invoke', -0]];
}
public function invoke(ProcessEvent $event) : void
{
|
Run infection:
src/Core/Analyser/EventHandler/DependsOnInternalToken.php#L50
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$isInternal = $event->dependentReference->hasTag($this->internalTag);
}
if ($isInternal) {
- $this->eventHelper->addSkippableViolation($event, $ruleset, $dependentLayer, $this);
+
$event->stopPropagation();
}
}
|
Run infection:
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 */
|
Get composer cache directory
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/
|
Loading