# Warning about authorization error

**URL:** <https://discourse.cakephp.org/t/warning-about-authorization-error/4087>\
**Category:** Need Help\
**Created:** [March 25, 2018, 5:48pm UTC](https://discourse.cakephp.org/t/warning-about-authorization-error/4087 "2018-03-25T17:48:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sWs](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@sWs](https://discourse.cakephp.org/u/sWs)\
**Post date:** [March 25, 2018, 5:48pm UTC](https://discourse.cakephp.org/t/warning-about-authorization-error/4087/1 "2018-03-25T17:48:48Z")

</div>

I decided to go through the tutorial on the latest version of cakephp (3.5.14). But when I try to do an authorization validation method, the IDE warns about an error

Return type declaration must be compatible with Controller-\>isAuthorized(user):bool

![](https://canada1.discourse-cdn.com/flex029/uploads/cakephp/original/1X/274c090d9e38610574283ff897827b30eff8595c.jpg)

---

<div class="post-metadata">

**Author:** ![lafeber](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/lafeber/32/956_2.png) [@lafeber](https://discourse.cakephp.org/u/lafeber)\
**Post date:** [March 29, 2018, 8:10am UTC](https://discourse.cakephp.org/t/warning-about-authorization-error/4087/2 "2018-03-29T08:10:11Z")

</div>

Have you tried executing the code? It looks to me it would work regardless.
