Permalink
Browse files

MINOR: Fix E_STRICT notices in php-peg

  • Loading branch information...
1 parent c5aa074 commit 501c8f3f31504fe544265fa0b2e1881568454b63 Andrew O'Neil committed Apr 11, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 thirdparty/php-peg/Parser.php
View
6 thirdparty/php-peg/Parser.php
@@ -269,16 +269,16 @@ function packwrite( $key, $pos, $res ) {
* @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 ;

0 comments on commit 501c8f3

Please sign in to comment.