Update RParser.php

This commit is contained in:
Chris Rowles 2019-04-09 02:52:53 +01:00 committed by GitHub
parent 774fdfa5bb
commit 32a3cf70aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -146,10 +146,10 @@ class RParser
* This method is equivalent to the pseudo variable functionality in Bison.
*
* @link https://php.net/manual/en/parle-rparser.sigil.php
* @param array $idx Match index, zero based. [ int $idx ]
* @param int $idx Match index, zero based.
* @return string Returns a string with the matched part.
*/
public function sigil(array $idx) : string {}
public function sigil(int $idx) : string {}
/**
* Declare a token
@ -196,4 +196,4 @@ class RParser
* @return bool Returns boolean witnessing whether the input chimes or not with the defined rules.
*/
public function validate(string $data, Lexer $lexer) : bool {}
}
}