Skip to content

Commit 3b444d5

Browse files
committed
Fixed runtime notice
1 parent 1ac48dc commit 3b444d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Gitonomy/Git/Commit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public function getTree()
257257
/**
258258
* @return Commit
259259
*/
260-
public function getLastModification($path)
260+
public function getLastModification($path = null)
261261
{
262262
if (0 === strpos($path, '/')) {
263263
$path = StringHelper::substr($path, 1);

src/Gitonomy/Git/Revision.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function getCommitHash()
8181
*
8282
* @return DateTime
8383
*/
84-
public function getLastModification()
84+
public function getLastModification($path = null)
8585
{
8686
return $this->getCommit()->getAuthorDate();
8787
}

0 commit comments

Comments
 (0)