Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Remove deprecated constants #26

Merged
merged 1 commit into from
Sep 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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].
Expand Down Expand Up @@ -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
12 changes: 0 additions & 12 deletions src/RFC/RFC2616.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 0 additions & 12 deletions src/RFC/RFC7231.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down