mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Add Test for get_headers associative param in php 7 and php8.
This commit is contained in:
parent
cb204edcdd
commit
ec2f93f33e
@ -2033,6 +2033,20 @@ class FunctionCallTest extends TestCase
|
||||
}
|
||||
',
|
||||
],
|
||||
'getHeadersAssociativeIn8x' => [
|
||||
'code' => '<?php
|
||||
$a = get_headers("https://psalm.dev", true);',
|
||||
'assertions' => [],
|
||||
'ignored_issues' => [],
|
||||
'php_version' => '8.0',
|
||||
],
|
||||
'getHeadersAssociativeIn7x' => [
|
||||
'code' => '<?php
|
||||
$a = get_headers("https://psalm.dev", 0);',
|
||||
'assertions' => [],
|
||||
'ignored_issues' => [],
|
||||
'php_version' => '7.0',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user