diff --git a/codepoints.net/lib/Api/Exception.php b/codepoints.net/lib/Api/Exception.php index 666e9f41..8ebf4ba2 100644 --- a/codepoints.net/lib/Api/Exception.php +++ b/codepoints.net/lib/Api/Exception.php @@ -6,14 +6,14 @@ class Exception extends BaseException { - public const BAD_REQUEST = 400; - public const NOT_FOUND = 404; - public const METHOD_NOT_ALLOWED = 405; - public const PRECONDITION_FAILED = 412; - public const REQUEST_ENTITY_TOO_LARGE = 413; - public const REQUEST_URI_TOO_LONG = 414; - public const INTERNAL_SERVER_ERROR = 500; - public const NOT_IMPLEMENTED = 501; + public const int BAD_REQUEST = 400; + public const int NOT_FOUND = 404; + public const int METHOD_NOT_ALLOWED = 405; + public const int PRECONDITION_FAILED = 412; + public const int REQUEST_ENTITY_TOO_LARGE = 413; + public const int REQUEST_URI_TOO_LONG = 414; + public const int INTERNAL_SERVER_ERROR = 500; + public const int NOT_IMPLEMENTED = 501; /** * @param string $message the error payload diff --git a/codepoints.net/lib/Router/Pagination.php b/codepoints.net/lib/Router/Pagination.php index c6bb9945..66f78a35 100644 --- a/codepoints.net/lib/Router/Pagination.php +++ b/codepoints.net/lib/Router/Pagination.php @@ -16,7 +16,7 @@ class Pagination { private int $page = 1; - public const PAGE_SIZE = 0x100; + public const int PAGE_SIZE = 0x100; private string $urlTemplate; diff --git a/codepoints.net/lib/Translator.php b/codepoints.net/lib/Translator.php index 15ad8ab8..d6f205c0 100644 --- a/codepoints.net/lib/Translator.php +++ b/codepoints.net/lib/Translator.php @@ -11,7 +11,7 @@ class Translator { private ?string $language = null; - public const SUPPORTED_LANGUAGES = ['en', 'de', 'es', 'pl']; + public const array SUPPORTED_LANGUAGES = ['en', 'de', 'es', 'pl']; private ?Translations $translations = null;