File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
lib/internal/Magento/Framework/TestFramework/Unit/Helper Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,7 @@ protected function _getMockWithoutConstructorCall($className)
155
155
*/
156
156
public function getObject ($ className , array $ arguments = [])
157
157
{
158
+ // phpstan:ignore
158
159
if (is_subclass_of ($ className , \Magento \Framework \Api \AbstractSimpleObjectBuilder::class)
159
160
|| is_subclass_of ($ className , \Magento \Framework \Api \Builder::class)
160
161
) {
@@ -333,13 +334,12 @@ public function getCollectionMock($className, array $data)
333
334
*/
334
335
private function _getMockObject ($ argClassName , array $ arguments )
335
336
{
337
+ // phpstan:ignore
336
338
if (is_subclass_of ($ argClassName , \Magento \Framework \Api \ExtensibleObjectBuilder::class)) {
337
- $ object = $ this ->getBuilder ($ argClassName , $ arguments );
338
- return $ object ;
339
- } else {
340
- $ object = $ this ->_createArgumentMock ($ argClassName , $ arguments );
341
- return $ object ;
339
+ return $ this ->getBuilder ($ argClassName , $ arguments );
342
340
}
341
+
342
+ return $ this ->_createArgumentMock ($ argClassName , $ arguments );
343
343
}
344
344
345
345
/**
You can’t perform that action at this time.
0 commit comments