1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00

Failing test

This commit is contained in:
Vincent Langlet 2022-12-24 13:00:40 +01:00
parent 8b05f2ead8
commit 723001d814

View File

@ -1546,6 +1546,27 @@ class RedundantConditionTest extends TestCase
}',
'error_message' => 'RedundantCondition',
],
'https://github.com/vimeo/psalm/issues/8932' => [
'code' => '<?php
/**
* @param array|null $value
* *
* * @return null
*/
function reverseTransform($value)
{
if (null === $value) {
return null;
}
if (!\is_array($value)) {
throw new \Exception("array");
}
return null;
}',
'error_message' => 'DocblockTypeContradiction',
],
];
}
}