Skip to content

Commit

Permalink
Include PHPStan Installer
Browse files Browse the repository at this point in the history
  • Loading branch information
michielgerritsen committed Sep 11, 2024
1 parent 340a68d commit bf9f7aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion magento/Dockerfile-2.4
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ RUN ./start-services && \
php bin/magento indexer:reindex && \
mkdir -p extensions && \
composer config repositories.dev-extensions path extensions/* && \
composer require --dev phpstan/phpstan:~1.7 bitexpert/phpstan-magento && \
composer require --dev phpstan/phpstan bitexpert/phpstan-magento phpstan/extension-installer && \
php scripts/apply-2.4-patches.php && \
rm scripts/apply-2.4-patches.php && \
rm scripts/downgrade-monolog.php && \
Expand Down
1 change: 1 addition & 0 deletions magento/scripts/allow-composer-plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
'captainhook/plugin-composer',
'dealerdirect/phpcodesniffer-composer-installer',
'laminas/laminas-dependency-plugin',
'phpstan/extension-installer',
'magento/*',
];

Expand Down
2 changes: 1 addition & 1 deletion magento/scripts/install-phpstan.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

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

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

0 comments on commit bf9f7aa

Please sign in to comment.