minor #16130 Fix docblocks about callables (nicolas-grekas)

This PR was merged into the 2.3 branch.

Discussion
----------

Fix docblocks about callables

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

a25beb6 Fix docblocks about callables
This commit is contained in:
Fabien Potencier 2015-10-06 08:16:33 +02:00
commit 1f2a51106f
6 changed files with 9 additions and 11 deletions

View File

@ -26,8 +26,8 @@ class CustomFilterIterator extends FilterIterator
/**
* Constructor.
*
* @param \Iterator $iterator The Iterator to filter
* @param array $filters An array of PHP callbacks
* @param \Iterator $iterator The Iterator to filter
* @param callable[] $filters An array of PHP callbacks
*
* @throws \InvalidArgumentException
*/

View File

@ -145,7 +145,7 @@ class ControllerResolver implements ControllerResolverInterface
*
* @param string $controller A Controller string
*
* @return mixed A PHP callable
* @return callable A PHP callable
*
* @throws \InvalidArgumentException
*/

View File

@ -29,8 +29,6 @@ class FilterControllerEvent extends KernelEvent
{
/**
* The current controller.
*
* @var callable
*/
private $controller;

View File

@ -1015,7 +1015,7 @@ class Process
*
* @param callback|null $callback The user defined PHP callback
*
* @return callback A PHP callable
* @return \Closure A PHP closure
*/
protected function buildCallback($callback)
{

View File

@ -354,8 +354,8 @@ class PhpEngine implements EngineInterface, \ArrayAccess
/**
* Adds an escaper for the given context.
*
* @param string $context The escaper context (html, js, ...)
* @param mixed $escaper A PHP callable
* @param string $context The escaper context (html, js, ...)
* @param callable $escaper A PHP callable
*/
public function setEscaper($context, $escaper)
{
@ -368,7 +368,7 @@ class PhpEngine implements EngineInterface, \ArrayAccess
*
* @param string $context The context name
*
* @return mixed $escaper A PHP callable
* @return callable $escaper A PHP callable
*
* @throws \InvalidArgumentException
*/

View File

@ -190,8 +190,8 @@ class PluralizationRules
/**
* Overrides the default plural rule for a given locale.
*
* @param string $rule A PHP callable
* @param string $locale The locale
* @param callable $rule A PHP callable
* @param string $locale The locale
*
* @throws \LogicException
*/