1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 16:42:57 +00:00

Fixes from PHPStan level 0

More fixes from PHPStan level 0
This commit is contained in:
Gabriel Caruso 2018-01-06 12:05:39 -02:00
parent 994bac0c15
commit 3d262bd637
13 changed files with 18 additions and 12 deletions

View file

@ -34,7 +34,7 @@ use Symfony\Component\Console\Output\OutputInterface;
*/
class DiagnoseCommand extends BaseCommand
{
/** @var RemoteFileSystem */
/** @var RemoteFilesystem */
protected $rfs;
/** @var ProcessExecutor */

View file

@ -279,7 +279,7 @@ EOT
$minimumStability = $input->getOption('stability') ?: null;
$minimumStability = $io->askAndValidate(
'Minimum Stability [<comment>'.$minimumStability.'</comment>]: ',
function ($value) use ($self, $minimumStability) {
function ($value) use ($minimumStability) {
if (null === $value) {
return $minimumStability;
}