Automattic\WooCommerce\Vendor\GraphQL\Validator\Rules
PossibleFragmentSpreads::typeIncompatibleSpreadMessage
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() 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}\".";
}