[wp-trac] [WordPress Trac] #58943: Replace `is_a` calls in core with `instanceof`

WordPress Trac noreply at wordpress.org
Mon Jul 31 12:22:19 UTC 2023


#58943: Replace `is_a` calls in core with `instanceof`
-------------------------+--------------------------------------------
 Reporter:  ayeshrajans  |       Owner:  SergeyBiryukov
     Type:  enhancement  |      Status:  accepted
 Priority:  normal       |   Milestone:  6.4
Component:  General      |     Version:  trunk
 Severity:  trivial      |  Resolution:
 Keywords:  has-patch    |     Focuses:  performance, coding-standards
-------------------------+--------------------------------------------

Comment (by jrf):

 FYI: I've opened a ticket to at some point create a sniff to detect & flag
 this, so we can safeguard this pattern for the future:
 https://github.com/PHPCSStandards/PHPCSExtra/issues/260

 We may want to open a ticket in WPCS about this as well.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58943#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list