From ae954e3cb81c648a27a0f239098a2deed3eec9e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Thu, 22 Sep 2022 15:33:53 +0200 Subject: [PATCH] Fix: Remove deprecated constants --- CHANGELOG.md | 5 +++++ src/RFC/RFC2616.php | 12 ------------ src/RFC/RFC7231.php | 12 ------------ 3 files changed, 5 insertions(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f8c6dd9..d883575 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,10 @@ For a full diff see [`v1.1.2...main`][v1.1.2...main]. - Updated links to RFCs ([#24]), by [@localheinz] +### Removed + +- Removed deprecated constants `Teapot\StatusCode\RFC\RFC7231::NON_AUTHORATIVE_INFORMATION` and `Teapot\StatusCode\RFC\RFC2616::NON_AUTHORATIVE_INFORMATION` ([#26]), by [@localheinz] + ## [`v1.1.2`][v1.1.2] For a full diff see [`v1.1.1...v1.1.2`][v1.1.1...v1.1.2]. @@ -57,5 +61,6 @@ For a full diff see [`1091250...v1.0.0`][1091250...v1.0.0]. [#24]: https://github.com/teapot-php/status-code/pull/24 [#25]: https://github.com/teapot-php/status-code/pull/25 +[#26]: https://github.com/teapot-php/status-code/pull/26 [@localheinz]: https://github.com/localheinz diff --git a/src/RFC/RFC2616.php b/src/RFC/RFC2616.php index 5ed9b19..e3a8158 100644 --- a/src/RFC/RFC2616.php +++ b/src/RFC/RFC2616.php @@ -153,18 +153,6 @@ interface RFC2616 extends DraftStandard, IETFStream */ const NON_AUTHORITATIVE_INFORMATION = 203; - /** - * The 203 (Non-Authoritative Information) status code used to be available - * via NON_AUTHORATIVE_INFORMATION, which contained a typo. This typo has - * since been fixed and this constant has been deprecated in favor of the - * properly spelled constant. - * - * @see Teapot\StatusCode\RFC\RFC2616:NON_AUTHORITATIVE_INFORMATION - * @var int - * @deprecated - */ - const NON_AUTHORATIVE_INFORMATION = self::NON_AUTHORITATIVE_INFORMATION; - /** * The server has fulfilled the request but does not need to return an * entity-body, and might want to return updated metainformation. The diff --git a/src/RFC/RFC7231.php b/src/RFC/RFC7231.php index 0e290c1..698bf42 100644 --- a/src/RFC/RFC7231.php +++ b/src/RFC/RFC7231.php @@ -200,18 +200,6 @@ interface RFC7231 extends ProposedStandard, IETFStream */ const NON_AUTHORITATIVE_INFORMATION = 203; - /** - * The 203 (Non-Authoritative Information) status code used to be available - * via NON_AUTHORATIVE_INFORMATION, which contained a typo. This typo has - * since been fixed and this constant has been deprecated in favor of the - * properly spelled constant. - * - * @see Teapot\StatusCode\RFC\RFC7231:NON_AUTHORITATIVE_INFORMATION - * @var int - * @deprecated - */ - const NON_AUTHORATIVE_INFORMATION = self::NON_AUTHORITATIVE_INFORMATION; - /** * The 204 (No Content) status code indicates that the server has * successfully fulfilled the request and that there is no additional