Skip to content

Commit 95d5f6f

Browse files
committed
Update dictionaries for 8.1
1 parent 986ef8d commit 95d5f6f

File tree

4 files changed

+34
-7
lines changed

4 files changed

+34
-7
lines changed

dictionaries/CallMap.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,7 @@
13231323
'date_sun_info' => ['array', 'timestamp'=>'int', 'latitude'=>'float', 'longitude'=>'float'],
13241324
'date_sunrise' => ['string|int|float|false', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'?float', 'longitude='=>'?float', 'zenith='=>'?float', 'utcOffset='=>'?float'],
13251325
'date_sunset' => ['string|int|float|false', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'?float', 'longitude='=>'?float', 'zenith='=>'?float', 'utcOffset='=>'?float'],
1326-
'date_time_set' => ['DateTime', 'object'=>'', 'hour'=>'', 'minute'=>'', 'second='=>'', 'microsecond='=>''],
1326+
'date_time_set' => ['DateTime', 'object'=>'int', 'hour'=>'int', 'minute'=>'int', 'second='=>'int', 'microsecond='=>'int'],
13271327
'date_timestamp_get' => ['int', 'object'=>'DateTimeInterface'],
13281328
'date_timestamp_set' => ['DateTime', 'object'=>'DateTime', 'timestamp'=>'int'],
13291329
'date_timezone_get' => ['DateTimeZone|false', 'object'=>'DateTimeInterface'],
@@ -2932,7 +2932,7 @@
29322932
'ftp_ssl_connect' => ['FTP\Connection|false', 'hostname'=>'string', 'port='=>'int', 'timeout='=>'int'],
29332933
'ftp_systype' => ['string|false', 'ftp'=>'FTP\Connection'],
29342934
'ftruncate' => ['bool', 'stream'=>'resource', 'size'=>'int'],
2935-
'func_get_arg' => ['mixed|false', 'position'=>'int'],
2935+
'func_get_arg' => ['mixed|null', 'position'=>'int'],
29362936
'func_get_args' => ['list<mixed>'],
29372937
'func_num_args' => ['int'],
29382938
'function_exists' => ['bool', 'function'=>'string'],
@@ -6480,7 +6480,7 @@
64806480
'locale_get_script' => ['?string', 'locale'=>'string'],
64816481
'locale_lookup' => ['?string', 'languageTag'=>'array', 'locale'=>'string', 'canonicalize='=>'bool', 'defaultLocale='=>'?string'],
64826482
'locale_parse' => ['?array', 'locale'=>'string'],
6483-
'locale_set_default' => ['bool', 'locale'=>'string'],
6483+
'locale_set_default' => ['true', 'locale'=>'string'],
64846484
'localeconv' => ['array'],
64856485
'localtime' => ['array', 'timestamp='=>'?int', 'associative='=>'bool'],
64866486
'log' => ['float', 'num'=>'float', 'base='=>'float'],

dictionaries/CallMap_80_delta.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -824,8 +824,8 @@
824824
'new' => ['string|int|float|false', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'?float', 'longitude='=>'?float', 'zenith='=>'?float', 'utcOffset='=>'?float'],
825825
],
826826
'date_time_set' => [
827-
'old' => ['DateTime|false', 'object'=>'', 'hour'=>'', 'minute'=>'', 'second='=>'', 'microsecond='=>''],
828-
'new' => ['DateTime', 'object'=>'', 'hour'=>'', 'minute'=>'', 'second='=>'', 'microsecond='=>''],
827+
'old' => ['DateTime|false', 'object'=>'DateTime', 'hour'=>'int', 'minute'=>'int', 'second='=>'int', 'microsecond='=>'int'],
828+
'new' => ['DateTime', 'object'=>'DateTime', 'hour'=>'int', 'minute'=>'int', 'second='=>'int', 'microsecond='=>'int'],
829829
],
830830
'date_timestamp_set' => [
831831
'old' => ['DateTime|false', 'object'=>'DateTime', 'timestamp'=>'int'],

dictionaries/CallMap_84_delta.php

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php // phpcs:ignoreFile
2+
3+
/**
4+
* This contains the information needed to convert the function signatures for php 8.3 to php 8.2 (and vice versa)
5+
*
6+
* This file has three sections.
7+
* The 'added' section contains function/method names from FunctionSignatureMap (And alternates, if applicable) that do not exist in php 8.2
8+
* The 'removed' section contains the signatures that were removed in php 8.3
9+
* The 'changed' section contains functions for which the signature has changed for php 8.3.
10+
* Each function in the 'changed' section has an 'old' and a 'new' section,
11+
* representing the function as it was in PHP 8.2 and in PHP 8.3, respectively
12+
*
13+
* @see CallMap.php
14+
* @see https://php.watch/versions/8.3
15+
*
16+
* @phan-file-suppress PhanPluginMixedKeyNoKey (read by Phan when analyzing this file)
17+
*/
18+
return [
19+
'changed' => [
20+
'old' => [
21+
'locale_set_default' => ['bool', 'locale'=>'string']
22+
],
23+
'new' => [
24+
'locale_set_default' => ['true', 'locale'=>'string']
25+
]
26+
]
27+
];

dictionaries/CallMap_historical.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -9759,7 +9759,7 @@
97599759
'date_sun_info' => ['array|false', 'timestamp'=>'int', 'latitude'=>'float', 'longitude'=>'float'],
97609760
'date_sunrise' => ['string|int|float|false', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'float', 'longitude='=>'float', 'zenith='=>'float', 'utcOffset='=>'float'],
97619761
'date_sunset' => ['string|int|float|false', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'float', 'longitude='=>'float', 'zenith='=>'float', 'utcOffset='=>'float'],
9762-
'date_time_set' => ['DateTime|false', 'object'=>'', 'hour'=>'', 'minute'=>'', 'second='=>'', 'microsecond='=>''],
9762+
'date_time_set' => ['DateTime|false', 'object'=>'DateTime', 'hour'=>'int', 'minute'=>'int', 'second='=>'int', 'microsecond='=>'int'],
97639763
'date_timestamp_get' => ['int', 'object'=>'DateTimeInterface'],
97649764
'date_timestamp_set' => ['DateTime|false', 'object'=>'DateTime', 'timestamp'=>'int'],
97659765
'date_timezone_get' => ['DateTimeZone|false', 'object'=>'DateTimeInterface'],
@@ -10509,7 +10509,7 @@
1050910509
'ftp_ssl_connect' => ['resource|false', 'hostname'=>'string', 'port='=>'int', 'timeout='=>'int'],
1051010510
'ftp_systype' => ['string|false', 'ftp'=>'resource'],
1051110511
'ftruncate' => ['bool', 'stream'=>'resource', 'size'=>'int'],
10512-
'func_get_arg' => ['mixed|false', 'position'=>'int'],
10512+
'func_get_arg' => ['mixed|null', 'position'=>'int'],
1051310513
'func_get_args' => ['list<mixed>'],
1051410514
'func_num_args' => ['int'],
1051510515
'function_exists' => ['bool', 'function'=>'string'],

0 commit comments

Comments
 (0)