Skip to content

Commit

Permalink
Symfony 7 support (#292)
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Riki Popeliš <popelis@efabrica.sk>
  • Loading branch information
riki137 and Richard Riki Popeliš committed Jul 19, 2024
1 parent 99455d0 commit c0f52bc
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/extensions_finder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run: composer update --no-progress --no-interaction

- name: Install PHP extensions finder as dev dependency
run: composer require efabrica/php-extensions-finder --dev
run: composer require efabrica/php-extensions-finder --dev -W

- name: PHP extensions finder
run: vendor/bin/php-extensions-finder check src tests
2 changes: 1 addition & 1 deletion .github/workflows/phpunit_lowest_mysql57_psql10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
php-version: ${{ matrix.php }}

- name: Composer update
run: composer update --prefer-lowest --no-progress --no-interaction
run: composer update --prefer-lowest --no-progress --no-interaction && composer require "symfony/console:<7.0.0"

- name: PHPunit
run: vendor/bin/phpunit --coverage-text
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phpunit_lowest_mysql8_psql14.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
php-version: ${{ matrix.php }}

- name: Composer update
run: composer update --prefer-lowest --no-progress --no-interaction
run: composer update --prefer-lowest --no-progress --no-interaction && composer require "symfony/console:<7.0.0"

- name: PHPunit
run: vendor/bin/phpunit --coverage-text
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phpunit_mysql57_psql10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
php-version: ${{ matrix.php }}

- name: Composer update
run: composer update --no-progress --no-interaction
run: composer update --no-progress --no-interaction && composer require "symfony/console:<7.0.0"

- name: PHPunit
run: vendor/bin/phpunit --coverage-text
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phpunit_mysql8_psql14.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
php-version: ${{ matrix.php }}

- name: Composer update
run: composer update --no-progress --no-interaction
run: composer update --no-progress --no-interaction && composer require "symfony/console:<7.0.0"

- name: PHPunit
run: vendor/bin/phpunit --coverage-text
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Change Log

## [Unreleased][unreleased]
### Added
- support for Symfony 7

## [2.5.0] - 2023-12-08
### Added
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"php": "^7.4|^8.0",
"ext-json": "*",
"ext-pdo": "*",
"symfony/console": "^5.2.12|^6.0",
"symfony/finder": "^5.0|^6.0"
"symfony/console": "^5.2.12|^6.0|^7.0",
"symfony/finder": "^5.0|^6.0|^7.0"
},
"require-dev": {
"nette/neon": "^2.3|^3.0",
"symfony/yaml": "^5.0|^6.0",
"symfony/yaml": "^5.0|^6.0|^7.0",
"phpunit/phpunit": "^9.5.11",
"ramsey/uuid": "^3.7|^4.0"
},
Expand Down
6 changes: 6 additions & 0 deletions tests/Mock/Command/Input.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function getOptions(): array

public function getParameterOption($values, $default = false, $onlyParams = false)
{
return null;
}

public function hasArgument(string $name): bool
Expand Down Expand Up @@ -83,4 +84,9 @@ public function setOption(string $name, $value): void
public function validate(): void
{
}

public function __toString(): string
{
return '';
}
}

0 comments on commit c0f52bc

Please sign in to comment.