diff options
author | Bartosz DziewoĆski <matma.rex@gmail.com> | 2023-08-28 17:32:58 +0200 |
---|---|---|
committer | DannyS712 <dannys712.wiki@gmail.com> | 2023-08-29 01:02:40 +0000 |
commit | c03cb71796d9c3efae9a26c96161b3df34b7b9f4 (patch) | |
tree | 7933c698019cbf2a722e923acf735ffb2e1e0bd6 /includes/api/ApiQueryAllImages.php | |
parent | 1f78185a44344b810c6a5f6ff3196b59dd989928 (diff) | |
download | mediawikicore-c03cb71796d9c3efae9a26c96161b3df34b7b9f4.tar.gz mediawikicore-c03cb71796d9c3efae9a26c96161b3df34b7b9f4.zip |
Use real type hints for services etc. in api/ApiQuery*.php
Mostly used find-and-replace:
Find:
/\*[\*\s]+@var (I?[A-Z](\w+)(?:Interface)?)[\s\*]+/\s*(private|protected|public) (\$[a-z]\w+;\n)((?=\s*/\*[\*\s]+@var (I?[A-Z](\w+)(?:Interface)?))\n|)
Replace with:
\3 \1 \4
Followed by some manual review to make sure I'm not changing too much,
omitting some changes that looked too complicated and anything that
caused test failures, and some whitespace fixes.
Change-Id: Ie78be1c614985d7c2964156e454cc9266515dc18
Diffstat (limited to 'includes/api/ApiQueryAllImages.php')
-rw-r--r-- | includes/api/ApiQueryAllImages.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/includes/api/ApiQueryAllImages.php b/includes/api/ApiQueryAllImages.php index 2d6e821e5ed1..586f5db561d8 100644 --- a/includes/api/ApiQueryAllImages.php +++ b/includes/api/ApiQueryAllImages.php @@ -44,8 +44,7 @@ class ApiQueryAllImages extends ApiQueryGeneratorBase { */ protected $mRepo; - /** @var GroupPermissionsLookup */ - private $groupPermissionsLookup; + private GroupPermissionsLookup $groupPermissionsLookup; /** * @param ApiQuery $query |