Skip to content

Commit

Permalink
Upgrade PHP dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
GeniJaho committed Dec 12, 2024
1 parent 54caa4e commit 0fd6c48
Show file tree
Hide file tree
Showing 11 changed files with 835 additions and 779 deletions.
4 changes: 1 addition & 3 deletions app/Actions/Fortify/UpdateUserProfileInformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use App\Jobs\MinifyProfilePhoto;
use App\Models\User;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Validator;
use Illuminate\Validation\Rule;
Expand Down Expand Up @@ -34,8 +33,7 @@ public function update(User $user, array $input): void
MinifyProfilePhoto::dispatch($user);
}

if ($input['email'] !== $user->email &&
$user instanceof MustVerifyEmail) {
if ($input['email'] !== $user->email) {
$this->updateVerifiedUser($user, $input);
} else {
$user->forceFill([
Expand Down
7 changes: 4 additions & 3 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* @property UserSettings $settings
* @property Collection<int, Team> $ownedTeams
* @property Collection<int, TagShortcut> $tagShortcuts
* @property-read string $profile_photo_url
*/
class User extends Authenticatable implements FilamentUser, MustVerifyEmail
{
Expand All @@ -42,7 +43,7 @@ class User extends Authenticatable implements FilamentUser, MustVerifyEmail
/**
* The attributes that should be hidden for serialization.
*
* @var array<int, string>
* @var list<string>
*/
protected $hidden = [
'password',
Expand All @@ -54,7 +55,7 @@ class User extends Authenticatable implements FilamentUser, MustVerifyEmail
/**
* The accessors to append to the model's array form.
*
* @var array<int, string>
* @var list<string>
*/
protected $appends = [
'profile_photo_url',
Expand Down Expand Up @@ -104,7 +105,7 @@ public function updateProfilePhoto(UploadedFile $photo, string $storagePath = 'p
/**
* @return Attribute<string|null, never>
*/
public function profilePhotoUrl(): Attribute
protected function profilePhotoUrl(): Attribute
{
return Attribute::get(function () {
// path can sometimes be a full URL from Google or Facebook
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
"tightenco/ziggy": "^1.0"
},
"require-dev": {
"driftingly/rector-laravel": "^1.0",
"driftingly/rector-laravel": "^2.0",
"fakerphp/faker": "^1.9.1",
"knuckleswtf/scribe": "^4.30",
"larastan/larastan": "^2.0",
"larastan/larastan": "^3.0",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
Expand All @@ -37,7 +37,7 @@
"pestphp/pest-plugin-laravel": "^3.0",
"pestphp/pest-plugin-type-coverage": "^3.1",
"pestphp/pest-plugin-watch": "^3.0",
"rector/rector": "^1.0",
"rector/rector": "^2.0",
"spatie/laravel-ignition": "^2.0"
},
"autoload": {
Expand Down
Loading

0 comments on commit 0fd6c48

Please sign in to comment.