[wp-trac] [WordPress Trac] #46859: Incorrect type docblock annotation for $expiresin wp-includes/class-wp-http-cookie.php

WordPress Trac noreply at wordpress.org
Tue Apr 9 15:10:59 UTC 2019


#46859: Incorrect type docblock annotation for $expiresin wp-includes/class-wp-
http-cookie.php
--------------------------+-----------------------------
 Reporter:  diddledan     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 The variable `$expires` in the class `WP_HTTP_Cookie` defined in `wp-
 includes/class-wp-http-cookie.php` is defined by the docblock type
 annotation to be of a string type. However, occasionally the value `null`
 may be assigned. The attached patch fixes the docblock to also state that
 `null` is allowed.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46859>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list