Skip to content

Commit 8835207

Browse files
author
Stanislav Idolov
authored
ENGCOM-2030: Fix type hints and add undefined property in Webapi [2.3-develop] #16135
2 parents f48f78a + 8866621 commit 8835207

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

app/code/Magento/Webapi/Controller/Soap.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ class Soap implements \Magento\Framework\App\FrontControllerInterface
5151
*/
5252
protected $_errorProcessor;
5353

54+
/**
55+
* @var \Magento\Framework\App\State
56+
*/
57+
protected $_appState;
58+
5459
/**
5560
* @var \Magento\Framework\Locale\ResolverInterface
5661
*/

app/code/Magento/Webapi/Controller/Soap/Request/Handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function __construct(
107107
*
108108
* @param string $operation
109109
* @param array $arguments
110-
* @return \stdClass|null
110+
* @return array
111111
* @throws WebapiException
112112
* @throws \LogicException
113113
* @throws AuthorizationException

app/code/Magento/Webapi/Model/Plugin/GuestAuthorization.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class GuestAuthorization
1919
* Check if resource for which access is needed has anonymous permissions defined in webapi config.
2020
*
2121
* @param \Magento\Framework\Authorization $subject
22-
* @param callable $proceed
22+
* @param \Closure $proceed
2323
* @param string $resource
2424
* @param string $privilege
2525
* @return bool true If resource permission is anonymous,

app/code/Magento/Webapi/Model/Soap/Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Server
3131
const REQUEST_PARAM_LIST_WSDL = 'wsdl_list';
3232

3333
/**
34-
* @var \Magento\Framework\App\AreaLIst
34+
* @var \Magento\Framework\App\AreaList
3535
*/
3636
protected $_areaList;
3737

app/code/Magento/Webapi/Test/Unit/Model/Soap/FaultTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function testToXmlDeveloperModeOff()
125125
public function testToXmlDeveloperModeOn()
126126
{
127127
$this->_appStateMock->expects($this->any())->method('getMode')->will($this->returnValue('developer'));
128-
$actualXml = $this->_soapFault->toXml(true);
128+
$actualXml = $this->_soapFault->toXml();
129129
$this->assertContains('<m:Trace>', $actualXml, 'Exception trace is not found in XML.');
130130
}
131131

0 commit comments

Comments
 (0)