Skip to content

Commit 565cd2a

Browse files
committed
feat: change dirname e basename method names
Signed-off-by: Felipe Sayão Lobato Abreu <github@mentordosnerds.com>
1 parent a7390f6 commit 565cd2a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Changelog/Checker/UnreleasedEntryChecker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function hasPendingChanges(string $file, ?string $againstReference = null
7474
}
7575

7676
try {
77-
$baseline = $this->gitClient->show($againstReference, $file, $this->filesystem->dirname($file));
77+
$baseline = $this->gitClient->show($againstReference, $file, $this->filesystem->getDirectory($file));
7878
} catch (Throwable) {
7979
return true;
8080
}

src/Changelog/Manager/ChangelogManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ private function persist(string $file, ChangelogDocument $document): void
189189
{
190190
$this->filesystem->dumpFile(
191191
$file,
192-
$this->renderer->render($document, $this->resolveRepositoryUrl($this->filesystem->dirname($file))),
192+
$this->renderer->render($document, $this->resolveRepositoryUrl($this->filesystem->getDirectory($file))),
193193
);
194194
}
195195
}

0 commit comments

Comments
 (0)