Automattic\WooCommerce\Vendor\GraphQL\Validator\Rules

PossibleFragmentSpreads::typeIncompatibleAnonSpreadMessagepublic staticWC 1.0

Method of the class: PossibleFragmentSpreads{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = PossibleFragmentSpreads::typeIncompatibleAnonSpreadMessage( $parentType, $fragType ): string;
$parentType(string) (required)
.
$fragType(string) (required)
.

PossibleFragmentSpreads::typeIncompatibleAnonSpreadMessage() code WC 10.9.1

public static function typeIncompatibleAnonSpreadMessage(string $parentType, string $fragType): string
{
    return "Fragment cannot be spread here as objects of type \"{$parentType}\" can never be of type \"{$fragType}\".";
}