Skip to content

Commit

Permalink
Merge pull request #1021 from spiral/sf-7
Browse files Browse the repository at this point in the history
Allow Symfony 7.0 components
  • Loading branch information
butschster committed Dec 5, 2023
2 parents ac995f5 + e38946b commit 4a2a096
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 19 deletions.
8 changes: 4 additions & 4 deletions composer.json
Expand Up @@ -51,10 +51,10 @@
"psr/simple-cache": "2 - 3",
"spiral/attributes": "^2.8|^3.0",
"spiral/composer-publish-plugin": "^1.0",
"symfony/console": "^6.1",
"symfony/finder": "^5.3.7|^6.0",
"symfony/mailer": "^5.1|^6.0",
"symfony/translation": "^5.1|^6.0",
"symfony/console": "^6.1 || ^7.0",
"symfony/finder": "^5.3.7 || ^6.0 || ^7.0",
"symfony/mailer": "^5.1 || ^6.0 || ^7.0",
"symfony/translation": "^5.1 || ^6.0 || ^7.0",
"vlucas/phpdotenv": "^5.4"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/Console/composer.json
Expand Up @@ -32,7 +32,7 @@
"spiral/events": "^3.11",
"spiral/hmvc": "^3.11",
"spiral/tokenizer": "^3.11",
"symfony/console": "^6.1"
"symfony/console": "^6.1 || ^7.0"
},
"require-dev": {
"spiral/boot": "^3.11",
Expand Down
19 changes: 9 additions & 10 deletions src/Console/src/InputProxy.php
Expand Up @@ -18,6 +18,11 @@ public function __construct(
) {
}

public function __toString(): string
{
return $this->input->__toString();
}

public function getFirstArgument(): ?string
{
return $this->overwrite['firstArgument'] ?? $this->input->getFirstArgument();
Expand All @@ -36,20 +41,14 @@ public function getParameterOption(
return $this->input->getParameterOption($values, $default, $onlyParams);
}

/**
* Since v4.0 the return type will be changed to void {@see InputInterface::bind}.
*
* @return void
* @psalm-suppress InvalidReturnStatement
*/
public function bind(InputDefinition $definition): mixed
public function bind(InputDefinition $definition): void
{
return $this->input->bind($definition);
$this->input->bind($definition);
}

public function validate(): ?bool
public function validate(): void
{
return $this->input->validate();
$this->input->validate();
}

public function getArguments(): array
Expand Down
2 changes: 1 addition & 1 deletion src/SendIt/composer.json
Expand Up @@ -34,7 +34,7 @@
"spiral/logger": "^3.11",
"spiral/mailer": "^3.11",
"spiral/views": "^3.11",
"symfony/mailer": "^5.1|^6.0",
"symfony/mailer": "^5.1 || ^6.0 || ^7.0",
"psr/event-dispatcher": "^1.0"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Snapshots/composer.json
Expand Up @@ -30,7 +30,7 @@
"php": ">=8.1",
"spiral/exceptions": "^3.11",
"spiral/files": "^3.11",
"symfony/finder": "^5.3.7|^6.0"
"symfony/finder": "^5.3.7 || ^6.0 || ^7.0"
},
"require-dev": {
"spiral/storage": "^3.11",
Expand Down
2 changes: 1 addition & 1 deletion src/Tokenizer/composer.json
Expand Up @@ -31,7 +31,7 @@
"ext-tokenizer": "*",
"spiral/core": "^3.11",
"spiral/logger": "^3.11",
"symfony/finder": "^5.3.7|^6.0"
"symfony/finder": "^5.3.7 || ^6.0 || ^7.0"
},
"require-dev": {
"spiral/attributes": "^2.8|^3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Translator/composer.json
Expand Up @@ -31,7 +31,7 @@
"spiral/core": "^3.11",
"spiral/logger": "^3.11",
"spiral/tokenizer": "^3.11",
"symfony/translation": "^5.1|^6.0",
"symfony/translation": "^5.1 || ^6.0 || ^7.0",
"psr/event-dispatcher": "^1.0"
},
"require-dev": {
Expand Down

0 comments on commit 4a2a096

Please sign in to comment.