Skip to content

Commit

Permalink
Merge pull request slimphp#1585 from jpkleemans/patch-1
Browse files Browse the repository at this point in the history
PHPDoc consistency
  • Loading branch information
silentworks committed Nov 18, 2015
2 parents 745eeb1 + 850a32f commit e80b0f8
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions Slim/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,22 +161,22 @@ private function registerDefaultServices($userSettings)
};
}

/**
* This service MUST return a callable
* that accepts three arguments:
*
* 1. Instance of \Psr\Http\Message\ServerRequestInterface
* 2. Instance of \Psr\Http\Message\ResponseInterface
* 3. Instance of \Exception
*
* The callable MUST return an instance of
* \Psr\Http\Message\ResponseInterface.
*
* @param Container $c
*
* @return callable
*/
if (!isset($this['errorHandler'])) {
/**
* This service MUST return a callable
* that accepts three arguments:
*
* 1. Instance of \Psr\Http\Message\ServerRequestInterface
* 2. Instance of \Psr\Http\Message\ResponseInterface
* 3. Instance of \Exception
*
* The callable MUST return an instance of
* \Psr\Http\Message\ResponseInterface.
*
* @param Container $c
*
* @return callable
*/
$this['errorHandler'] = function ($c) {
return new Error($c->get('settings')['displayErrorDetails']);
};
Expand Down

0 comments on commit e80b0f8

Please sign in to comment.