Skip to content

Commit c10f30f

Browse files
committed
Mark spl_autoload_register function arg as UNKNOWN
Not passing any parameters to this function has magic behavior.
1 parent 8a5b9cb commit c10f30f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/spl/php_spl.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function spl_autoload_extensions(string $file_extensions = UNKNOWN): string {}
1515

1616
function spl_autoload_functions(): array|false {}
1717

18-
function spl_autoload_register($autoload_function = null, bool $throw = true, bool $prepend = false): bool {}
18+
function spl_autoload_register($autoload_function = UNKNOWN, bool $throw = true, bool $prepend = false): bool {}
1919

2020
function spl_autoload_unregister($autoload_function): bool {}
2121

ext/spl/php_spl_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_spl_autoload_functions, 0, 0, MA
2929
ZEND_END_ARG_INFO()
3030

3131
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_spl_autoload_register, 0, 0, _IS_BOOL, 0)
32-
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, autoload_function, "null")
32+
ZEND_ARG_INFO(0, autoload_function)
3333
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, throw, _IS_BOOL, 0, "true")
3434
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, prepend, _IS_BOOL, 0, "false")
3535
ZEND_END_ARG_INFO()

0 commit comments

Comments
 (0)