Skip to content

Commit

Permalink
PHP 7 support fix
Browse files Browse the repository at this point in the history
Since from PHP7+, "Iterable" becomes a reserved word we need to replace by something else.
  • Loading branch information
LucasKovacs committed Oct 14, 2017
1 parent 1bc60a0 commit 49730dc
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion combatObject/FireManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* @version 21-03-2015
* @link https://github.com/jstar88/opbe
*/
class FireManager extends Iterable
class FireManager extends IterableUtil
{
protected $array = array();
public function add(Fire $fire)
Expand Down
2 changes: 1 addition & 1 deletion models/Fleet.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* @version 23-3-2015)
* @link https://github.com/jstar88/opbe
*/
class Fleet extends Iterable
class Fleet extends IterableUtil
{
protected $array = array();
private $count;
Expand Down
2 changes: 1 addition & 1 deletion models/Player.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* @version beta(26-10-2013)
* @link https://github.com/jstar88/opbe
*/
class Player extends Iterable
class Player extends IterableUtil
{
private $id;
protected $array = array();
Expand Down
2 changes: 1 addition & 1 deletion models/PlayerGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* @version beta(26-10-2013)
* @link https://github.com/jstar88/opbe
*/
class PlayerGroup extends Iterable
class PlayerGroup extends IterableUtil
{

protected $array = array();
Expand Down
2 changes: 1 addition & 1 deletion utils/Iterable.php → utils/IterableUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* @version alpha(2013-2-4)
* @link https://github.com/jstar88/opbe
*/
class Iterable implements Iterator
class IterableUtil implements Iterator
{

/* Iterator functions */
Expand Down
2 changes: 1 addition & 1 deletion utils/includer.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
require (OPBEPATH.'utils'.DIRECTORY_SEPARATOR.'GeometricDistribution.php');
require (OPBEPATH.'utils'.DIRECTORY_SEPARATOR.'Gauss.php');
require (OPBEPATH.'utils'.DIRECTORY_SEPARATOR.'DebugManager.php');
require (OPBEPATH.'utils'.DIRECTORY_SEPARATOR.'Iterable.php');
require (OPBEPATH.'utils'.DIRECTORY_SEPARATOR.'IterableUtil.php');
require (OPBEPATH.'utils'.DIRECTORY_SEPARATOR.'Math.php');
require (OPBEPATH.'utils'.DIRECTORY_SEPARATOR.'Number.php');
require (OPBEPATH.'utils'.DIRECTORY_SEPARATOR.'Events.php');
Expand Down

0 comments on commit 49730dc

Please sign in to comment.