Skip to content

Commit

Permalink
Actually (correctly) fix the reported #183
Browse files Browse the repository at this point in the history
  • Loading branch information
GenieTim committed Jun 30, 2022
1 parent f328052 commit 20e0c09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/GitElephant/Objects/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @author Matteo Giachino <[email protected]>
* @author Dhaval Patel <[email protected]>
*/
class Log implements \ArrayAccess, \Countable, \Iterator: void
class Log implements \ArrayAccess, \Countable, \Iterator
{
/**
* @var \GitElephant\Repository
Expand Down Expand Up @@ -207,7 +207,7 @@ public function offsetGet($offset): ?\GitElephant\Objects\Commit
* @return void
* @throws \RuntimeException
*/
public function offsetSet($offset, $value)
public function offsetSet($offset, $value): void
{
throw new \RuntimeException('Can\'t set elements on logs');
}
Expand All @@ -220,7 +220,7 @@ public function offsetSet($offset, $value)
* @return void
* @throws \RuntimeException
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
throw new \RuntimeException('Can\'t unset elements on logs');
}
Expand Down
4 changes: 2 additions & 2 deletions src/GitElephant/Objects/LogRange.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public function offsetGet($offset): ?\GitElephant\Objects\Commit
* @return void
* @throws \RuntimeException
*/
public function offsetSet($offset, $value)
public function offsetSet($offset, $value): void
{
throw new \RuntimeException('Can\'t set elements on logs');
}
Expand All @@ -221,7 +221,7 @@ public function offsetSet($offset, $value)
* @return void
* @throws \RuntimeException
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
throw new \RuntimeException('Can\'t unset elements on logs');
}
Expand Down

0 comments on commit 20e0c09

Please sign in to comment.