OSDN Git Service
(root)
/
php-libraries
/
Router.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc16434
)
convert short array syntax to a php5.3+ compatible one
author
Manuel Dalla Lana
<endelwar@aregar.it>
Fri, 25 Sep 2015 07:22:40 +0000
(09:22 +0200)
committer
Manuel Dalla Lana
<endelwar@aregar.it>
Fri, 25 Sep 2015 07:22:40 +0000
(09:22 +0200)
src/PHPRouter/RouteCollection.php
patch
|
blob
|
history
diff --git
a/src/PHPRouter/RouteCollection.php
b/src/PHPRouter/RouteCollection.php
index
4535437
..
5e1b164
100755
(executable)
--- a/
src/PHPRouter/RouteCollection.php
+++ b/
src/PHPRouter/RouteCollection.php
@@
-42,7
+42,7
@@
class RouteCollection extends \SplObjectStorage
*/
public function all()
{
- $temp =
[]
;
+ $temp =
array()
;
foreach ($this as $router) {
$temp[] = $router;
}