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

Error after updating to v1.10.4 #195

Closed
FaridAghili opened this issue Jul 11, 2023 · 12 comments
Closed

Error after updating to v1.10.4 #195

FaridAghili opened this issue Jul 11, 2023 · 12 comments
Assignees
Labels

Comments

@FaridAghili
Copy link

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.

@nunomaduro nunomaduro self-assigned this Jul 11, 2023
@logue
Copy link

logue commented Jul 12, 2023

I've getting same error in Laravel v10.15.0 (PHP v8.2.8).

@romaldyminaya
Copy link

I have just the same error:

image

@inckmo
Copy link

inckmo commented Jul 12, 2023

Same Error after update Pint

Laravel Pint 1.10.4 on PHP 8.2.8


image

@MGeurts
Copy link

MGeurts commented Jul 12, 2023

Same error here on Laravel Pint 1.10.4 on PHP 8.2.8.

@driesvints driesvints added the bug label Jul 12, 2023
@driesvints
Copy link
Member

Hi all. We're waiting until box-project/box#990 gets merged and tagged. Can't really do anything before that :/

@wahyupratama18
Copy link

I'm encountering that too today. Maybe you can downgrade it to 1.10.3 instead

@stephanekuma
Copy link

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.

@inckmo
Copy link

inckmo commented Jul 13, 2023

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"

@kmaphane
Copy link

composer require laravel/pint:1.10.3 --dev

Thanks

@wilderTorres18
Copy link

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"

@MohammedElattar
Copy link

Same issue just downgrade to the 1.10.3 version thanks guys

@nunomaduro
Copy link
Member

Fixed on Pint v1.10.5.

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

No branches or pull requests