Skip to content

Commit

Permalink
style: fix incorrect case method name
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jan 16, 2024
1 parent 6f045bf commit 8c23fed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline.php
Original file line number Diff line number Diff line change
Expand Up @@ -1846,11 +1846,6 @@
'count' => 1,
'path' => __DIR__ . '/system/Exceptions/PageNotFoundException.php',
];
$ignoreErrors[] = [
'message' => '#^Call to method SplFileInfo\\:\\:getBasename\\(\\) with incorrect case\\: getBaseName$#',
'count' => 1,
'path' => __DIR__ . '/system/Files/File.php',
];
$ignoreErrors[] = [
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
'count' => 1,
Expand Down
2 changes: 1 addition & 1 deletion system/Files/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function getRandomName(): string
public function move(string $targetPath, ?string $name = null, bool $overwrite = false)
{
$targetPath = rtrim($targetPath, '/') . '/';
$name ??= $this->getBaseName();
$name ??= $this->getBasename();
$destination = $overwrite ? $targetPath . $name : $this->getDestination($targetPath . $name);

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

0 comments on commit 8c23fed

Please sign in to comment.