Skip to content

Commit 0b4373f

Browse files
committed
Update return type of spl_autoload_functions on PHP8.0+
The documentation states that spl_autoload_functions might only return false on PHP versions up to 7.4; it will return an empty array on PHP8+.
1 parent c83196b commit 0b4373f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

resources/functionMap_php80delta.php

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
'socket_addrinfo_lookup' => ['AddressInfo[]', 'node'=>'string', 'service='=>'mixed', 'hints='=>'array'],
9999
'socket_select' => ['int|false', '&w_read'=>'Socket[]|null', '&w_write'=>'Socket[]|null', '&w_except'=>'Socket[]|null', 'seconds'=>'int|null', 'microseconds='=>'int'],
100100
'sodium_crypto_aead_chacha20poly1305_ietf_decrypt' => ['string|false', 'confidential_message'=>'string', 'public_message'=>'string', 'nonce'=>'string', 'key'=>'string'],
101+
'spl_autoload_functions' => ['list<callable(string):void>'],
101102
'str_contains' => ['bool', 'haystack'=>'string', 'needle'=>'string'],
102103
'str_split' => ['non-empty-list<string>', 'str'=>'string', 'split_length='=>'positive-int'],
103104
'str_ends_with' => ['bool', 'haystack'=>'string', 'needle'=>'string'],

0 commit comments

Comments
 (0)