Warning about authorization error

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

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