Commit e36ebc1 1 parent e9bf20e commit e36ebc1 Copy full SHA for e36ebc1
File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,15 @@ LARAVEL_VERSION_CONSTRAINT="${1:-^9.0}"
6
6
7
7
echo " Install Laravel ${LARAVEL_VERSION_CONSTRAINT} "
8
8
composer create-project --quiet --prefer-dist " laravel/laravel:${LARAVEL_VERSION_CONSTRAINT} " ../laravel
9
- cd ../laravel/
9
+ cd ../laravel
10
+ SAMPLE_APP_DIR=" $( pwd) "
11
+ composer show --direct
10
12
11
13
echo " Add Larastan from source"
12
14
composer config minimum-stability dev
13
15
composer config repositories.0 ' { "type": "path", "url": "../larastan", "options": { "symlink": false } }'
14
16
# No version information with "type":"path"
15
- composer require --dev " larastan/larastan:*"
16
- composer du -o
17
+ composer require --dev --optimize-autoloader " larastan/larastan:*"
17
18
18
19
cat > phpstan.neon << "EOF "
19
20
includes:
26
27
27
28
echo " Test Laravel"
28
29
vendor/bin/phpstan analyse
29
- cd -
30
30
31
31
echo " Test Laravel from other working directories"
32
- ../laravel/vendor/bin/phpstan analyse --configuration=../laravel/phpstan.neon ../laravel/app
32
+ cd /tmp
33
+ ${SAMPLE_APP_DIR} /vendor/bin/phpstan analyse --configuration=${SAMPLE_APP_DIR} /phpstan.neon
You can’t perform that action at this time.
0 commit comments