We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c54717e commit 27910ceCopy full SHA for 27910ce
tests/PHPStan/Analyser/nsrt/bug-7106.php
@@ -5,18 +5,22 @@
5
namespace Bug7106;
6
7
use function PHPStan\Testing\assertType;
8
+use function PHPStan\Testing\assertNativeType;
9
use function openssl_error_string;
10
11
Class Example
12
{
13
public function openSslError(string $signature): string
14
15
assertType('string|false', openssl_error_string());
16
+ assertNativeType('string|false', openssl_error_string());
17
18
if (false === \openssl_error_string()) {
19
assertType('false', openssl_error_string());
20
+ assertNativeType('false', openssl_error_string());
21
openssl_sign('1', $signature, '');
22
23
24
}
25
26
0 commit comments