auth: Use phan templates for getRequestByClass
authorDaimona Eaytoy <daimona.wiki@gmail.com>
Sat, 7 Sep 2019 13:33:24 +0000 (15:33 +0200)
committerDaimona Eaytoy <daimona.wiki@gmail.com>
Sun, 8 Sep 2019 15:44:46 +0000 (15:44 +0000)
commit5485a3dda0b188b2ff4d8d90476437215ecb9442
treefd0052159536002df5036330fbf1eb6d9ccfc0f3
parentcd898eb4ededc3ab85b5e40708a4f747be2871dd
auth: Use phan templates for getRequestByClass

Phan is clever enough to understand when the return value depends on the
name of the string passed in. This avoids lots of @phan-var annotations
in all subclasses.

Note that PHPCS rejects @template, ref T232256.

Change-Id: I7b7c7fae9c80320cad41bedc2972a3a5e22e19b0
includes/auth/AuthenticationRequest.php
includes/auth/ResetPasswordSecondaryAuthenticationProvider.php