Make WordPress Core

Changeset 63005


Ignore:
Timestamp:
08/04/2026 05:13:18 AM (2 months ago)
Author:
westonruter
Message:

Build/Test Tools: Add @phpstan-assert on assertIXRError and assertNotIXRError.

See #64898.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/abstract-testcase.php

    r62664 r63005  
    899899         * @param mixed  $actual  The value to check.
    900900         * @param string $message Optional. Message to display when the assertion fails.
     901         *
     902         * @phpstan-assert IXR_Error $actual
    901903         */
    902904        public function assertIXRError( $actual, $message = '' ) {
    … …  
    909911         * @param mixed  $actual  The value to check.
    910912         * @param string $message Optional. Message to display when the assertion fails.
     913         *
     914         * @phpstan-assert !IXR_Error $actual
    911915         */
    912916        public function assertNotIXRError( $actual, $message = '' ) {
Note: See TracChangeset for help on using the changeset viewer.