Closed endelwar closed 6 years ago
Thanks!
I wish the 7.2 current stable php wasn't so hardcoded but I'm not sure how this could be pulled from brew. Any idea?
Maybe parsing output of brew list php | grep -E "/bin/php$"
?
/usr/local/Cellar/php/7.2.4_1/bin/php
A simple regex can take out 7.2 from path
It was simpler to check for /usr/local/opt/php/bin/php
and get PHP_VERSION out of it, what do you think?
Awesome
Tested with fresh install of php 5.6, 7.1 and 7.2