mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: Fix E_STRICT notices in php-peg
This commit is contained in:
parent
c5aa074bff
commit
501c8f3f31
6
thirdparty/php-peg/Parser.php
vendored
6
thirdparty/php-peg/Parser.php
vendored
@ -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 ;
|
||||
|
Loading…
Reference in New Issue
Block a user