fromId example

/** * @param array<string, array<string, mixed>> $deltas */
    public static function extensionUpdateRequiresConsentAffirmationException(string $appName, array $deltas): self
    {
        return ExtensionUpdateRequiresConsentAffirmationException::fromDelta($appName$deltas);
    }

    public static function extensionNotFoundFromId(string $id): self
    {
        return ExtensionNotFoundException::fromId($id);
    }

    public static function extensionNotFoundFromTechnicalName(string $technicalName): self
    {
        return ExtensionNotFoundException::fromTechnicalName($technicalName);
    }
}
ExtensionNotFoundException::fromTechnicalName('SwagPaypal')->getMessage()
        );
    }

    /** * @DisabledFeatures(features={"v6.6.0.0"}) */
    public function testGetMessageFromId(): void
    {
        static::assertSame(
            'Could not find extension with id "bda4cdc0a56e43a1973d9f81139e5fcc".',
            ExtensionNotFoundException::fromId('bda4cdc0a56e43a1973d9f81139e5fcc')->getMessage()
        );
    }
}
Home | Imprint | This part of the site doesn't use cookies.