From: Vincent Zanotti Date: Sat, 3 Jan 2009 13:32:22 +0000 (+0100) Subject: Adds type information to the subclass-defined method 'fetch' of PlFeed, to ensure... X-Git-Tag: core/1.0.1~11^2~5 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;ds=sidebyside;h=adc69ced9c75421c5ee596fbd0a3426fffb9940c;p=platal.git Adds type information to the subclass-defined method 'fetch' of PlFeed, to ensure subclasses are considering $user as an object and not as an id. Signed-off-by: Vincent Zanotti --- diff --git a/classes/plfeed.php b/classes/plfeed.php index 78af758..916e574 100644 --- a/classes/plfeed.php +++ b/classes/plfeed.php @@ -69,7 +69,7 @@ abstract class PlFeed implements PlIterator /** Fetch the feed for the given user. */ - abstract protected function fetch($user); + abstract protected function fetch(PlUser &$user); public function next() {