Fix bug #3538655 with a workaround, revert this commit when PMA drops PHP5.2 support

This commit is contained in:
J.M 2012-06-28 14:46:11 +02:00 committed by Alex Marin
parent db209d57d8
commit dd2cf47fde

View File

@ -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;
}
}
?>
?>