Use cakephp with php7.1

hi all. i am used php 7.1 version and mamp 4.1.1, and install cakephp newest. this is project is run.
but i customer old cake version(2.1). i have to error:
Cannot use ‘String’ as class name as it is reserved
Error: The requested address ‘/’ was not found on this server.
Stack Trace
CORE/Cake/Error/ErrorHandler.php line 203 → ErrorHandler::handleFatalError(integer, string, string, integer)
$errorConfig = Configure::read(‘Error’);
list($error, $log) = self::mapErrorCode($code);
if ($log === LOG_ERR) {
return self::handleFatalError($code, $description, $file, $line);
}
CORE/Cake/Core/App.php line 929 → ErrorHandler::handleError(integer, string, string, integer, array)
if (!is_callable($errorHandler)) {
return;
}
call_user_func($errorHandler, $lastError[‘type’], $lastError[‘message’], $lastError[‘file’], $lastError[‘line’], array());
}
CORE/Cake/Core/App.php line 902 → App::_checkFatalError()
if (self::$_objectCacheChange) {
Cache::write(‘object_map’, self::$_objects, ‘cake_core’);
}
self::_checkFatalError();
}
[internal function] → App::shutdown()

how suite i do?

CakePHP 2 is not PHP 7 compatible

CakePHP 2.7.0 and after are PHP 7 compatible

thanks for correcting me. That is good to know. :slight_smile: