Skip to content

Commit f4f67c0

Browse files
committed
Rector & phpstan
1 parent 8417cc0 commit f4f67c0

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/Field/LinkTypes/BaseTextLinkType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function supports(string $value): bool
2929
{
3030
$value = mb_strtolower($value);
3131

32-
return array_any((array) $this->urlPrefix(), fn ($prefix) => str_starts_with($value, $prefix));
32+
return array_any((array) $this->urlPrefix(), fn ($prefix) => str_starts_with($value, (string) $prefix));
3333
}
3434

3535
#[\Override]

src/Support/Env.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static function removeVariable(string $key, string $pathToFile): void
3131
$envContent = $filesystem->get($pathToFile);
3232

3333
$lines = explode(PHP_EOL, $envContent);
34-
$lines = array_filter($lines, fn ($line) => ! str_starts_with($line, $key.'='));
34+
$lines = array_filter($lines, fn ($line) => ! str_starts_with((string) $line, $key.'='));
3535

3636
$filesystem->put($pathToFile, implode(PHP_EOL, $lines));
3737
}

yii2-adapter/legacy/models/FsListing.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,11 @@ class FsListing extends Model
4343

4444
/**
4545
* @var int|null The filesize.
46-
* @phpstan-ignore-next-line
4746
*/
4847
private ?int $fileSize = null;
4948

5049
/**
5150
* @var int|null Timestamp of date modified.
52-
* @phpstan-ignore-next-line
5351
*/
5452
private ?int $dateModified = null;
5553

0 commit comments

Comments
 (0)