Automattic\WooCommerce\Vendor\GraphQL\Validator\Rules

PossibleFragmentSpreads::typeIncompatibleSpreadMessagepublic staticWC 1.0

Method of the class: PossibleFragmentSpreads{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

PossibleFragmentSpreads::typeIncompatibleSpreadMessage() code WC 10.9.1

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