1313use Magento \Framework \Controller \Result \JsonFactory ;
1414use Magento \Framework \DataObjectFactory ;
1515use Magento \Framework \Exception \NoSuchEntityException ;
16- use Magento \Tests \NamingConvention \true \bool ;
1716use Magento \TwoFactorAuth \Model \AlertInterface ;
1817use Magento \TwoFactorAuth \Api \TfaInterface ;
1918use Magento \TwoFactorAuth \Api \TfaSessionInterface ;
@@ -93,8 +92,8 @@ class Authpost extends AbstractAction implements HttpPostActionInterface
9392 * @param TfaInterface $tfa
9493 * @param AlertInterface $alert
9594 * @param DataObjectFactory $dataObjectFactory
96- * @param UserResource|null $userResource
97- * @param ScopeConfigInterface|null $scopeConfig
95+ * @param UserResource $userResource
96+ * @param ScopeConfigInterface $scopeConfig
9897 * @SuppressWarnings(PHPMD.ExcessiveParameterList)
9998 */
10099 public function __construct (
@@ -106,8 +105,8 @@ public function __construct(
106105 TfaInterface $ tfa ,
107106 AlertInterface $ alert ,
108107 DataObjectFactory $ dataObjectFactory ,
109- ? UserResource $ userResource = null ,
110- ? ScopeConfigInterface $ scopeConfig = null
108+ UserResource $ userResource ,
109+ ScopeConfigInterface $ scopeConfig
111110 ) {
112111 parent ::__construct ($ context );
113112 $ this ->tfa = $ tfa ;
0 commit comments