Pint Version
1.30.0
PHP Version
8.5.8
Description
When attempting to use pint --blade, I am getting the following error message:
PhpCsFixer\Preg::match(): Argument #2 ($subject) must be of type string, false given, called in phar:///Users/matt/Developer/Sites/my-app
It seems that I can get this to work properly if I remove the following rule from my pint.json:
"psr_autoloading": {
"dir": "app"
},
With that rule removed, I don't get the error anymore and formatting seems to be working as expected.
Steps To Reproduce
- Create a new Laravel app
- Add a pint.json with the following:
{
"preset": "laravel",
"rules": {
"psr_autoloading": {
"dir": "app"
}
}
}
- Run
pint --blade and observe the error.
Pint Version
1.30.0
PHP Version
8.5.8
Description
When attempting to use
pint --blade, I am getting the following error message:PhpCsFixer\Preg::match(): Argument #2 ($subject) must be of type string, false given, called in phar:///Users/matt/Developer/Sites/my-appIt seems that I can get this to work properly if I remove the following rule from my
pint.json:With that rule removed, I don't get the error anymore and formatting seems to be working as expected.
Steps To Reproduce
{ "preset": "laravel", "rules": { "psr_autoloading": { "dir": "app" } } }pint --bladeand observe the error.