Skip to content

Commit

Permalink
Update return type of spl_autoload_functions on PHP8.0+
Browse files Browse the repository at this point in the history
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+.
  • Loading branch information
ManuelHu committed Sep 26, 2024
1 parent c83196b commit 0b4373f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resources/functionMap_php80delta.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
'socket_addrinfo_lookup' => ['AddressInfo[]', 'node'=>'string', 'service='=>'mixed', 'hints='=>'array'],
'socket_select' => ['int|false', '&w_read'=>'Socket[]|null', '&w_write'=>'Socket[]|null', '&w_except'=>'Socket[]|null', 'seconds'=>'int|null', 'microseconds='=>'int'],
'sodium_crypto_aead_chacha20poly1305_ietf_decrypt' => ['string|false', 'confidential_message'=>'string', 'public_message'=>'string', 'nonce'=>'string', 'key'=>'string'],
'spl_autoload_functions' => ['list<callable(string):void>'],
'str_contains' => ['bool', 'haystack'=>'string', 'needle'=>'string'],
'str_split' => ['non-empty-list<string>', 'str'=>'string', 'split_length='=>'positive-int'],
'str_ends_with' => ['bool', 'haystack'=>'string', 'needle'=>'string'],
Expand Down

0 comments on commit 0b4373f

Please sign in to comment.