Skip to content

Commit a8746a3

Browse files
authored
Fix PHPStan errors; composer update (#147)
1 parent cb2aa85 commit a8746a3

3 files changed

Lines changed: 39 additions & 36 deletions

File tree

composer.lock

Lines changed: 34 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Console/ComposerCommand.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ public function __invoke(
3535

3636
$constraint = $composer->requiredPhpConstraint();
3737

38-
/** @phpstan-ignore method.notFound,return.type */
39-
return $application->get('constraint')
40-
->__invoke($io, $constraint, $source, $mode);
38+
/** @var ConstraintCommand $constraintCommand */
39+
$constraintCommand = $application->get('constraint');
40+
41+
return $constraintCommand->__invoke($io, $constraint, $source, $mode);
4142
} catch (ExceptionInterface $e) {
4243
$this->printError(
4344
$io,

src/Versions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public static function highest(string ...$versions): string
3232
{
3333
$sorted = self::sort(...$versions);
3434

35+
// @phpstan-ignore offsetAccess.invalidOffset
3536
return $sorted[array_key_last($sorted)];
3637
}
3738
}

0 commit comments

Comments
 (0)