1
0
Fork 0

Fix phpstan 8.1 build

pull/10829/head
Jordi Boggiano 2022-06-08 20:03:59 +02:00
parent 203ec4b485
commit 73fd0f22e8
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 4 additions and 2 deletions

View File

@ -91,7 +91,8 @@ EOT
*/
public function run(InputInterface $input, OutputInterface $output): int
{
if (!method_exists($input, '__toString')) {
// TODO remove for Symfony 6+ as it is then in the interface
if (!method_exists($input, '__toString')) { // @phpstan-ignore-line
throw new \LogicException('Expected an Input instance that is stringable, got '.get_class($input));
}
@ -119,7 +120,8 @@ EOT
private function prepareSubcommandInput(InputInterface $input, bool $quiet = false): StringInput
{
if (!method_exists($input, '__toString')) {
// TODO remove for Symfony 6+ as it is then in the interface
if (!method_exists($input, '__toString')) { // @phpstan-ignore-line
throw new \LogicException('Expected an Input instance that is stringable, got '.get_class($input));
}