diff options
author | Daimona Eaytoy <daimona.wiki@gmail.com> | 2023-06-10 00:25:07 +0200 |
---|---|---|
committer | DannyS712 <dannys712.wiki@gmail.com> | 2024-01-19 21:58:42 +0000 |
commit | 1d6776fdbccf956e1ce4747a9c39dd8a05cdea88 (patch) | |
tree | 849f2cd357b42f61942acc382fcdf8ce1ad36e04 /includes/profiler | |
parent | 2e70d36e9944fd0fded6a91f8a0045f59555cabd (diff) | |
download | mediawikicore-1d6776fdbccf956e1ce4747a9c39dd8a05cdea88.tar.gz mediawikicore-1d6776fdbccf956e1ce4747a9c39dd8a05cdea88.zip |
Replace deprecated MWException
Also remove some unchecked exception from doc comments.
Bug: T328220
Bug: T240672
Change-Id: I88b1e948ce5da77d9c4862a2b98793d6ba00cf8b
Diffstat (limited to 'includes/profiler')
-rw-r--r-- | includes/profiler/Profiler.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/includes/profiler/Profiler.php b/includes/profiler/Profiler.php index 7f0e4fdc35d7..d5b0ad5cba2b 100644 --- a/includes/profiler/Profiler.php +++ b/includes/profiler/Profiler.php @@ -164,7 +164,6 @@ abstract class Profiler { /** * Get all usable outputs. * - * @throws MWException * @return ProfilerOutput[] * @since 1.25 */ @@ -178,7 +177,7 @@ abstract class Profiler { ? 'ProfilerOutput' . ucfirst( $outputType ) : $outputType; if ( !class_exists( $outputClass ) ) { - throw new MWException( "'$outputType' is an invalid output type" ); + throw new UnexpectedValueException( "'$outputType' is an invalid output type" ); } $outputInstance = new $outputClass( $this, $this->params ); if ( $outputInstance->canUse() ) { @@ -223,7 +222,6 @@ abstract class Profiler { /** * Log the data to the script/request output for all ProfilerOutput instances that do so * - * @throws MWException * @since 1.26 */ public function logDataPageOutputOnly() { |