File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
.PHONY : test test-report test-fix update-compatibility-patch
2
2
3
- PHP_74_OR_NEWER = ` php -r " echo (int) version_compare(PHP_VERSION, '7.4', '>=');" `
3
+ PHP_74_OR_NEWER: = $( shell php -r "echo (int) version_compare(PHP_VERSION, '7.4', '>=');")
4
4
5
5
test : test-report test-fix
6
6
@@ -17,10 +17,11 @@ test-fix: vendor
17
17
18
18
update-compatibility-patch :
19
19
@git apply tests/php-compatibility.patch
20
- @echo -e " Please open your editor and apply your changes\n"
20
+ @printf " Please open your editor and apply your changes\n"
21
21
@until [ " $$ {compatibility_resolved}" == " y" ]; do read -p " Have finished your changes (y|n)? " compatibility_resolved; done && compatibility_resolved=
22
22
@git diff -- tests/expected_report.txt tests/fixed > .tmp-patch && mv .tmp-patch tests/php-compatibility.patch && git apply -R tests/php-compatibility.patch
23
23
@git commit -m ' Update compatibility patch' tests/php-compatibility.patch
24
24
25
25
vendor : composer.json
26
26
composer update
27
+ touch -c vendor
You can’t perform that action at this time.
0 commit comments