Skip to content
This repository
Browse code

MINOR: Fix E_STRICT notices in php-peg

  • Loading branch information...
commit 501c8f3f31504fe544265fa0b2e1881568454b63 1 parent c5aa074
Andrew O'Neil authored April 11, 2012

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  thirdparty/php-peg/Parser.php
6  thirdparty/php-peg/Parser.php
@@ -269,16 +269,16 @@ function packwrite( $key, $pos, $res ) {
269 269
  * @author Hamish Friedlander
270 270
  */
271 271
 class ConservativePackrat extends Parser {
272  
-	function packhas( $key ) {
  272
+	function packhas( $key, $pos ) {
273 273
 		return isset( $this->packres[$key] ) && $this->packres[$key] !== NULL ;
274 274
 	}
275 275
 
276  
-	function packread( $key ) {
  276
+	function packread( $key, $pos ) {
277 277
 		$this->pos = $this->packpos[$key];
278 278
 		return $this->packres[$key] ;
279 279
 	}
280 280
 
281  
-	function packwrite( $key, $res ) {
  281
+	function packwrite( $key, $pos, $res ) {
282 282
 		if ( isset( $this->packres[$key] ) ) {
283 283
 			$this->packres[$key] = $res ;
284 284
 			$this->packpos[$key] = $this->pos ;

0 notes on commit 501c8f3

Please sign in to comment.
Something went wrong with that request. Please try again.