Skip to content

Commit

Permalink
PHP doesn't allow abstract static functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwire committed Feb 19, 2018
1 parent 88c2f99 commit 634f8f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CRM/Core/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public static function taskTitles() {
/**
* Show tasks selectively based on the permission level
* of the user
* This function should be call parent::corePermissionedTaskTitles
* This function should be overridden by the child class which would normally call parent::corePermissionedTaskTitles
*
* @param int $permission
* @param array $params
Expand All @@ -129,7 +129,9 @@ public static function taskTitles() {
* @return array
* set of tasks that are valid for the user
*/
abstract public static function permissionedTaskTitles($permission, $params);
public static function permissionedTaskTitles($permission, $params) {
return self::corePermissionedTaskTitles(self::tasks(), $permission, $params);
}

/**
* Show tasks selectively based on the permission level
Expand Down

0 comments on commit 634f8f0

Please sign in to comment.