You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Read a project's PHP version from .valetrc and .php-version #188
Flock only reads a project's PHP version from .flockrc. Projects coming from Valet or Herd have a .valetrc with [email protected] instead (written by valet isolate / herd isolate), and other tools such as the Symfony CLI read .php-version. Those files are often committed and shared with people who don't use Flock, so adding a .flockrc next to them means two files saying the same thing.
For Node, Flock already does this: .nvmrc and .node-version count as pinned, with .flockrc winning over them.
The solution you'd like
Treat .valetrc ([email protected], php=X.Y) and .php-version as pinned PHP versions, looked up upwards like .flockrc, with php= in .flockrc taking precedence. flock isolated and Settings → Sites could show the file a version comes from, as they do for .nvmrc.
Alternatives you've considered
Adding a .flockrc to every project, which duplicates the version.
Running flock isolate php X.Y per project from a script that parses .valetrc, which only works on one machine and drifts when the project changes its version.
This is narrower than #104 (migrating from other tools): it's about reading these files on an ongoing basis, not a one-time import.
Activity
onairmarc commentedon Nov 18, 2026
Agreed, we should be looking for these files. I'll implement this in the following priority: