Skip to content

Commit e36ebc1

Browse files
committed
fix: laravel_cloud not defined
1 parent e9bf20e commit e36ebc1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/laravel-test.sh

+6-5
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ LARAVEL_VERSION_CONSTRAINT="${1:-^9.0}"
66

77
echo "Install Laravel ${LARAVEL_VERSION_CONSTRAINT}"
88
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
1012

1113
echo "Add Larastan from source"
1214
composer config minimum-stability dev
1315
composer config repositories.0 '{ "type": "path", "url": "../larastan", "options": { "symlink": false } }'
1416
# No version information with "type":"path"
15-
composer require --dev "larastan/larastan:*"
16-
composer du -o
17+
composer require --dev --optimize-autoloader "larastan/larastan:*"
1718

1819
cat >phpstan.neon <<"EOF"
1920
includes:
@@ -26,7 +27,7 @@ EOF
2627

2728
echo "Test Laravel"
2829
vendor/bin/phpstan analyse
29-
cd -
3030

3131
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

0 commit comments

Comments
 (0)