Skip to content

Commit f8e5bcd

Browse files
committed
Upgrade to PHP 5.4
1 parent 11bc5df commit f8e5bcd

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.travis.yml

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

33
php:
4-
- 5.3
54
- 5.4
65
- 5.5
76
- 5.6
@@ -16,4 +15,4 @@ script:
1615
- phpunit --coverage-clover build/logs/clover.xml
1716

1817
matrix:
19-
fast_finish: true
18+
fast_finish: true

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
"Jleagle\\Elo\\": "src"
2121
}
2222
},
23+
"require": {
24+
"php": ">=5.4"
25+
},
2326
"require-dev": {
2427
"phpunit/phpunit": "4.1.*"
2528
}

src/Elo.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,20 @@ private function _makeNewRating($x, $y, $z)
5959
*/
6060
public function getExpected()
6161
{
62-
return array(
62+
return [
6363
'a' => $this->_expectedA,
6464
'b' => $this->_expectedB
65-
);
65+
];
6666
}
6767

6868
/**
6969
* @return float[]
7070
*/
7171
public function getRatings()
7272
{
73-
return array(
73+
return [
7474
'a' => $this->_newRatingA,
7575
'b' => $this->_newRatingB
76-
);
76+
];
7777
}
7878
}

0 commit comments

Comments
 (0)