Skip to content

Commit 8c63d52

Browse files
ENGCOM-2931: [Forwardport] Fix proxy generation return type #17768
- Merge Pull Request #17768 from nmalevanec/magento2:2.3-develop-PR-port-17552 - Merged commits: 1. 691d187
2 parents b55989d + 691d187 commit 8c63d52

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

lib/internal/Magento/Framework/ObjectManager/Test/Unit/Code/Generator/_files/Sample.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ class Sample
1616
*/
1717
protected $messages = [];
1818

19+
/**
20+
* @var array
21+
*/
22+
private $config = [];
23+
1924
/**
2025
* @param array $messages
2126
*/
@@ -31,4 +36,20 @@ public function getMessages()
3136
{
3237
return $this->messages;
3338
}
39+
40+
/**
41+
* @param array $config
42+
*/
43+
public function setConfig(array $config)
44+
{
45+
$this->config = $config;
46+
}
47+
48+
/**
49+
* @return array
50+
*/
51+
public function getConfig(): array
52+
{
53+
return $this->config;
54+
}
3455
}

lib/internal/Magento/Framework/ObjectManager/Test/Unit/Code/Generator/_files/SampleProxy.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,20 @@ class Sample_Proxy extends Sample implements \Magento\Framework\ObjectManager\No
101101
{
102102
return $this->_getSubject()->getMessages();
103103
}
104+
105+
/**
106+
* {@inheritdoc}
107+
*/
108+
public function setConfig(array $config)
109+
{
110+
return $this->_getSubject()->setConfig($config);
111+
}
112+
113+
/**
114+
* {@inheritdoc}
115+
*/
116+
public function getConfig() : array
117+
{
118+
return $this->_getSubject()->getConfig();
119+
}
104120
}

0 commit comments

Comments
 (0)