Commit graph

7 commits

Author SHA1 Message Date
James D. Forrester
984076f98e Add namespace to includes/api classes
Bug: T353458
Change-Id: I3ea6b08c5018ba03ba45c5766e1f46e12f6b8597
2024-09-25 19:31:14 +00:00
Bartosz Dziewoński
01f9175cd3 api: Use StatusValue::getMessages() instead of deprecated methods
This is the final bunch of more complex uses remaining in the API code.

Change-Id: Ia5b503fbd1e53f39d7d883313bbabdee21f1138e
2024-06-21 23:54:53 +00:00
WMDE-Fisch
f089276e0f Replace deprecated status->getErrors calls in API classes
Change-Id: I770a98e7cc3e2bc78e363dd73439ab8b8599e0da
2024-06-13 13:27:01 +02:00
James D. Forrester
8f6939f594 docs: Adjust all @deprecated tags to use 'since…' for consistency
This skips ones that have been marked but were never in the then
RELEASE-NOTES and later HISTORY file, and so weren't properly
deprecated ever.

Change-Id: I31df2d7e83182b5bf9524237fc4a1862356bfd5a
2024-05-01 07:41:18 +01:00
Ricordisamoa
1b3bc281ac Clean up redundant Exception|Throwable union type
PHP 7.0 makes many error conditions throw instances of the new Error class
which does not extend the known Exception.
The Throwable interface provides a concise and type-safe way of handling
either, e.g. for logging purposes, but HHVM did not support it, requiring
tedious fallback checks.

This commit replaces occurrences of Exception in code paths equally
covered by Throwable, like Exception|Throwable parameter and return types
(also nullable), instanceof guards, duplicated `catch` blocks, as well as
related comments and documentation blocks, with the exception of $previous
parameter descriptions consistent with the manual at
https://www.php.net/manual/en/exception.construct.php

Proper type declarations have been added or reinstated where possible.

Change-Id: I5d3920d3cc66936a350314e2f19c4f6faeffd7c0
2020-02-12 20:28:40 +00:00
Aryeh Gregor
0de9c47b50 Remove Language::factory and getParentLanguage use
Change-Id: I11f8801ef47ec1a1f63d840116e69667e6f3ae3c
2019-10-27 12:34:28 +02:00
Zoranzoki21
2d4eacf50b Split ApiErrorFormatter.php to have one class in one file
Change-Id: I5c6904e32f9bc7fe3aac511c56b03757bfde15a9
2019-04-21 22:20:22 +00:00