Is it possible to change PHP version, that Trellis sites will actually use?
I’ve found pull request for upgrade to PHP 7.2: https://github.com/roots/trellis/pull/929. I’ve edited my local files manually and ran
vagrant reload --provision. Provisioning completed without any problems.
I’ve also set
"php": "~7.2" as a dependency in my
vagrant ssh shows
php --version as “PHP 7.2.1-1+ubuntu16.04.1+deb.sury.org+1”. In my “non-virtual” environment,
php --version prints
PHP 7.2.1 (cli). However when I print
phpversion() in code of my site, it still outputs
Did I miss something? Or does something in my “non-virtual” environment overwrites Trellis config?
Thanks in advance!