Skip to content

Commit d664a46

Browse files
author
Fredrick Peter
committed
unlinkFile error fix
1 parent 3c0fd29 commit d664a46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tame.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ static public function formatNumberToNearestThousand(float|int $number = 0)
747747
static public function unlinkFile(string $fileToUnlink, $checkFile = null)
748748
{
749749
if(self::exists($fileToUnlink)){
750-
if(basename($fileToUnlink) != basename($checkFile)){
750+
if(basename($fileToUnlink) != basename((string) $checkFile)){
751751
@unlink($fileToUnlink);
752752
}
753753
}

0 commit comments

Comments
 (0)