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:
parent
a4359c91e9
commit
b22021db3b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue