Skip to content

Commit 3d89db3

Browse files
committed
Merge branch '3.x' into 4.x
2 parents 1a7eede + 08811ce commit 3d89db3

File tree

7 files changed

+7
-9
lines changed

7 files changed

+7
-9
lines changed

phpstan.neon

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
includes:
2-
- vendor/phpstan/phpstan-strict-rules/rules.neon
3-
41
parameters:
52
level: 9
63
paths:
74
- src
85

6+
reportUnmatchedIgnoredErrors: true

src/Cache/FileStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function getMultiple(iterable $keys, mixed $default = null): iterable
7777
/**
7878
* @param iterable<string, mixed> $values
7979
*/
80-
public function setMultiple(iterable $values, DateInterval|int|null $ttl = null): bool // @phpstan-ignore-line
80+
public function setMultiple(iterable $values, DateInterval|int|null $ttl = null): bool
8181
{
8282
$result = true;
8383

src/Cache/NullStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function getMultiple(iterable $keys, mixed $default = null): iterable
4242
/**
4343
* @param iterable<string, mixed> $values
4444
*/
45-
public function setMultiple(iterable $values, DateInterval|int|null $ttl = null): bool // @phpstan-ignore-line
45+
public function setMultiple(iterable $values, DateInterval|int|null $ttl = null): bool
4646
{
4747
return true;
4848
}

src/Plugins/Mutate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function __construct(
8181
public function boot(): void
8282
{
8383
if (getenv(self::ENV_MUTATION_TESTING) !== false) {
84-
/** @phpstan-ignore-next-line */
84+
// @phpstan-ignore-next-line
8585
StreamWrapper::start(getenv(self::ENV_MUTATION_TESTING), (string) getenv(self::ENV_MUTATION_FILE));
8686
}
8787

src/Support/MutationGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public function generate(
7474
$traverser = NodeTraverserFactory::create();
7575
$traverser->addVisitor(new NodeVisitor(
7676
mutator: $mutator,
77-
linesToMutate: $linesToMutate,
7877
offset: $this->offset,
78+
linesToMutate: $linesToMutate,
7979
mutatorsToIgnoreByLine: $mutatorsToIgnoreByLine,
8080
hasAlreadyMutated: $this->hasMutated(...),
8181
trackMutation: $this->trackMutation(...),

src/Support/StreamWrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function stream_metadata(string $path, int $option, mixed $value): bool
187187
return $this->withOriginalWrapper(function () use ($value, $path, $option): bool {
188188
switch ($option) {
189189
case STREAM_META_TOUCH:
190-
if (empty($value)) { // @phpstan-ignore-line
190+
if (empty($value)) {
191191
return touch($path);
192192
}
193193

tests/Unit/Support/Printers/DefaultPrinterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
$this->printer = new DefaultPrinter($this->out);
1717

1818
$this->createMutation = fn (): Mutation => new Mutation(
19-
id: 'test-id',
2019
file: new SplFileInfo('test.php', '', ''),
20+
id: 'test-id',
2121
mutator: EqualToIdentical::class,
2222
startLine: 4,
2323
endLine: 4,

0 commit comments

Comments
 (0)