MINOR: Fix E_STRICT notices in php-peg

This commit is contained in:
Andrew O'Neil 2012-04-11 14:40:27 +12:00
parent c5aa074bff
commit 501c8f3f31
1 changed files with 3 additions and 3 deletions

View File

@ -269,16 +269,16 @@ class FalseOnlyPackrat extends Parser {
* @author Hamish Friedlander
*/
class ConservativePackrat extends Parser {
function packhas( $key ) {
function packhas( $key, $pos ) {
return isset( $this->packres[$key] ) && $this->packres[$key] !== NULL ;
}
function packread( $key ) {
function packread( $key, $pos ) {
$this->pos = $this->packpos[$key];
return $this->packres[$key] ;
}
function packwrite( $key, $res ) {
function packwrite( $key, $pos, $res ) {
if ( isset( $this->packres[$key] ) ) {
$this->packres[$key] = $res ;
$this->packpos[$key] = $this->pos ;