File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change 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 ,
Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments