Skip to content

Commit b896239

Browse files
EA-SKesprit-dev
authored andcommitted
Fix return type
TypeError: Payplug\Payments\Block\Adminhtml\Config\Oauth2Logout::getCurrentWebsite(): Return value must be of type ?int, string returned in /datas/preprod/vendor/payplug/payplug-magento2/Block/Adminhtml/Config/Oauth2Logout.php:113
1 parent 1871b00 commit b896239

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Block/Adminhtml/Config/Oauth2Logout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private function getAccessTokenData(): ?array
125125

126126
private function getCurrentWebsite(): ?int
127127
{
128-
return $this->getRequest()->getParam('website') ?: null;
128+
return (int)$this->getRequest()->getParam('website') ?: null;
129129
}
130130

131131
private function isDeveloperMode(): bool

0 commit comments

Comments
 (0)