Make WordPress Core

Ticket #58831: 58831-always-use-parentheses-for-class-instantiation.patch

File 58831-always-use-parentheses-for-class-instantiation.patch, 923 bytes (added by jrf, 5 months ago)
  • tests/phpunit/tests/functions/getNonCachedIds.php

    From 39cbb231270aeb2b3cf82686e503c7eb3e41c084 Mon Sep 17 00:00:00 2001
    From: jrfnl <jrfnl@users.noreply.github.com>
    Date: Wed, 29 Mar 2023 00:33:26 +0200
    Subject: [PATCH] CS: always use parentheses for class instantiation
    
    ---
     tests/phpunit/tests/functions/getNonCachedIds.php | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/tests/phpunit/tests/functions/getNonCachedIds.php b/tests/phpunit/tests/functions/getNonCachedIds.php
    index d8df0e11a6..07943bbdc8 100644
    a b class Tests_Functions_GetNonCachedIds extends WP_UnitTestCase { 
    9797                        'empty string' => array( '' ),
    9898                        'array'        => array( array( 1 ) ),
    9999                        'empty array'  => array( array() ),
    100                         'stdClass'     => array( new stdClass ),
     100                        'stdClass'     => array( new stdClass() ),
    101101                );
    102102        }
    103103}