Skip to content
Permalink
Browse files

Setting class alias only on php versions before 7

String is not a valid name in PHP 7 anymore.
  • Loading branch information...
jrbasso committed Mar 29, 2015
1 parent 448f54f commit 57bcf5e3a34d05e21b9414dc79392c39ef4ea41e
Showing with 3 additions and 1 deletion.
  1. +3 −1 config/bootstrap.php
@@ -18,7 +18,9 @@
define('TIME_START', microtime(true));
// @deprecated Backward compatibility with 2.x series
class_alias('Cake\Utility\Text', 'Cake\Utility\String');
if (PHP_VERSION_ID < 70000) {
class_alias('Cake\Utility\Text', 'Cake\Utility\String');
}
require CAKE . 'basics.php';

0 comments on commit 57bcf5e

Please sign in to comment.
You can’t perform that action at this time.