Skip to content

Commit

Permalink
fix(UpdateFileNameByClassNameFileSystemRector): compare shortClass Wi… (
Browse files Browse the repository at this point in the history
#3070)

Co-authored-by: Ismaile ABDALLAH <ismaileabdallah@Air-de-Ismaile.lan>
  • Loading branch information
yagami271 and Ismaile ABDALLAH committed Nov 16, 2022
1 parent 07941b8 commit 8ac960d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function refactor(Node $node): ?Node
$classShortName = $this->nodeNameResolver->getShortName($className);

$filePath = $this->file->getFilePath();
$basename = pathinfo($filePath, PATHINFO_BASENAME);
$basename = pathinfo($filePath, PATHINFO_FILENAME);

if ($classShortName === $basename) {
return null;
Expand Down

0 comments on commit 8ac960d

Please sign in to comment.