13
13
use Magento \Framework \Controller \Result \JsonFactory ;
14
14
use Magento \Framework \DataObjectFactory ;
15
15
use Magento \Framework \Exception \NoSuchEntityException ;
16
- use Magento \Tests \NamingConvention \true \bool ;
17
16
use Magento \TwoFactorAuth \Model \AlertInterface ;
18
17
use Magento \TwoFactorAuth \Api \TfaInterface ;
19
18
use Magento \TwoFactorAuth \Api \TfaSessionInterface ;
@@ -93,8 +92,8 @@ class Authpost extends AbstractAction implements HttpPostActionInterface
93
92
* @param TfaInterface $tfa
94
93
* @param AlertInterface $alert
95
94
* @param DataObjectFactory $dataObjectFactory
96
- * @param UserResource|null $userResource
97
- * @param ScopeConfigInterface|null $scopeConfig
95
+ * @param UserResource $userResource
96
+ * @param ScopeConfigInterface $scopeConfig
98
97
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
99
98
*/
100
99
public function __construct (
@@ -106,8 +105,8 @@ public function __construct(
106
105
TfaInterface $ tfa ,
107
106
AlertInterface $ alert ,
108
107
DataObjectFactory $ dataObjectFactory ,
109
- ? UserResource $ userResource = null ,
110
- ? ScopeConfigInterface $ scopeConfig = null
108
+ UserResource $ userResource ,
109
+ ScopeConfigInterface $ scopeConfig
111
110
) {
112
111
parent ::__construct ($ context );
113
112
$ this ->tfa = $ tfa ;
0 commit comments