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

Carbon deprecation messages #345

Closed
skeemer opened this issue Feb 18, 2025 · 1 comment
Closed

Carbon deprecation messages #345

skeemer opened this issue Feb 18, 2025 · 1 comment
Labels
bug dependencies Pull requests that update a dependency file

Comments

@skeemer
Copy link

skeemer commented Feb 18, 2025

Pint Version

1.20.0

PHP Version

8.4.3

Description

When running pint, I get a bunch of deprecation warnings.

PHP Deprecated:  Carbon\Traits\Date::getDaysFromStartOfWeek(): Implicitly marking parameter $weekStartsAt as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/nesbot/carbon/src/Carbon/Traits/Date.php on line 1394
PHP Deprecated:  Carbon\Traits\Date::setDaysFromStartOfWeek(): Implicitly marking parameter $weekStartsAt as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/nesbot/carbon/src/Carbon/Traits/Date.php on line 1412
PHP Deprecated:  Carbon\Traits\Date::utcOffset(): Implicitly marking parameter $minuteOffset as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/nesbot/carbon/src/Carbon/Traits/Date.php on line 1481
PHP Deprecated:  Carbon\Traits\Localization::locale(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/nesbot/carbon/src/Carbon/Traits/Localization.php on line 447
PHP Deprecated:  Carbon\Traits\Test::setDefaultTimezone(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/nesbot/carbon/src/Carbon/Traits/Test.php on line 203
PHP Deprecated:  Carbon\CarbonTimeZone::toOffsetName(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 158
PHP Deprecated:  Carbon\CarbonTimeZone::toOffsetTimeZone(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 172
PHP Deprecated:  Carbon\CarbonTimeZone::toRegionName(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 188
PHP Deprecated:  Carbon\CarbonTimeZone::toRegionTimeZone(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in phar:///var/www/html/vendor/laravel/pint/builds/pint/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 230

I know we're waiting on 8.4 features from https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/milestone/173, but can we get a build with the fixed Carbon package?

Steps To Reproduce

Run pint on PHP 8.4.

@crynobone
Copy link
Member

Fixed in 1.21.0

@crynobone crynobone added bug dependencies Pull requests that update a dependency file labels Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

2 participants