From b22bf1b43749f4c99beaa13fb9a83051668b123e Mon Sep 17 00:00:00 2001 From: nashe Date: Wed, 12 Jul 2017 16:32:09 +0100 Subject: Fix PHP notice "Only variables should be passed by reference in /Users/thomas/Workspace/moonmoon/app/classes/Planet.php on line 145" --- app/classes/Planet.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'app/classes') diff --git a/app/classes/Planet.php b/app/classes/Planet.php index baba7c1..aa323ee 100644 --- a/app/classes/Planet.php +++ b/app/classes/Planet.php @@ -133,14 +133,13 @@ class Planet $opml = OpmlManager::load($file); $opml_people = $opml->getPeople(); foreach ($opml_people as $opml_person){ - $this->addPerson( - new PlanetFeed( - $opml_person['name'], - $opml_person['feed'], - $opml_person['website'], - $opml_person['isDown'] - ) + $person = new PlanetFeed( + $opml_person['name'], + $opml_person['feed'], + $opml_person['website'], + $opml_person['isDown'] ); + $this->addPerson($person); } return count($opml_people); } -- cgit v1.2.1