Skip to content

Commit 1f160db

Browse files
Seldaekondrejmirtes
authored andcommitted
Add new header functions for PHP 8.4
See https://wiki.php.net/rfc/http-last-response-headers
1 parent c55d0e3 commit 1f160db

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

resources/functionMap_php84delta.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php // phpcs:ignoreFile
2+
3+
/**
4+
* This contains the information needed to convert the function signatures for php 8.4 to php 8.3 (and vice versa)
5+
*
6+
* This has two sections.
7+
* The 'new' section contains function/method names from FunctionSignatureMap (And alternates, if applicable) that do not exist in php8.3 or have different signatures in php 8.4.
8+
* If they were just updated, the function/method will be present in the 'added' signatures.
9+
* The 'old' signatures contains the signatures that are different in php 8.3.
10+
* Functions are expected to be removed only in major releases of php.
11+
*
12+
* @see FunctionSignatureMap.php
13+
*
14+
* @phan-file-suppress PhanPluginMixedKeyNoKey (read by Phan when analyzing this file)
15+
*/
16+
return [
17+
'new' => [
18+
'http_get_last_response_header ' => ['list<string>'],
19+
'http_clear_last_response_header' => ['void'],
20+
],
21+
'old' => [
22+
23+
]
24+
];

0 commit comments

Comments
 (0)