Skip to content

Laravel code style formats differently than Pint #734

@gyulavoros

Description

@gyulavoros

We have a project setup with Pint configured as a git hook, so it reformats changed files automatically. We also have the DEVSENSE extension configured in VS Code to format PHP files automatically on save. We use the "php.format.codeStyle": "Laravel" setting. The extension applies different formatting rules, that Pint enforces, which means it's a continuous whack-a-mole between Pint and the extension, as they overwrite each other's changes.

One example would be Laravel migrations, where the extension produce:

return new class extends Migration {

however, Pint would format

return new class extends Migration
{

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions