Make WordPress Core

Changeset 63170


Ignore:
Timestamp:
08/11/2026 12:13:22 AM (2 weeks ago)
Author:
westonruter
Message:

Build/Test Tools: Add @phpstan-assert on assertWPError and assertNotWPError.

Follow-up to r63005.

See #65817.

File:
1 edited

Legend:

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

    r63005 r63170  
    875875         * @param mixed  $actual  The value to check.
    876876         * @param string $message Optional. Message to display when the assertion fails.
     877         *
     878         * @phpstan-assert WP_Error $actual
    877879         */
    878880        public function assertWPError( $actual, $message = '' ) {
     
    885887         * @param mixed  $actual  The value to check.
    886888         * @param string $message Optional. Message to display when the assertion fails.
     889         *
     890         * @phpstan-assert !WP_Error $actual
    887891         */
    888892        public function assertNotWPError( $actual, $message = '' ) {
Note: See TracChangeset for help on using the changeset viewer.