Minor continuity change

Let's save this for L6 upgrade. Although PHP 7 partially support this, we should revisit once the PHP version is bumped + better support for it
This commit is contained in:
Samuel Georges 2019-12-07 11:37:06 +11:00
parent a4359c91e9
commit b22021db3b
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ trait PreferenceMaker
*
* @return array
*/
public function getUserPreferences(): array
public function getUserPreferences()
{
if (isset(self::$preferenceCache[$this->getPreferenceKey()])) {
return self::$preferenceCache[$this->getPreferenceKey()];
@ -112,7 +112,7 @@ trait PreferenceMaker
*
* @return string
*/
protected function getPreferenceKey(): string
protected function getPreferenceKey()
{
$controller = (property_exists($this, 'controller') && $this->controller)
? $this->controller