Skip to content

[RFC] Deprecate is_a() and is_subclass_of() with string when not allowed - #23236

Open
DanielEScherzer wants to merge 1 commit into
php:masterfrom
DanielEScherzer:allow-string-false
Open

[RFC] Deprecate is_a() and is_subclass_of() with string when not allowed#23236
DanielEScherzer wants to merge 1 commit into
php:masterfrom
DanielEScherzer:allow-string-false

Conversation

@DanielEScherzer

Copy link
Copy Markdown
Member

For is_a() and is_subclass_of(), emit deprecation warnings when calling with a string as the first argument but with $allow_string being false. The two functions share implementation code and so are updated together.

https://wiki.php.net/rfc/deprecations_php_8_6

Comment thread Zend/zend_builtin_functions.c Outdated
…allowed

For `is_a()` and `is_subclass_of()`, emit deprecation warnings when calling
with a string as the first argument but with `$allow_string` being false. The
two functions share implementation code and so are updated together.

https://wiki.php.net/rfc/deprecations_php_8_6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants