You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing a ton of deprecation warnings while testing on CLI.
See logs below.
GPT is recommending that HasTags.php be updated to
Change: public static function scopeWithAllTags($query, $tags, $type = null)
To: public static function scopeWithAllTags($query, $tags, ?string $type = null)
PHP Deprecated: Spatie\Tags\HasTags::tagsWithType(): Implicitly marking parameter $type as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/spatie/laravel-tags/src/HasTags.php on line 162
PHP Deprecated: Spatie\Tags\HasTags::attachTags(): Implicitly marking parameter $type as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/spatie/laravel-tags/src/HasTags.php on line 167
PHP Deprecated: Spatie\Tags\HasTags::hasTag(): Implicitly marking parameter $type as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/spatie/laravel-tags/src/HasTags.php on line 303
Deprecated: Spatie\Tags\HasTags::scopeWithAllTags(): Implicitly marking parameter $type as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/spatie/laravel-tags/src/HasTags.php on line 89
Deprecated: Spatie\Tags\HasTags::scopeWithAnyTags(): Implicitly marking parameter $type as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/spatie/laravel-tags/src/HasTags.php on line 105
Deprecated: Spatie\Tags\HasTags::scopeWithoutTags(): Implicitly marking parameter $type as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/spatie/laravel-tags/src/HasTags.php on line 120
Deprecated: Spatie\Tags\HasTags::tagsWithType(): Implicitly marking parameter $type as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/spatie/laravel-tags/src/HasTags.php on line 162
Deprecated: Spatie\Tags\HasTags::attachTags(): Implicitly marking parameter $type as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/spatie/laravel-tags/src/HasTags.php on line 167
Deprecated: Spatie\Tags\HasTags::hasTag(): Implicitly marking parameter $type as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/spatie/laravel-tags/src/HasTags.php on line 303
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Using latest stable release on PHP 8.4.x
I'm seeing a ton of deprecation warnings while testing on CLI.
See logs below.
GPT is recommending that HasTags.php be updated to
Change:
public static function scopeWithAllTags($query, $tags, $type = null)
To:
public static function scopeWithAllTags($query, $tags, ?string $type = null)
Beta Was this translation helpful? Give feedback.
All reactions