Skip to content

Commit 8dfba97

Browse files
committed
Merge remote-tracking branch 'origin/master'
split: 5b726dc15ef2bacbe76a8e2f20731238f5a7ecfe
1 parent 3abaa7d commit 8dfba97

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Reader.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ public function peekAlphaNumeric()
618618
*
619619
* @return bool whether it could be or not.
620620
*/
621-
public function peekAlphaIdentifier(array $allowedChars = null)
621+
public function peekAlphaIdentifier(?array $allowedChars = null)
622622
{
623623
$allowedChars = $allowedChars ?: ['_'];
624624

@@ -632,7 +632,7 @@ public function peekAlphaIdentifier(array $allowedChars = null)
632632
*
633633
* @return bool whether it could be or not.
634634
*/
635-
public function peekIdentifier(array $allowedChars = null)
635+
public function peekIdentifier(?array $allowedChars = null)
636636
{
637637
return $this->peekAlphaIdentifier($allowedChars) || $this->peekDigit();
638638
}
@@ -757,7 +757,7 @@ public function readIdentifier($prefix = null, $allowedChars = null)
757757
*
758758
* @return string|null the resulting string or null if none encountered.
759759
*/
760-
public function readString(array $escapeSequences = null, $raw = false)
760+
public function readString(?array $escapeSequences = null, $raw = false)
761761
{
762762
if (!$this->peekQuote()) {
763763
return;
@@ -820,7 +820,7 @@ public function readString(array $escapeSequences = null, $raw = false)
820820
*
821821
* @return string|null the resulting expression or null, if none encountered.
822822
*/
823-
public function readExpression(array $breaks = null, array $brackets = null)
823+
public function readExpression(?array $breaks = null, ?array $brackets = null)
824824
{
825825
if (!$this->hasLength()) {
826826
return;

0 commit comments

Comments
 (0)