Skip to content

Commit

Permalink
Failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Dec 24, 2022
1 parent 8b05f2e commit 57d1bd4
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/TypeReconciliation/RedundantConditionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1546,6 +1546,25 @@ function f(array $p) : void {
}',
'error_message' => 'RedundantCondition',
],
'https://github.com/vimeo/psalm/issues/8932' => [
'code' => '<?php
/**
* @param array|null $value
*/
function reverseTransform($value): null
{
if (null === $value) {
return null;
}
if (!\is_array($value)) {
throw new \Exception("array");
}
return null;
}',
'error_message' => 'DocblockTypeContradiction',
],
];
}
}

0 comments on commit 57d1bd4

Please sign in to comment.