Skip to content

Commit

Permalink
Allow symfony/console and symfony/event-dispatcher ^7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar committed Jun 21, 2024
1 parent e0d30e1 commit 775a6f6
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 32 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added

- Allow PHP 8.3
- Allow symfony/console and symfony/event-dispatcher ^7.0.0

## [1.4.2](https://github.com/orisai/nette-console/compare/1.4.1...1.4.2) - 2024-03-12

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"nette/php-generator": "^3.6.0|^4.0.0",
"nette/utils": "^3.1.3|^4.0.0",
"orisai/nette-di": "^1.0.3",
"symfony/console": "^5.3.0|^6.0.0",
"symfony/console": "^5.3.0|^6.0.0|^7.0.0",
"symfony/polyfill-php80": "^1.27.0"
},
"require-dev": {
Expand All @@ -38,7 +38,7 @@
"phpstan/phpstan-strict-rules": "^1.0.0",
"phpunit/phpunit": "^9.5.0",
"staabm/annotate-pull-request-from-checkstyle": "^1.7.0",
"symfony/event-dispatcher": "^5.3.0|^6.0.0"
"symfony/event-dispatcher": "^5.3.0|^6.0.0|^7.0.0"
},
"autoload": {
"psr-4": {
Expand Down
10 changes: 4 additions & 6 deletions tests/Doubles/AnotherDefaultNameCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
final class AnotherDefaultNameCommand extends Command
{

/**
* @var string|null
*
* @phpcsSuppress SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint
*/
protected static $defaultName = 'another-default';
public static function getDefaultName(): string
{
return 'another-default';
}

protected function execute(InputInterface $input, OutputInterface $output): int
{
Expand Down
20 changes: 8 additions & 12 deletions tests/Doubles/DefaultBothCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,15 @@
final class DefaultBothCommand extends Command
{

/**
* @var string|null
*
* @phpcsSuppress SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint
*/
protected static $defaultName = 'both-default';
public static function getDefaultName(): string
{
return 'both-default';
}

/**
* @var string|null
*
* @phpcsSuppress SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint
*/
protected static $defaultDescription = 'Default description';
public static function getDefaultDescription(): string
{
return 'Default description';
}

protected function execute(InputInterface $input, OutputInterface $output): int
{
Expand Down
10 changes: 4 additions & 6 deletions tests/Doubles/DefaultNameCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
final class DefaultNameCommand extends Command
{

/**
* @var string|null
*
* @phpcsSuppress SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint
*/
protected static $defaultName = 'default';
public static function getDefaultName(): string
{
return 'default';
}

protected function execute(InputInterface $input, OutputInterface $output): int
{
Expand Down
10 changes: 4 additions & 6 deletions tests/Doubles/HiddenAndAliasedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
final class HiddenAndAliasedCommand extends Command
{

/**
* @var string|null
*
* @phpcsSuppress SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint
*/
protected static $defaultName = '|i|am|hiding|aliasses';
public static function getDefaultName(): string
{
return '|i|am|hiding|aliasses';
}

protected function execute(InputInterface $input, OutputInterface $output): int
{
Expand Down

0 comments on commit 775a6f6

Please sign in to comment.