How can we migrate cakephp 2.x application to PHP 7.x?
I have a cakePHP based application, which is built in cakePHP 2.9
How can I migrate this to PHP 7.x
How can we migrate cakephp 2.x application to PHP 7.x?
I have a cakePHP based application, which is built in cakePHP 2.9
How can I migrate this to PHP 7.x
Search for references to String
in your own application code.
For instance with CakePHP 2.10 on PHP 7.2, the following code gives me the same error:
App::uses('String', 'Utility');
App::load('String');
Not only the framework version you use must be compatible with PHP 7, but your own application code must be too. For this particular case, replace the occurences of the deprecated String
class by CakeText
, and it should do the trick.