Skip to content

Commit f193998

Browse files
author
Evgeny Kalashnikov
committed
Code generate: fix
1 parent 94fe76c commit f193998

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

lib/internal/Magento/Framework/Code/Test/Unit/Generator/ClassGeneratorTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,13 @@ class ClassGeneratorTest extends \PHPUnit\Framework\TestCase
6868
'final' => true,
6969
'static' => true,
7070
'parameters' => [
71-
['name' => 'data', 'type' => 'array', 'defaultValue' => [], 'passedByReference' => true, 'variadic' => false],
71+
[
72+
'name' => 'data',
73+
'type' => 'array',
74+
'defaultValue' => [],
75+
'passedByReference' => true,
76+
'variadic' => false
77+
],
7278
],
7379
'body' => 'return 1;',
7480
'docblock' => ['shortDescription' => 'test short description'],

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ public function & getReference()
2525

2626
public function variadic(... $values)
2727
{
28+
$this->attribute = array_shift($values);
2829
}
2930
}

0 commit comments

Comments
 (0)