Skip to content

Commit 48207b3

Browse files
committed
Add .phprc file; Add php switcher to composer.json
1 parent 31b61df commit 48207b3

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.phprc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/usr/bin/php8.3

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
"bin/php-container"
5050
],
5151
"scripts": {
52+
53+
"php:use": "sudo update-alternatives --set php \"$(cat .phprc)\" && echo && echo -n \"Switched to version: \" && php -r \"echo PHP_VERSION;\" && echo",
54+
5255
"ixno:header": "bin/header/ixno",
5356

5457
"phpmnd:all": "bin/header/phpmnd 'vendor/bin/phpmnd run src tests --progress --hint --include-numeric-string --ignore-funcs=round,sleep' 'all'",

0 commit comments

Comments
 (0)