mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 13:51:54 +01:00
Failing test
This commit is contained in:
parent
8b05f2ead8
commit
723001d814
@ -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',
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user