1
0
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:
Ryan Bonham 2023-01-07 19:25:04 -05:00
parent cb204edcdd
commit ec2f93f33e
No known key found for this signature in database
GPG Key ID: 9207E35C381EFE18

View File

@ -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',
],
];
}