Skip to content

Commit 0ce9bf0

Browse files
committed
Convert self:: to static:: to allow late binding
This fixes a bug in php 5.3 where the static method in a child class would not get called.
1 parent fa4b43a commit 0ce9bf0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

data-sources/datasource.remote.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,9 @@ public static function fetch($url, $format, $timeout)
805805
$ch->setopt('HTTPHEADER', array('Accept: ' . $accepts));
806806
}
807807

808-
self::prepareGateway($ch);
808+
// use static here to allow late static binding
809+
// see http://php.net/manual/en/language.oop5.late-static-bindings.php
810+
static::prepareGateway($ch);
809811

810812
return array(
811813
trim($ch->exec()),

0 commit comments

Comments
 (0)