Plugin Directory

Changeset 3219372


Ignore:
Timestamp:
01/09/2025 03:41:58 AM (15 months ago)
Author:
bdeleasa
Message:

Making the $size param nullable to prevent errors in PHP7.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-random-post-thumbnails/trunk/classes/class-wprpt.php

    r3208012 r3219372  
    262262     * @param array $attr Attributes for the image markup.
    263263     * @param object $attachment Image attachment post.
    264      * @param string $size Requested image size.
     264     * @param ?string $size Requested image size.
    265265     * @return array
    266266     */
    267     function add_image_attributes( array $attr, object $attachment, string $size ) : array
     267    function add_image_attributes( array $attr, object $attachment, ?string $size ) : array
    268268    {
    269269        $post_id                = get_the_ID();
Note: See TracChangeset for help on using the changeset viewer.