From b3c26f5082adfad8f9f7c1a35e191a6519a7d4b7 Mon Sep 17 00:00:00 2001 From: Jeroen Thora Date: Sun, 20 Dec 2020 21:03:03 +0100 Subject: [PATCH] Mark some classes as final --- lib/Github/HttpClient/Message/ResponseMediator.php | 3 +++ lib/Github/HttpClient/Plugin/Authentication.php | 1 + lib/Github/HttpClient/Plugin/GithubExceptionThrower.php | 1 + lib/Github/HttpClient/Plugin/History.php | 1 + lib/Github/HttpClient/Plugin/PathPrepend.php | 1 + 5 files changed, 7 insertions(+) diff --git a/lib/Github/HttpClient/Message/ResponseMediator.php b/lib/Github/HttpClient/Message/ResponseMediator.php index 67cc7016c54..2d5c8664a76 100644 --- a/lib/Github/HttpClient/Message/ResponseMediator.php +++ b/lib/Github/HttpClient/Message/ResponseMediator.php @@ -5,6 +5,9 @@ use Github\Exception\ApiLimitExceedException; use Psr\Http\Message\ResponseInterface; +/** + * @final since 2.19 + */ class ResponseMediator { /** diff --git a/lib/Github/HttpClient/Plugin/Authentication.php b/lib/Github/HttpClient/Plugin/Authentication.php index 669fb1d8965..a3851240b80 100644 --- a/lib/Github/HttpClient/Plugin/Authentication.php +++ b/lib/Github/HttpClient/Plugin/Authentication.php @@ -12,6 +12,7 @@ * Add authentication to the request. * * @author Tobias Nyholm + * @final since 2.19 */ class Authentication implements Plugin { diff --git a/lib/Github/HttpClient/Plugin/GithubExceptionThrower.php b/lib/Github/HttpClient/Plugin/GithubExceptionThrower.php index 4a68aa3921f..70373e00ea1 100644 --- a/lib/Github/HttpClient/Plugin/GithubExceptionThrower.php +++ b/lib/Github/HttpClient/Plugin/GithubExceptionThrower.php @@ -17,6 +17,7 @@ /** * @author Joseph Bielawski * @author Tobias Nyholm + * @final since 2.19 */ class GithubExceptionThrower implements Plugin { diff --git a/lib/Github/HttpClient/Plugin/History.php b/lib/Github/HttpClient/Plugin/History.php index c23621b87ed..73f056ba58c 100644 --- a/lib/Github/HttpClient/Plugin/History.php +++ b/lib/Github/HttpClient/Plugin/History.php @@ -10,6 +10,7 @@ * A plugin to remember the last response. * * @author Tobias Nyholm + * @final since 2.19 */ class History implements Journal { diff --git a/lib/Github/HttpClient/Plugin/PathPrepend.php b/lib/Github/HttpClient/Plugin/PathPrepend.php index 3c55f72f13c..049056355d8 100644 --- a/lib/Github/HttpClient/Plugin/PathPrepend.php +++ b/lib/Github/HttpClient/Plugin/PathPrepend.php @@ -10,6 +10,7 @@ * Prepend the URI with a string. * * @author Tobias Nyholm + * @final since 2.19 */ class PathPrepend implements Plugin {