diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9335e76b..f71946f7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.1 + php-version: 8.2 extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite tools: composer:v2 coverage: none diff --git a/app/Traits/HasProfilePhoto.php b/app/Traits/HasProfilePhoto.php index 9ca91fa2..b26ec083 100644 --- a/app/Traits/HasProfilePhoto.php +++ b/app/Traits/HasProfilePhoto.php @@ -17,7 +17,7 @@ public function getProfilePhotoUrlAttribute(): ?string if (! in_array($this->avatar_type, ['avatar', 'storage'])) { /** @var SocialAccount $social_avatar */ $social_avatar = $this->providers->firstWhere('provider', $this->avatar_type); - + // @phpstan-ignore-next-line return $social_avatar ? $social_avatar->avatar : $this->defaultProfilePhotoUrl(); } diff --git a/database/migrations/2022_07_13_195828_create_health_tables.php b/database/migrations/2022_07_13_195828_create_health_tables.php deleted file mode 100644 index eb0232ef..00000000 --- a/database/migrations/2022_07_13_195828_create_health_tables.php +++ /dev/null @@ -1,35 +0,0 @@ -getTable(); - - Schema::create($tableName, function (Blueprint $table) { - $table->id(); - - $table->string('check_name'); - $table->string('check_label'); - $table->string('status'); - $table->text('notification_message')->nullable(); - $table->string('short_summary')->nullable(); - $table->json('meta'); - $table->timestamp('ended_at'); - $table->uuid('batch'); - - $table->timestamps(); - }); - - Schema::table($tableName, function (Blueprint $table) { - $table->index('created_at'); - $table->index('batch'); - }); - } -};