[wp-trac] [WordPress Trac] #58348: API Doc: replace wrong string[] type with correct one - array

WordPress Trac noreply at wordpress.org
Thu May 18 05:24:36 UTC 2023


#58348: API Doc: replace wrong string[] type with correct one - array
-----------------------------+------------------------------
 Reporter:  platonkristinin  |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  General          |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by platonkristinin):

 If array argument can be null then function signature should look
 following:

 {{{
 wp_check_filetype( string $filename, array|null $mimes = null ): array
 }}}

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


More information about the wp-trac mailing list