diff --git a/.github/workflows/php.yml b/.github/workflows/php.yaml similarity index 88% rename from .github/workflows/php.yml rename to .github/workflows/php.yaml index a70b2c1..7f7b9db 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yaml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: true matrix: - php: [7.2, 7.3, 7.4] + php: [7.2, 7.3, 7.4, 8.1, 8.2, 8.3] name: PHP ${{ matrix.php }} @@ -16,10 +16,10 @@ jobs: - uses: actions/checkout@v1 - name: Setup PHP version - uses: shivammathur/setup-php@v1 + uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} - extension-csv: mbstring + extension-csv: mbst ring coverage: none - name: Check PHP version diff --git a/composer.json b/composer.json index 3f6312d..ff2b79f 100644 --- a/composer.json +++ b/composer.json @@ -12,14 +12,14 @@ "license": "MIT", "homepage": "https://github.com/fetzi/phpspec-watcher", "require": { - "php": "^7.2", + "php": "^7.2 || ^8.0", "clue/stdio-react": "^2.3", "jolicode/jolinotif": "^2.0.", "react/event-loop": "^1.1", - "symfony/console": "^4.0 || ^5.0", - "symfony/finder": "^4.0 || ^5.0", - "symfony/process": "^4.0 || ^5.0", - "symfony/yaml": "^4.0 || ^5.0" + "symfony/console": "^4.0 || ^5.0 || ^6.0 || ^7.0", + "symfony/finder": "^4.0 || ^5.0 || ^6.0 || ^7.0", + "symfony/process": "^4.0 || ^5.0 || ^6.0 || ^7.0", + "symfony/yaml": "^4.0 || ^5.0 || ^6.0 || ^7.0" }, "require-dev": { "phpunit/phpunit": "^8.4", diff --git a/src/Commands/InitCommand.php b/src/Commands/InitCommand.php index 06cc374..07e013e 100644 --- a/src/Commands/InitCommand.php +++ b/src/Commands/InitCommand.php @@ -16,7 +16,7 @@ protected function configure() ->setDescription('initializes the phpspec watcher configuration file in the current working directory.'); } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $output = new SymfonyStyle($input, $output); diff --git a/src/Commands/WatchCommand.php b/src/Commands/WatchCommand.php index cb8fbbb..b348610 100644 --- a/src/Commands/WatchCommand.php +++ b/src/Commands/WatchCommand.php @@ -19,7 +19,7 @@ protected function configure() ->setDescription('Watches for file changes and triggers phpspec tests'); } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $output = new SymfonyStyle($input, $output); $this->displayInfo($output);