Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
orklah committed Aug 5, 2021
1 parent 2cde8ad commit 1492027
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/AnnotationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function testPhpStormGenericsWithValidArrayIteratorArgument(): void
Config::getInstance()->allow_phpstorm_generics = true;
$codebase = $this->project_analyzer->getCodebase();
$codebase->reportUnusedVariables();

$this->addFile(
'somefile.php',
'<?php
Expand Down
3 changes: 0 additions & 3 deletions tests/ArrayFunctionCallTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -841,21 +841,18 @@ function (string $str): string { return $str . "x"; },
$a = array_map($callable, $array);
/**
* @psalm-suppress UnnecessaryVarAnnotation
* @var callable $callable
* @var array<string, int> $array
*/
$b = array_map($callable, $array, $array);
/**
* @psalm-suppress UnnecessaryVarAnnotation
* @var callable $callable
* @var list<string> $list
*/
$c = array_map($callable, $list);
/**
* @psalm-suppress UnnecessaryVarAnnotation
* @var callable $callable
* @var list<string> $list
*/
Expand Down
5 changes: 1 addition & 4 deletions tests/TypeAnnotationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,7 @@ function() {
* @return _A
*/
function f($p) {
/**
* @psalm-suppress UnnecessaryVarAnnotation
* @var _A
*/
/** @var _A */
$r = $p;
return $r;
}',
Expand Down

0 comments on commit 1492027

Please sign in to comment.