Make WordPress Core


Ignore:
Timestamp:
10/08/2020 09:13:57 PM (4 years ago)
Author:
SergeyBiryukov
Message:

General: Replace older-style PHP type conversion functions with type casts.

This improves performance, readability, and consistency throughout core.

  • intval()(int)
  • strval()(string)
  • floatval()(float)

Props ayeshrajans.
Fixes #42918.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user/wpGetUsersWithNoRole.php

    r47122 r49108  
    8484        $this->assertSame(
    8585            array(
    86                 "{$nobody}",
     86                (string) $nobody,
    8787            ),
    8888            $users
     
    100100        $this->assertSame(
    101101            array(
    102                 "{$admin}",
     102                (string) $admin,
    103103            ),
    104104            $users
Note: See TracChangeset for help on using the changeset viewer.