Make WordPress Core

Ticket #36824: 36824-46175-47746-fix-php-74-compat.patch

File 36824-46175-47746-fix-php-74-compat.patch, 956 bytes (added by jrf, 6 years ago)

Fix PHP 7.4 compatibility

  • tests/phpunit/tests/functions/doEnclose.php

    From f3135ab673251cbe69e2fd6f37a004262c82819a Mon Sep 17 00:00:00 2001
    From: jrfnl <jrfnl@users.noreply.github.com>
    Date: Thu, 19 Sep 2019 06:13:56 +0200
    Subject: [PATCH] Fix implode argument order after 46175
    
    ---
     tests/phpunit/tests/functions/doEnclose.php | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/tests/phpunit/tests/functions/doEnclose.php b/tests/phpunit/tests/functions/doEnclose.php
    index 196fe0c30a..7b2c62ed2c 100644
    a b class Tests_Functions_DoEnclose extends WP_UnitTestCase { 
    252252         * @return string          All enclosure data for the given post.
    253253         */
    254254        protected function get_enclosed_by_post_id( $post_id ) {
    255                 return join( (array) get_post_meta( $post_id, 'enclosure', false ), '' );
     255                return implode( '', (array) get_post_meta( $post_id, 'enclosure', false ) );
    256256        }
    257257
    258258        /**