Re: Deprecation ideas for PHP 8

From: Date: Tue, 22 Jan 2019 21:22:31 +0000
Subject: Re: Deprecation ideas for PHP 8
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-103781@lists.php.net to get a copy of this message
On Tue, 22 Jan 2019 at 21:48, Stephen Reay <php-lists@koalephant.com> wrote: > > > On 23 Jan 2019, at 03:34, Girgias <george.banyard@gmail.com> wrote: > > Classes/Objects functions: > > > > - is_a (use instanceof operator) > > - is_subclass_of (not exactly what it's purpose is but the instanceof > > operator SHOULD be a valid equivalence with another condition if the > same > > class must not be used) > > is_subclass_of allows checking string class names, instanceof (AFAIK) does > not. > Good catch, just checked and it's indead the case that instanceof can't check string class names: https://3v4l.org/DkMC4 George P. Banyard

« previous php.internals (#103781) next »