Skip to content

Commit c6f72ea

Browse files
Merge pull request #92 from wp-cli/80-php-53-compat
Ensure examples are fully compatible with PHP 5.3
2 parents 7e124ed + 5e77001 commit c6f72ea

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

examples/tree.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@
22

33
require_once 'common.php';
44

5-
$data = [
6-
'Test' => [
7-
'Something Cool' => [
5+
$data = array(
6+
'Test' => array(
7+
'Something Cool' => array(
88
'This is a 3rd layer',
9-
],
9+
),
1010
'This is a 2nd layer',
11-
],
12-
'Other test' => [
13-
'This is awesome' => [
11+
),
12+
'Other test' => array(
13+
'This is awesome' => array(
1414
'This is also cool',
1515
'This is even cooler',
16-
'Wow like what is this' => [
16+
'Wow like what is this' => array(
1717
'Awesome eh?',
18-
'Totally' => [
18+
'Totally' => array(
1919
'Yep!'
20-
],
21-
],
22-
],
23-
],
24-
];
20+
),
21+
),
22+
),
23+
),
24+
);
2525

2626
printf("ASCII:\n");
2727

0 commit comments

Comments
 (0)