# Upgraded cake from 3.3 to 3.6 getting below warning

**URL:** <https://discourse.cakephp.org/t/upgraded-cake-from-3-3-to-3-6-getting-below-warning/4340>\
**Category:** Need Help\
**Created:** [May 24, 2018, 8:17am UTC](https://discourse.cakephp.org/t/upgraded-cake-from-3-3-to-3-6-getting-below-warning/4340 "2018-05-24T08:17:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahmood](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@mahmood](https://discourse.cakephp.org/u/mahmood)\
**Post date:** [May 24, 2018, 8:17am UTC](https://discourse.cakephp.org/t/upgraded-cake-from-3-3-to-3-6-getting-below-warning/4340/1 "2018-05-24T08:17:52Z")

</div>

Deprecated: PHP configuration files should not set `$config. Instead return an array.

---

<div class="post-metadata">

**Author:** ![dakota](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/dakota/32/1421_2.png) [@dakota](https://discourse.cakephp.org/u/dakota)\
**Post date:** [May 24, 2018, 9:26am UTC](https://discourse.cakephp.org/t/upgraded-cake-from-3-3-to-3-6-getting-below-warning/4340/2 "2018-05-24T09:26:38Z")

</div>

The error message tells you exactly what to do. Have you followed the 3.3 to 3.4, 3.4 to 3.5 and 3.5 to 3.6 migration guides?

---

<div class="post-metadata">

**Author:** ![jimgwhit](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/jimgwhit/32/378_2.png) [@jimgwhit](https://discourse.cakephp.org/u/jimgwhit)\
**Post date:** [May 25, 2018, 3:37am UTC](https://discourse.cakephp.org/t/upgraded-cake-from-3-3-to-3-6-getting-below-warning/4340/3 "2018-05-25T03:37:58Z")

</div>

Another easy way to upgrade is to update app. I make two temp folders, one old, other new. I have a program called WinMerge. It

- compares two folders and shows file difference
- Shows files in one folder not in other

So I get app all updated, then run composer update.

Next comment out this:

```auto
//if (Configure::read('debug')) {
    //Plugin::load('DebugKit', ['bootstrap' => true]);
//}
//at bottom of bootstrap.php

```

Run app, look at warnings and Deprecated items, and fix.

As example, request, the docs shows:

```auto
$controllerName = $this->request->getParam('controller');

// Prior to 3.4.0
$controllerName = $this->request->param('controller');

```

#### Notice the // Prior to 3.4.0

So the docs clearly shows what the new version needs.

It may take a little while to change the code to newer version, but where else do you need to be.  
And a good ide will search and replace various places at one time. I actually went from 3.5 to 3.6 in about an hour, good medium application. A lot of places like

#### Request

had the word

#### get

Tacked on now.

To me it was just easier to upgrade that way.

### Do not just get app from

#### [https://github.com/cakephp/app](https://github.com/cakephp/app)

#### go here

#### [https://github.com/cakephp/app/releases](https://github.com/cakephp/app/releases)

And only use a latest stable release

Use the composer.json file from the stable release only when later running composer update.

Stay away from anything in Dev.

Bottom line you have to get used of proper updating, come up with a technique that works well. The git way is fine for vendor, but for app you have current code. So you only want to update changed lines only in some of those files.
