[wp-trac] [WordPress Trac] #24780: Use error handlers rather than the error suppression operator

WordPress Trac noreply at wordpress.org
Fri Apr 24 07:27:13 UTC 2020


#24780: Use error handlers rather than the error suppression operator
----------------------------+---------------------
 Reporter:  rmccue          |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:
Component:  Filesystem API  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |     Focuses:
----------------------------+---------------------

Comment (by SergeyBiryukov):

 In [changeset:"47617" 47617]:
 {{{
 #!CommitTicketReference repository="" revision="47617"
 Code Modernization: Remove error suppression from `parse_url()` calls.

 Previously, the `@` operator was used to prevent possible warnings emitted
 by `parse_url()` in PHP < 5.3.3 when URL parsing failed.

 Now that the minimum version of PHP required by WordPress is 5.6.20, this
 is no longer needed.

 Props netpassprodsr, Howdy_McGee.
 Fixes #49980. See #24780.
 }}}

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


More information about the wp-trac mailing list