diff options
author | C. Scott Ananian <cscott@cscott.net> | 2024-02-28 13:27:29 -0500 |
---|---|---|
committer | C. Scott Ananian <cscott@cscott.net> | 2024-02-28 13:27:29 -0500 |
commit | 44b54ae12fef423bfb7f62ab6ccdb838d3716a4e (patch) | |
tree | a783dff0e8f70111c7b223b0b6167bde8895dabf /includes/content | |
parent | 22709c6a2f323fbc006276b7885f63583e0a9c47 (diff) | |
download | mediawikicore-44b54ae12fef423bfb7f62ab6ccdb838d3716a4e.tar.gz mediawikicore-44b54ae12fef423bfb7f62ab6ccdb838d3716a4e.zip |
Tighten up phan type for ContentRenderer::getParserOutput()
Passing an `int` as the $revision was deprecated with a warning, but
also tighten up the phan @param type to hopefully catch a few more
cases of this in CI rather than the logs.
Bug: T350538
Bug: T358243
Change-Id: I73a3b77d9982bcfaa9c235cde31fafff9a13e92e
Diffstat (limited to 'includes/content')
-rw-r--r-- | includes/content/Renderer/ContentRenderer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/content/Renderer/ContentRenderer.php b/includes/content/Renderer/ContentRenderer.php index 6793bbab0414..68add0727520 100644 --- a/includes/content/Renderer/ContentRenderer.php +++ b/includes/content/Renderer/ContentRenderer.php @@ -37,7 +37,7 @@ class ContentRenderer { * * @param Content $content * @param PageReference $page - * @param RevisionRecord|int|null $revision + * @param RevisionRecord|null $revision * @param ParserOptions|null $parserOptions * @param bool $generateHtml * |