From 9f3f9cc71a752c371b44d40a979504ffd7026c7d Mon Sep 17 00:00:00 2001 From: gRegor Morrill Date: Tue, 8 Nov 2022 13:37:04 -0800 Subject: [PATCH] Update README.md Namespace in code examples --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ee3a545..b6f4d17 100644 --- a/README.md +++ b/README.md @@ -371,14 +371,14 @@ Next, the `state` and `iss` parameters must be verified to match the authorizati ```php $response = self::validateStateMatch($_GET, $_SESSION['indieauth_state']); -if ($response instanceof ErrorResponse) { +if ($response instanceof IndieAuth\ErrorResponse) { // handle the error response, array with keys `error` and `error_description` die(json_encode($response->getArray())); } if (isset($_SESSION['indieauth_issuer'])) { $response = self::validateIssuerMatch($_GET, $_SESSION['indieauth_issuer']); - if ($response instanceof ErrorResponse) { + if ($response instanceof IndieAuth\ErrorResponse) { // handle the error response, array with keys `error` and `error_description` die(json_encode($response->getArray())); }