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 1841
1841
'count ' => 1 ,
1842
1842
'path ' => __DIR__ . '/system/Exceptions/PageNotFoundException.php ' ,
1843
1843
];
1844
- $ ignoreErrors [] = [
1845
- 'message ' => '#^Call to method SplFileInfo \\: \\:getBasename \\( \\) with incorrect case \\: getBaseName$# ' ,
1846
- 'count ' => 1 ,
1847
- 'path ' => __DIR__ . '/system/Files/File.php ' ,
1848
- ];
1849
1844
$ ignoreErrors [] = [
1850
1845
'message ' => '#^Construct empty \\( \\) is not allowed \\. Use more strict comparison \\.$# ' ,
1851
1846
'count ' => 1 ,
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ public function getRandomName(): string
140
140
public function move (string $ targetPath , ?string $ name = null , bool $ overwrite = false )
141
141
{
142
142
$ targetPath = rtrim ($ targetPath , '/ ' ) . '/ ' ;
143
- $ name ??= $ this ->getBaseName ();
143
+ $ name ??= $ this ->getBasename ();
144
144
$ destination = $ overwrite ? $ targetPath . $ name : $ this ->getDestination ($ targetPath . $ name );
145
145
146
146
$ oldName = $ this ->getRealPath () ?: $ this ->__toString ();
You can’t perform that action at this time.
0 commit comments