← Back to team overview

mahara-contributors team mailing list archive

[Bug 1337547] Re: Static function 'X' should not be abstract

 

** This bug is no longer a duplicate of bug 1268790
   Fix E_STRICT "strict standards" errors

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1337547

Title:
  Static function 'X' should not be abstract

Status in Mahara ePortfolio:
  Confirmed

Bug description:
  I noticed these errors for mahara:

  
  PHP Strict Standards:  Static function PluginArtefact::get_artefact_types() should not be abstract in /var/www/mahara/htdocs/artefact/lib.php on line 31
  PHP Strict Standards:  Static function PluginArtefact::get_block_types() should not be abstract in /var/www/mahara/htdocs/artefact/lib.php on line 41
  PHP Strict Standards:  Static function PluginArtefact::get_plugin_name() should not be abstract in /var/www/mahara/htdocs/artefact/lib.php on line 49
  PHP Strict Standards:  Static function ArtefactType::get_icon() should not be abstract in /var/www/mahara/htdocs/artefact/lib.php on line 767
  PHP Strict Standards:  Static function ArtefactType::is_singular() should not be abstract in /var/www/mahara/htdocs/artefact/lib.php on line 784
  PHP Strict Standards:  Static function ArtefactType::get_links() should not be abstract in /var/www/mahara/htdocs/artefact/lib.php on line 793
  PHP Strict Standards:  Static function PluginBlocktype::get_title() should not be abstract in /var/www/mahara/htdocs/blocktype/lib.php on line 55
  PHP Strict Standards:  Static function PluginBlocktype::get_description() should not be abstract in /var/www/mahara/htdocs/blocktype/lib.php on line 65
  PHP Strict Standards:  Static function PluginBlocktype::get_categories() should not be abstract in /var/www/mahara/htdocs/blocktype/lib.php on line 67
  PHP Strict Standards:  Static function PluginBlocktype::render_instance() should not be abstract in /var/www/mahara/htdocs/blocktype/lib.php on line 82
  PHP Strict Standards:  Static function PluginBlocktype::artefactchooser_element() should not be abstract in /var/www/mahara/htdocs/blocktype/lib.php on line 115
  PHP Strict Standards:  Static function PluginExport::get_title() should not be abstract in /var/www/mahara/htdocs/export/lib.php on line 95
  PHP Strict Standards:  Static function PluginExport::get_description() should not be abstract in /var/www/mahara/htdocs/export/lib.php on line 100
  PHP Strict Standards:  Static function GroupType::allowed_join_types() should not be abstract in /var/www/mahara/htdocs/grouptype/lib.php on line 62
  PHP Strict Standards:  Static function GroupType::user_allowed_join_types() should not be abstract in /var/www/mahara/htdocs/grouptype/lib.php on line 64
  PHP Strict Standards:  Static function GroupType::get_roles() should not be abstract in /var/www/mahara/htdocs/grouptype/lib.php on line 85
  PHP Strict Standards:  Static function GroupType::get_view_moderating_roles() should not be abstract in /var/www/mahara/htdocs/grouptype/lib.php on line 87
  PHP Strict Standards:  Static function GroupType::get_view_assessing_roles() should not be abstract in /var/www/mahara/htdocs/grouptype/lib.php on line 89
  PHP Strict Standards:  Static function GroupType::default_artefact_rolepermissions() should not be abstract in /var/www/mahara/htdocs/grouptype/lib.php on line 95
  PHP Strict Standards:  Static function LeapImportArtefactPlugin::get_import_strategies_for_entry() should not be abstract in /var/www/mahara/htdocs/import/leap/lib.php on line 2056
  PHP Strict Standards:  Static function LeapImportArtefactPlugin::import_using_strategy() should not be abstract in /var/www/mahara/htdocs/import/leap/lib.php on line 2265
  PHP Strict Standards:  Static function PluginImport::validate_transported_data() should not be abstract in /var/www/mahara/htdocs/import/lib.php on line 190
  PHP Strict Standards:  Static function PluginInteraction::instance_config_form() should not be abstract in /var/www/mahara/htdocs/interaction/lib.php on line 28
  PHP Strict Standards:  Static function PluginInteraction::instance_config_save() should not be abstract in /var/www/mahara/htdocs/interaction/lib.php on line 33
  PHP Strict Standards:  Static function InteractionInstance::get_plugin() should not be abstract in /var/www/mahara/htdocs/interaction/lib.php on line 182
  PHP Strict Standards:  Declaration of ActivityTypeUsermessage::update_url() should be compatible with ActivityType::update_url() in /var/www/mahara/htdocs/lib/activity.php on line 1123
  PHP Strict Standards:  Static function Plugin::get_plugintype_name() should not be abstract in /var/www/mahara/htdocs/lib/mahara.php on line 1754
  PHP Strict Standards:  Static function PluginNotification::notify_user() should not be abstract in /var/www/mahara/htdocs/notification/lib.php on line 20
  PHP Strict Standards:  Static function PluginSearch::search_user() should not be abstract in /var/www/mahara/htdocs/search/lib.php on line 96
  PHP Strict Standards:  Static function PluginSearch::search_group() should not be abstract in /var/www/mahara/htdocs/search/lib.php on line 133
  PHP Strict Standards:  Static function PluginSearch::group_search_user() should not be abstract in /var/www/mahara/htdocs/search/lib.php on line 142
  PHP Strict Standards:  Static function PluginSearch::self_search() should not be abstract in /var/www/mahara/htdocs/search/lib.php on line 172

  --------------------------------------------

  By the looks of things the way we are designing our abstract functions
  is not quite correct. Looking at
  http://www.php.net/manual/en/migration52.incompatible.php

  "Dropped abstract static class functions. Due to an oversight, PHP
  5.0.x and 5.1.x allowed abstract static functions in classes. As of
  PHP 5.2.x, only interfaces can have them."

  And looking at http://www.php.net/manual/en/language.oop5.late-static-
  bindings.php

  We may need to switch to late static bindings (or something else)

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1337547/+subscriptions


References