Skip to content

Conversation

@alain-guidon
Copy link

No description provided.

use Cake\Core\Configure;

$this->layout = 'error';
$this->setLayout('error');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Protected means outside $this context.
But all of the template are running inside, see also the docblock above :)

So none of those changes are necessary.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes... You're right. :-)

I followed the advice given by the code analyzer (VSCode + DEVSENSE PHP) without thinking about the context.
Sorry.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If they report this despite the docblock at the top, maybe you can open a bug ticket with them instead.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeap.
You should close this pull request.
Thanks for your replies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants