From dd2cf47fdeb990a45b34d5b321e46ee691f72a5f Mon Sep 17 00:00:00 2001 From: "J.M" Date: Thu, 28 Jun 2012 14:46:11 +0200 Subject: [PATCH] Fix bug #3538655 with a workaround, revert this commit when PMA drops PHP5.2 support --- libraries/plugins/PluginObserver.class.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/libraries/plugins/PluginObserver.class.php b/libraries/plugins/PluginObserver.class.php index 190f02d747..6e56e8d201 100644 --- a/libraries/plugins/PluginObserver.class.php +++ b/libraries/plugins/PluginObserver.class.php @@ -43,12 +43,19 @@ abstract class PluginObserver implements SplObserver * This method is called when any PluginManager to which the observer * is attached calls PluginManager::notify() * + * TODO Declare this function abstract, removing its body, + * as soon as we drop support for PHP 5.2.x. + * See bug #3538655. + * * @param SplSubject $subject The PluginManager notifying the observer * of an update. * * @return void */ - abstract public function update (SplSubject $subject); + public function update (SplSubject $subject) + { + throw new Exception('PluginObserver::update must be overridden in child classes.'); + } /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */ @@ -78,4 +85,4 @@ abstract class PluginObserver implements SplObserver $this->_pluginManager = $_pluginManager; } } -?> \ No newline at end of file +?>