Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update composer.json for compatibility with symfony 7.1 and return type #9

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/php.yml → .github/workflows/php.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ 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 }}

steps:
- 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
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/InitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/Commands/WatchCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down