Skip to content

Commit

Permalink
added support for PHP 7.2 (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
zemiacsik authored and Aaron Carlino committed Sep 5, 2018
1 parent 1dfd259 commit ede693a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions _config.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<?php

define('DISPLAY_LOGIC_DIR', basename(dirname(__FILE__)));

// Ensure compatibility with PHP 7.2 ("object" is a reserved word),
// with SilverStripe 3.6 (using Object) and SilverStripe 3.7 (using SS_Object)
if (!class_exists('SS_Object')) class_alias('Object', 'SS_Object');
2 changes: 1 addition & 1 deletion code/DisplayLogicCriteria.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @package display_logic
* @author Uncle Cheese <unclecheese@leftandmain.com>
*/
class DisplayLogicCriteria extends Object {
class DisplayLogicCriteria extends SS_Object {


/**
Expand Down
2 changes: 1 addition & 1 deletion code/DisplayLogicCriterion.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @package display_logic
* @author Uncle Cheese <unclecheese@leftandmain.com>
*/
class DisplayLogicCriterion extends Object {
class DisplayLogicCriterion extends SS_Object {


/**
Expand Down

0 comments on commit ede693a

Please sign in to comment.