⬆️ Bump phpstan/phpstan from 1.12.0 to 1.12.5 #519
continuous_integration.yml
on: pull_request
continuous-integration
48s
Annotations
3 warnings
continuous-integration:
src/Application.php#L29
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
}
protected function configure(): void
{
- parent::configure();
+
$this->setVersion('1.0.0');
$this->addArgument('exercise-slug', InputArgument::REQUIRED, 'Slug of the exercise');
$this->addArgument('solution-dir', InputArgument::REQUIRED, 'Directory of the solution');
|
continuous-integration:
src/NormalizeNodeVisitor.php#L155
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
*/
private function normalizeInterpolatedString(InterpolatedString $string): Node
{
- $parts = array_map(static fn(Node $part) => $part instanceof InterpolatedStringPart ? new String_($part->value, ['kind' => String_::KIND_SINGLE_QUOTED]) : $part, $string->parts);
+ $parts = array_map(static fn(Node $part) => $part instanceof InterpolatedStringPart ? new String_($part->value, []) : $part, $string->parts);
$left = array_shift($parts);
assert($left !== null, 'Interpolated string had 0 part.');
while ($right = array_shift($parts)) {
|
continuous-integration:
src/NormalizeNodeVisitor.php#L177
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
private function simplifyUselessConcat(Concat $concat): String_|null
{
if ($concat->left instanceof String_ && $concat->right instanceof String_) {
- return new String_($concat->left->value . $concat->right->value, ['kind' => String_::KIND_SINGLE_QUOTED]);
+ return new String_($concat->left->value . $concat->right->value, []);
}
return null;
}
|