Skip to content

Conversation

@nunomaduro
Copy link

@nunomaduro nunomaduro commented Jan 8, 2026

yo, this pull request adds laravel pint as a .php formatter, and it only runs if it’s explicitly specified in composer.json, as expected.

note: although pint is under the laravel organization, it’s framework-agnostic and works with any php project.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

async enabled() {
const items = await Filesystem.findUp("composer.json", Instance.directory, Instance.worktree)
for (const item of items) {
const json = await Bun.file(item).json()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just to be defensive maybe do a .catch(() => undefined) and return false if json is undefined?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rekram1-node there are two occurrences of code exactly like this in this file, and neither of them does that check. so i was just trying to be consistent. do you still want me to apply that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants