Updating to the latest patch

Posted under » CakePHP on 16 Dec 2018

By default this is what your application composer.json looks like:

"require": {
    "cakephp/cakephp": "3.7.*"
}

You can instead change this to ^3.7.0 to also receive the latest stable minor releases of the 3.x branch but it may break and depreciate some things.

To update, run this where your composer.json is located (root).

php composer.phar update
// or it could be
php ../composer.phar update

Because there are some things that will be depreciated, you have the turn the error level notifications off at the /config/app.php

//      'errorLevel' => E_ALL,
        'errorLevel' =>_ALL & ~E_USER_DEPRECATED,  

Sometimes the update is not that significant but you do it for security reasons.

web security linux ubuntu GIT svn Raspberry apache mysql php drupal cake symfony javascript Ajax css