We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e55334 commit b2fe5e1Copy full SHA for b2fe5e1
phpstan-action.bash
@@ -6,7 +6,14 @@ echo "Docker tag: $docker_tag" >> output.log 2>&1
6
7
if [ "$ACTION_VERSION" = "composer" ]
8
then
9
- ACTION_PHPSTAN_PATH="vendor/bin/phpstan"
+ VENDOR_BIN="vendor/bin/phpstan"
10
+ if test -f "$VENDOR_BIN"
11
+ then
12
+ ACTION_PHPSTAN_PATH="$VENDOR_BIN"
13
+ else
14
+ echo "Trying to use version installed by Composer, but there is no file at $ACTION_PHPSTAN_PATH"
15
+ exit 1
16
+ fi
17
fi
18
19
if [ -z "$ACTION_PHPSTAN_PATH" ]
0 commit comments