Skip to content

Conversation

@drbyte
Copy link
Contributor

@drbyte drbyte commented Jan 4, 2020

Fixes #756

Previously if php was installed as just php (the default Homebrew alias), Valet would not detect which PHP version was actually installed, and therefore valet use might do incorrect or unnecessary installations/links/etc.

NOTE: This does NOT "convert" existing php alias to a numbered version. It merely accepts it as-is, but notes its version in an attempt to avoid extra installations.

NOTE: Specifally tested with PHP 7.4 and 7.3. No promises about old 5.6, etc aliases.

Fixes laravel#756

Previously if `php` was installed as just `php` (the default Homebrew alias), Valet would not detect *which* PHP version was actually installed, and therefore `valet use` might do incorrect or unnecessary installations/links/etc.

NOTE: This does NOT "convert" existing `php` alias to a numbered version. It merely accepts it as-is, but notes its version in an attempt to avoid extra installations.

*NOTE: Specifally tested with PHP 7.4 and 7.3. No promises about old 5.6, etc aliases.*
@drbyte
Copy link
Contributor Author

drbyte commented Jan 4, 2020

Note: Best to merge bugfix #894 before testing this.

@mattstauffer mattstauffer merged commit 775fba9 into laravel:master Jan 6, 2020
@mattstauffer
Copy link
Collaborator

I love it. The whole concept of php existing separately from php@whatever kills me.

@drbyte drbyte deleted the phpdetect branch January 6, 2020 18:58
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.

Brew::installed() fails to correctly parse installed version of PHP if "php" is installed with no version constraint

2 participants