Skip to content

Commit bf9f7aa

Browse files
Include PHPStan Installer
1 parent 340a68d commit bf9f7aa

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

magento/Dockerfile-2.4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ RUN ./start-services && \
4444
php bin/magento indexer:reindex && \
4545
mkdir -p extensions && \
4646
composer config repositories.dev-extensions path extensions/* && \
47-
composer require --dev phpstan/phpstan:~1.7 bitexpert/phpstan-magento && \
47+
composer require --dev phpstan/phpstan bitexpert/phpstan-magento phpstan/extension-installer && \
4848
php scripts/apply-2.4-patches.php && \
4949
rm scripts/apply-2.4-patches.php && \
5050
rm scripts/downgrade-monolog.php && \

magento/scripts/allow-composer-plugins.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
'captainhook/plugin-composer',
55
'dealerdirect/phpcodesniffer-composer-installer',
66
'laminas/laminas-dependency-plugin',
7+
'phpstan/extension-installer',
78
'magento/*',
89
];
910

magento/scripts/install-phpstan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
$output = null;
2424
$code = null;
25-
exec('composer require --dev phpstan/phpstan:~1.0 bitexpert/phpstan-magento', $output, $code);
25+
exec('composer require --dev phpstan/phpstan:~1.0 bitexpert/phpstan-magento phpstan/extension-installer', $output, $code);
2626

2727
if ($code !== 0) {
2828
echo 'Unable to install PHPStan' . PHP_EOL;

0 commit comments

Comments
 (0)