<?php
namespace App;
class EngineServiceProvider extends \Illuminate\Support\ServiceProvider
{
public function test(): void
{
echo 'test';
}
}
Output
<?php
declare(strict_types=1);
namespace App;
class EngineServiceProvider extends \Illuminate\Support\ServiceProvider
{
public function test(): void
{
echo 'test';
}
}
Expected Output
<?php
declare(strict_types=1);
namespace App;
use Illuminate\Support\ServiceProvider;
class EngineServiceProvider extends ServiceProvider
{
public function test(): void
{
echo 'test';
}
}
We currently run the latest PHP CS fixer version in your reported 1.15.0 version so right now we have no reason to believe this is a bug in Pint, sorry.
Pint Version
1.15.0
PHP Version
8.3.4
Description
Reopen https://github.com/laravel/pint/issues/100 fully_qualified_strict_types
The bug was fixed in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/4309, but it still does not work in the Pint.
Steps To Reproduce
Input
Output
Expected Output
pint.json