[wp-trac] [WordPress Trac] #53946: Improve return types for sanitizing/escaping functions

WordPress Trac noreply at wordpress.org
Wed Aug 18 08:33:22 UTC 2021


#53946: Improve return types for sanitizing/escaping functions
-------------------------------+------------------------------
 Reporter:  malthert           |       Owner:  (none)
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Security           |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  docs
-------------------------------+------------------------------

Comment (by malthert):

 The documentation for phpdocs is extremely fragmented, so I am not really
 sure where this is from.

 I just found
 https://github.com/vimeo/psalm/issues/4629#issuecomment-730570590 and this
 seems to work for  psalm and phpstan (besides the fact, that this is
 easily clearer than what is there now)

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


More information about the wp-trac mailing list