Laravel 9 Update (#1413)
Update to Laravel 9 and PHP 8+ Co-authored-by: B.Fatih KOZ <fatih.koz@gmail.com>
This commit is contained in:
@@ -22,12 +22,12 @@ use PharData;
|
||||
|
||||
class ModuleService extends Service
|
||||
{
|
||||
protected static $adminLinks = [];
|
||||
protected static array $adminLinks = [];
|
||||
|
||||
/**
|
||||
* @var array 0 == logged out, 1 == logged in
|
||||
*/
|
||||
protected static $frontendLinks = [
|
||||
protected static array $frontendLinks = [
|
||||
0 => [],
|
||||
1 => [],
|
||||
];
|
||||
@@ -40,7 +40,7 @@ class ModuleService extends Service
|
||||
* @param string $icon
|
||||
* @param bool $logged_in
|
||||
*/
|
||||
public function addFrontendLink(string $title, string $url, string $icon = 'pe-7s-users', $logged_in = true)
|
||||
public function addFrontendLink(string $title, string $url, string $icon = 'pe-7s-users', bool $logged_in = true)
|
||||
{
|
||||
self::$frontendLinks[$logged_in][] = [
|
||||
'title' => $title,
|
||||
@@ -56,7 +56,7 @@ class ModuleService extends Service
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getFrontendLinks($logged_in): array
|
||||
public function getFrontendLinks(mixed $logged_in): array
|
||||
{
|
||||
return self::$frontendLinks[$logged_in];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user