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:
Nabeel S
2022-03-14 11:45:18 -04:00
committed by GitHub
parent 00bf18c225
commit 12848091a2
340 changed files with 6130 additions and 4502 deletions

View File

@@ -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];
}