Skip to content
Permalink
Browse files

Add missing scalar types

  • Loading branch information...
colinodell committed Mar 13, 2019
1 parent b3dd8f4 commit 9eba7f27eeb56bd4effff5fa69e589f88fa322e2
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Cursor.php
@@ -162,7 +162,7 @@ public function isIndented(): bool
*
* @return string|null
*/
public function getCharacter($index = null): ?string
public function getCharacter(?int $index = null): ?string
{
if ($index === null) {
$index = $this->currentPosition;
@@ -187,7 +187,7 @@ public function getCharacter($index = null): ?string
*
* @return string|null
*/
public function peek($offset = 1): ?string
public function peek(int $offset = 1): ?string
{
return $this->getCharacter($this->currentPosition + $offset);
}

0 comments on commit 9eba7f2

Please sign in to comment.
You can’t perform that action at this time.