Skip to content

Commit 9640a66

Browse files
robbieaverillbarryvdh
authored andcommitted
Fix remove square bracket array declaration for PHP 5.3 compatibility (php-debugbar#360)
* Fix remove square bracket array declaration for PHP 5.3 compatibility * Use dist: precise on Travis to ensure PHP 5.3 compatibility
1 parent 82a53b6 commit 9640a66

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
language: php
22

3+
dist: precise
4+
35
php:
46
- 5.3
57
- 5.4

src/DebugBar/DataCollector/PhpInfoCollector.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,13 @@ public function collect()
3939
*/
4040
public function getWidgets()
4141
{
42-
return [
43-
"php_version" => [
42+
return array(
43+
"php_version" => array(
4444
"icon" => "code",
4545
"tooltip" => "Version",
4646
"map" => "php.version",
4747
"default" => ""
48-
],
49-
];
48+
),
49+
);
5050
}
51-
5251
}

0 commit comments

Comments
 (0)