Make WordPress Core


Ignore:
Timestamp:
11/29/2022 03:49:49 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Always use parentheses when instantiating an object.

Note: This will be enforced by WPCS 3.0.0.

Props jrf.
See #56791.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/pomo/translations.php

    r54315 r54891  
    122122        $domain->add_entry( $entry_digit_1 );
    123123        $domain->add_entry( $entry_digit_2 );
    124         $dummy_translation = new Translations;
     124        $dummy_translation = new Translations();
    125125        $this->assertSame( '1', $domain->translate( '1' ) );
    126126        $domain->merge_with( $dummy_translation );
Note: See TracChangeset for help on using the changeset viewer.