Skip to content

Commit 8c23fed

Browse files
committed
style: fix incorrect case method name
1 parent 6f045bf commit 8c23fed

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

phpstan-baseline.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1846,11 +1846,6 @@
18461846
'count' => 1,
18471847
'path' => __DIR__ . '/system/Exceptions/PageNotFoundException.php',
18481848
];
1849-
$ignoreErrors[] = [
1850-
'message' => '#^Call to method SplFileInfo\\:\\:getBasename\\(\\) with incorrect case\\: getBaseName$#',
1851-
'count' => 1,
1852-
'path' => __DIR__ . '/system/Files/File.php',
1853-
];
18541849
$ignoreErrors[] = [
18551850
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
18561851
'count' => 1,

system/Files/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function getRandomName(): string
140140
public function move(string $targetPath, ?string $name = null, bool $overwrite = false)
141141
{
142142
$targetPath = rtrim($targetPath, '/') . '/';
143-
$name ??= $this->getBaseName();
143+
$name ??= $this->getBasename();
144144
$destination = $overwrite ? $targetPath . $name : $this->getDestination($targetPath . $name);
145145

146146
$oldName = $this->getRealPath() ?: $this->__toString();

0 commit comments

Comments
 (0)