Skip to content
Permalink
Browse files

Add missing annotations to AuthComponent and bail early.

  • Loading branch information...
dereuromark committed Dec 19, 2016
1 parent 814b51c commit 64eb8fac13a7f70289d4048d89919baed4c662cb
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/Controller/Component/AuthComponent.php
@@ -32,6 +32,8 @@
*
* Binds access control with user authentication and session management.
*
* @property \Cake\Controller\Component\RequestHandlerComponent $RequestHandler
* @property \Cake\Controller\Component\FlashComponent $Flash
* @link http://book.cakephp.org/3.0/en/controllers/components/authentication.html
*/
class AuthComponent extends Component
@@ -972,9 +974,11 @@ public function getAuthenticate($alias)
*/
public function flash($message)
{
if ($message !== false) {
$this->Flash->set($message, $this->_config['flash']);
if ($message === false) {
return;
}
$this->Flash->set($message, $this->_config['flash']);
}
/**

0 comments on commit 64eb8fa

Please sign in to comment.
You can’t perform that action at this time.