Error after updating to v1.10.4
FaridAghili opened this issue ยท 12 comments
Pint Version
1.10.4
PHP Version
8.2.8
Description
I
I'm on Windows 11 and here is the error:
PHP Fatal error: Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, bool given in phar://C:/Users/farid/AppData/Roaming/Composer/vendor/laravel/pint/builds/pint/.box/src/Terminal.php:60
Stack trace:
#0 phar://C:/Users/farid/AppData/Roaming/Composer/vendor/laravel/pint/builds/pint/.box/src/Terminal.php(60): trim()
#1 phar://C:/Users/farid/AppData/Roaming/Composer/vendor/laravel/pint/builds/pint/.box/src/Terminal.php(31): HumbugBox436\KevinGH\RequirementChecker\Terminal::initDimensions()
#2 phar://C:/Users/farid/AppData/Roaming/Composer/vendor/laravel/pint/builds/pint/.box/src/Printer.php(28): HumbugBox436\KevinGH\RequirementChecker\Terminal->getWidth()
#3 phar://C:/Users/farid/AppData/Roaming/Composer/vendor/laravel/pint/builds/pint/.box/src/Checker.php(17): HumbugBox436\KevinGH\RequirementChecker\Printer->__construct()
#4 phar://C:/Users/farid/AppData/Roaming/Composer/vendor/laravel/pint/builds/pint/.box/bin/check-requirements.php(22): HumbugBox436\KevinGH\RequirementChecker\Checker::checkRequirements()
#5 C:\Users\farid\AppData\Roaming\Composer\vendor\laravel\pint\builds\pint(12): require('...')
#6 C:\Users\farid\AppData\Roaming\Composer\vendor\bin\pint(119): include('...')
#7 {main}
thrown in phar://C:/Users/farid/AppData/Roaming/Composer/vendor/laravel/pint/builds/pint/.box/src/Terminal.php on line 60
Steps To Reproduce
Just run Pint on a fresh Laravel project.
I've getting same error in Laravel v10.15.0 (PHP v8.2.8).
Same error here on Laravel Pint 1.10.4 on PHP 8.2.8.
Hi all. We're waiting until box-project/box#990 gets merged and tagged. Can't really do anything before that :/
I'm encountering that too today. Maybe you can downgrade it to 1.10.3 instead
Same error here on Laravel Pint 1.10.4 on PHP 8.1.10. I've also tried to downgrade it but the problem was not solved.
Same error here on Laravel Pint 1.10.4 on PHP 8.1.10. I've also tried to downgrade it but the problem was not solved.
@StephaneKuma Downgrade works for me.
Make sure you completely remove laravel pint
using "composer remove laravel/pint --dev" from composer
then install --- "composer require laravel/pint:1.10.3 --dev"
composer require laravel/pint:1.10.3 --dev
Thanks
I have just the same error:
the solution:
Make sure you completely remove laravel pint
using "composer remove laravel/pint --dev" from composer
then install --- "composer require laravel/pint:1.10.3 --dev"
Same issue just downgrade to the 1.10.3 version thanks guys
Fixed on Pint v1.10.5.