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:
@@ -37,10 +37,10 @@ abstract class Award
|
||||
*/
|
||||
|
||||
/** @var \App\Models\Award|null */
|
||||
protected $award;
|
||||
protected ?AwardModel $award;
|
||||
|
||||
/** @var \App\Models\User|null */
|
||||
protected $user;
|
||||
protected ?User $user;
|
||||
|
||||
public function __construct(AwardModel $award = null, User $user = null)
|
||||
{
|
||||
@@ -69,9 +69,9 @@ abstract class Award
|
||||
/**
|
||||
* Add the award to this user, if they don't already have it
|
||||
*
|
||||
* @return bool|UserAward
|
||||
* @return bool|UserAward|null
|
||||
*/
|
||||
protected function addAward()
|
||||
protected function addAward(): bool|UserAward|null
|
||||
{
|
||||
$w = [
|
||||
'user_id' => $this->user->id,
|
||||
|
||||
Reference in New Issue
Block a user