Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit d5174e4

Browse files
kokspflanzeweierophinney
authored andcommitted
changed create_function too closure in tests
1 parent 89618b7 commit d5174e4

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
lines changed
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<?php
2-
echo implode(', ', array_map(
3-
create_function('$a', 'return $a->getLabel();'),
4-
$this->vars()->pages));
2+
echo implode(
3+
', ',
4+
array_map(
5+
function($a) {
6+
return $a->getLabel();
7+
},
8+
$this->vars()->pages
9+
)
10+
);
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<?php
2-
echo implode($this->vars()->separator, array_map(
3-
create_function('$a', 'return $a->getLabel();'),
4-
$this->vars()->pages));
2+
echo implode(
3+
$this->vars()->separator,
4+
array_map(
5+
function($a) {
6+
return $a->getLabel();
7+
},
8+
$this->vars()->pages
9+
)
10+
);

test/Helper/Navigation/_files/mvc/views/bc_with_partial_params.phtml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ echo $this->variable . PHP_EOL;
33
echo implode(
44
$this->vars()->separator,
55
array_map(
6-
create_function('$a', 'return $a->getLabel();'),
6+
function($a) {
7+
return $a->getLabel();
8+
},
79
$this->vars()->pages
810
)
911
);

0 commit comments

Comments
 (0)