Upgrading 4.4 to 4.5 - RESOURCES constant

I’m trying to update our CakePHP 4.4 to 4.5.

I am running bin/cake upgrade rector --rules cakephp45 src/

But then I get: PHP Fatal error: Uncaught Error: Undefined constant "RESOURCES" in /[...]/cakephp/config/app.php:69

Line 69 is:

'locales' => [RESOURCES . 'locales' . DS],

Which matches this: app/config/app.php at 4.x · cakephp/app · GitHub

Any help is appreciated.

Thank you! For some reason I was missing that line.

after each minor (and especially major) update its always a good idea to compare the current recommended cakephp/app template with what your app is currently at.

If there is something in the app template which is not in your app it should be copied over