Skip to content

[13.x] Added docs for valet reading composer.json#11301

Draft
indykoning wants to merge 1 commit into
laravel:13.xfrom
indykoning:patch-1
Draft

[13.x] Added docs for valet reading composer.json#11301
indykoning wants to merge 1 commit into
laravel:13.xfrom
indykoning:patch-1

Conversation

@indykoning

@indykoning indykoning commented Jul 22, 2026

Copy link
Copy Markdown

Docs for: laravel/valet#1554

This PR adds support to fall back to the php version defined in the composer.json
Due to using composer/semver all combination of php requirements are possible (though the match is not exact as we only care about the x.x version, no patch versions)

Requirements like ^8.3, 8.3, <8.5, >=8.4 are all supported.
Priority is still given to the valetrc files, and we pick the lowest matching version so ^8.3 could not suddenly switch to 8.6 once it comes out.
This is the same way rectorphp/rector handles php constraints.

@indykoning indykoning changed the title Added docs for valet reading composer.json [13.x] Added docs for valet reading composer.json Jul 22, 2026
@taylorotwell
taylorotwell marked this pull request as draft July 22, 2026 13:19
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.

1 participant