1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Add test case reproducing issue #7771

Related: #7771
This commit is contained in:
Oliver Hader 2022-03-15 03:12:14 +01:00
parent 32f10c392d
commit b00d9e9514
No known key found for this signature in database
GPG Key ID: C19FAFD699012A5A

View File

@ -2839,6 +2839,15 @@ class ConditionalTest extends TestCase
echo "false";
}',
],
'BinaryDataIsPassedSeeIssue7771' => [
'code' => '<?php
function matches(string $value): bool {
if ("\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1" !== $value) {
return false;
}
return true;
}'
],
];
}