Docker >= 19.03.0+
Docker Compose >= 1.27.0+
Command docker-compose
should be available in terminal
Clone repository.
git clone https://github.com/sanfair/phpstan-rector-demo.git
Enter new folder.
cd phpstan-rector-demo
Install docker containers.
make
Install dependencies.
make php72 "composer install"
Execute script using specified php version.
make php71 "php src/index.php"
make php72 "php src/index.php"
make php74 "php src/index.php"
make php80 "php src/index.php"
Run PHPStan using specified php version.
make php72 "vendor/bin/phpstan"
make php74 "vendor/bin/phpstan"
make php80 "vendor/bin/phpstan"
Run Rector using specified php version.
make php72 "vendor/bin/rector --dry-run"
make php74 "vendor/bin/rector --dry-run"
make php80 "vendor/bin/rector --dry-run"