Automattic\WooCommerce\Vendor\GraphQL\Type

Schema::typeLoaderNotType │ public static │ WC 1.0

Method of the class: Schema{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = Schema::typeLoaderNotType( $typeLoaderReturn ): string;
$typeLoaderReturn(mixed) (required)
could be anything.

Schema::typeLoaderNotType() code WC 11.1.2

public static function typeLoaderNotType($typeLoaderReturn): string
{
    $typeClass = Type::class;
    $notType = Utils::printSafe($typeLoaderReturn);

    return "Type loader is expected to return an instanceof {$typeClass}, but it returned {$notType}";
}