Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning Deprecated when run ./vendor/bin/pint #316

Closed
yanbrasiliano opened this issue Dec 10, 2024 · 1 comment
Closed

Warning Deprecated when run ./vendor/bin/pint #316

yanbrasiliano opened this issue Dec 10, 2024 · 1 comment

Comments

@yanbrasiliano
Copy link

yanbrasiliano commented Dec 10, 2024

Pint Version

1.18.3

PHP Version

8.4.1

Description

This is a question, not a bug (maybe).
I'm running pint to standardize my project and when I apply it, it gives me the warnings below, but my application is all up-to-date and this seems to me to be deprecations of third-party packages. Is this common? Is there a solution or is it a lack of compatibility with the php version?

The warnings:

Deprecated: optional(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/illuminate/support/helpers.php on line 190

Deprecated: with(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/illuminate/support/helpers.php on line 430

Deprecated: Illuminate\Container\Container::beforeResolving(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/illuminate/container/Container.php on line 1151

Deprecated: Illuminate\Container\Container::resolving(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/illuminate/container/Container.php on line 1171

Deprecated: Illuminate\Container\Container::afterResolving(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/illuminate/container/Container.php on line 1191

Deprecated: Illuminate\Container\Container::setInstance(): Implicitly marking parameter $container as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/illuminate/container/Container.php on line 1430

Deprecated: Illuminate\Contracts\Container\Container::beforeResolving(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/illuminate/contracts/Container/Container.php on line 200

Deprecated: Illuminate\Contracts\Container\Container::resolving(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/illuminate/contracts/Container/Container.php on line 209

Deprecated: Illuminate\Contracts\Container\Container::afterResolving(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/illuminate/contracts/Container/Container.php on line 218

Deprecated: Illuminate\Support\Traits\Conditionable::when(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/illuminate/conditionable/Traits/Conditionable.php on line 21

Deprecated: Illuminate\Support\Traits\Conditionable::when(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/illuminate/conditionable/Traits/Conditionable.php on line 21

Deprecated: Illuminate\Support\Traits\Conditionable::unless(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/illuminate/conditionable/Traits/Conditionable.php on line 53

Deprecated: Illuminate\Support\Traits\Conditionable::unless(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/illuminate/conditionable/Traits/Conditionable.php on line 53

Deprecated: Illuminate\Support\Arr::first(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/illuminate/collections/Arr.php on line 188

Deprecated: Illuminate\Support\Arr::last(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/illuminate/collections/Arr.php on line 219

Deprecated: Illuminate\Events\Dispatcher::__construct(): Implicitly marking parameter $container as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/illuminate/events/Dispatcher.php on line 75

Steps To Reproduce

  1. Run ./vendor/bin/pint
  2. Observe the terminal and the warnings output;
@crynobone
Copy link
Member

Duplicate of #304

Let's just monitor the status using the posted PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants