fixed types in phpdocs

This commit is contained in:
Fabien Potencier 2014-04-16 08:51:57 +02:00
parent c2e134fbb9
commit a693545324
32 changed files with 48 additions and 48 deletions

View File

@ -74,8 +74,8 @@ class RedirectController extends ContainerAware
* @param string $path The absolute path or URL to redirect to
* @param bool $permanent Whether the redirect is permanent or not
* @param string|null $scheme The URL scheme (null to keep the current one)
* @param int |null $httpPort The HTTP port (null to keep the current one for the same scheme or the configured port in the container)
* @param int |null $httpsPort The HTTPS port (null to keep the current one for the same scheme or the configured port in the container)
* @param int|null $httpPort The HTTP port (null to keep the current one for the same scheme or the configured port in the container)
* @param int|null $httpsPort The HTTPS port (null to keep the current one for the same scheme or the configured port in the container)
*
* @return Response A Response instance
*

View File

@ -105,7 +105,7 @@ class ArrayNodeDefinition extends NodeDefinition implements ParentNodeDefinition
/**
* Adds children with a default value when none are defined.
*
* @param int |string|array|null $children The number of children|The child name|The children names to be added
* @param int|string|array|null $children The number of children|The child name|The children names to be added
*
* This method is applicable to prototype nodes only.
*

View File

@ -124,7 +124,7 @@ class PrototypedArrayNode extends ArrayNode
/**
* Adds default children when none are set.
*
* @param int |string|array|null $children The number of children|The child name|The children names to be added
* @param int|string|array|null $children The number of children|The child name|The children names to be added
*/
public function setAddChildrenIfNoneSet($children = array('defaults'))
{

View File

@ -32,7 +32,7 @@ class DialogHelper extends Helper
* @param string|array $question The question to ask
* @param array $choices List of choices to pick from
* @param bool|string $default The default answer if the user enters nothing
* @param bool|integer $attempts Max number of times to ask before giving up (false by default, which means infinite)
* @param bool|int $attempts Max number of times to ask before giving up (false by default, which means infinite)
* @param string $errorMessage Message which will be shown if invalid value from choice list would be picked
* @param bool $multiselect Select more than one value separated by comma
*

View File

@ -178,7 +178,7 @@ class ProgressHelper extends Helper
* Starts the progress output.
*
* @param OutputInterface $output An Output instance
* @param int |null $max Maximum steps
* @param int|null $max Maximum steps
*/
public function start(OutputInterface $output, $max = null)
{

View File

@ -145,7 +145,7 @@ abstract class Input implements InputInterface
/**
* Returns true if an InputArgument object exists by name or position.
*
* @param string|integer $name The InputArgument name or position
* @param string|int $name The InputArgument name or position
*
* @return Boolean true if the InputArgument object exists, false otherwise
*/
@ -186,7 +186,7 @@ abstract class Input implements InputInterface
* Sets an option value by name.
*
* @param string $name The option name
* @param string|boolean $value The option value
* @param string|bool $value The option value
*
* @throws \InvalidArgumentException When option given doesn't exist
*/

View File

@ -148,7 +148,7 @@ class InputDefinition
/**
* Returns an InputArgument by name or by position.
*
* @param string|integer $name The InputArgument name or position
* @param string|int $name The InputArgument name or position
*
* @return InputArgument An InputArgument object
*
@ -170,7 +170,7 @@ class InputDefinition
/**
* Returns true if an InputArgument object exists by name or position.
*
* @param string|integer $name The InputArgument name or position
* @param string|int $name The InputArgument name or position
*
* @return Boolean true if the InputArgument object exists, false otherwise
*

View File

@ -95,7 +95,7 @@ interface InputInterface
/**
* Returns true if an InputArgument object exists by name or position.
*
* @param string|integer $name The InputArgument name or position
* @param string|int $name The InputArgument name or position
*
* @return Boolean true if the InputArgument object exists, false otherwise
*/
@ -121,7 +121,7 @@ interface InputInterface
* Sets an option value by name.
*
* @param string $name The option name
* @param string|boolean $value The option value
* @param string|bool $value The option value
*
* @throws \InvalidArgumentException When option given doesn't exist
*/

View File

@ -446,7 +446,7 @@ class Filesystem
*
* @param string $filename The file to be written to.
* @param string $content The data to write into the file.
* @param null|integer $mode The file mode (octal). If null, file permissions are not modified
* @param null|int $mode The file mode (octal). If null, file permissions are not modified
* Deprecated since version 2.3.12, to be removed in 3.0.
* @throws IOException If the file cannot be written to.
*/

View File

@ -94,7 +94,7 @@ interface AdapterInterface
public function setFilters(array $filters);
/**
* @param \Closure|integer $sort
* @param \Closure|int $sort
*
* @return AdapterInterface Current instance
*/

View File

@ -31,7 +31,7 @@ class SortableIterator implements \IteratorAggregate
* Constructor.
*
* @param \Traversable $iterator The Iterator to filter
* @param int |callback $sort The sort type (SORT_BY_NAME, SORT_BY_TYPE, or a PHP callback)
* @param int|callback $sort The sort type (SORT_BY_NAME, SORT_BY_TYPE, or a PHP callback)
*
* @throws \InvalidArgumentException
*/

View File

@ -75,7 +75,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
*
* This method should not be invoked.
*
* @param string|integer|FormBuilderInterface $child
* @param string|int|FormBuilderInterface $child
* @param string|FormTypeInterface $type
* @param array $options
*

View File

@ -55,7 +55,7 @@ class NumberToLocalizedStringTransformer implements DataTransformerInterface
/**
* Transforms a number type into localized number.
*
* @param int |float $value Number value.
* @param int|float $value Number value.
*
* @return string Localized value.
*

View File

@ -23,7 +23,7 @@ interface FormBuilderInterface extends \Traversable, \Countable, FormConfigBuild
* If you add a nested group, this group should also be represented in the
* object hierarchy.
*
* @param string|integer|FormBuilderInterface $child
* @param string|int|FormBuilderInterface $child
* @param string|FormTypeInterface $type
* @param array $options
*

View File

@ -180,7 +180,7 @@ class FormConfigBuilder implements FormConfigBuilderInterface
/**
* Creates an empty form configuration.
*
* @param string|integer $name The form name
* @param string|int $name The form name
* @param string $dataClass The class of the form's data
* @param EventDispatcherInterface $dispatcher The event dispatcher
* @param array $options The form options
@ -879,7 +879,7 @@ class FormConfigBuilder implements FormConfigBuilderInterface
/**
* Validates whether the given variable is a valid form name.
*
* @param string|integer $name The tested form name.
* @param string|int $name The tested form name.
*
* @throws UnexpectedTypeException If the name is not a string or an integer.
* @throws InvalidArgumentException If the name contains invalid characters.

View File

@ -51,7 +51,7 @@ class FormError
* @param string|null $messageTemplate The template for the error message
* @param array $messageParameters The parameters that should be
* substituted in the message template.
* @param int |null $messagePluralization The value for error message pluralization
* @param int|null $messagePluralization The value for error message pluralization
*
* @see \Symfony\Component\Translation\Translator
*/

View File

@ -36,7 +36,7 @@ interface FormFactoryInterface
*
* @see createNamedBuilder()
*
* @param string|integer $name The name of the form
* @param string|int $name The name of the form
* @param string|FormTypeInterface $type The type of the form
* @param mixed $data The initial data
* @param array $options The options
@ -79,7 +79,7 @@ interface FormFactoryInterface
/**
* Returns a form builder.
*
* @param string|integer $name The name of the form
* @param string|int $name The name of the form
* @param string|FormTypeInterface $type The type of the form
* @param mixed $data The initial data
* @param array $options The options

View File

@ -41,7 +41,7 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable
/**
* Adds or replaces a child to the form.
*
* @param FormInterface|string|integer $child The FormInterface instance or the name of the child.
* @param FormInterface|string|int $child The FormInterface instance or the name of the child.
* @param string|null $type The child's type, if a name was passed.
* @param array $options The child's options, if a name was passed.
*

View File

@ -33,7 +33,7 @@ class Cookie
*
* @param string $name The name of the cookie
* @param string $value The value of the cookie
* @param int |string|\DateTime $expire The time the cookie expires
* @param int|string|\DateTime $expire The time the cookie expires
* @param string $path The path on the server in which the cookie will be available on
* @param string $domain The domain that the cookie is available to
* @param bool $secure Whether the cookie should only be transmitted over a secure HTTPS connection from the client

View File

@ -22,7 +22,7 @@ class TooManyRequestsHttpException extends HttpException
/**
* Constructor.
*
* @param int |string $retryAfter The number of seconds or HTTP-date after which the request may be retried
* @param int|string $retryAfter The number of seconds or HTTP-date after which the request may be retried
* @param string $message The internal exception message
* @param \Exception $previous The previous exception
* @param int $code The internal exception code

View File

@ -87,7 +87,7 @@ class MongoDbProfilerStorage implements ProfilerStorageInterface
$result = $this->getMongo()->update(array('_id' => $profile->getToken()), array_filter($record, function ($v) { return !empty($v); }), array('upsert' => true));
return (boolean) (isset($result['ok']) ? $result['ok'] : $result);
return (bool) (isset($result['ok']) ? $result['ok'] : $result);
}
/**

View File

@ -168,7 +168,7 @@ class MemcacheMock
* Retrieve item from the server.
*
* @param string|array $key
* @param int |array $flags
* @param int|array $flags
*
* @return mixed
*/

View File

@ -187,7 +187,7 @@ class IntlDateFormatter
/**
* Format the date/time value (timestamp) as a string
*
* @param int |\DateTime $timestamp The timestamp to format. \DateTime objects
* @param int|\DateTime $timestamp The timestamp to format. \DateTime objects
* are supported as of PHP 5.3.4.
*
* @return string|Boolean The formatted value or false if formatting failed.

View File

@ -693,7 +693,7 @@ class NumberFormatter
/**
* Rounds a value.
*
* @param int |float $value The value to round
* @param int|float $value The value to round
* @param int $precision The number of decimal digits to round to
*
* @return integer|float The rounded value
@ -711,7 +711,7 @@ class NumberFormatter
/**
* Formats a number.
*
* @param int |float $value The numeric value to format
* @param int|float $value The numeric value to format
* @param int $precision The number of decimal digits to use
*
* @return string The formatted number
@ -726,7 +726,7 @@ class NumberFormatter
/**
* Returns the precision value if the DECIMAL style is being used and the FRACTION_DIGITS attribute is unitialized.
*
* @param int |float $value The value to get the precision from if the FRACTION_DIGITS attribute is unitialized
* @param int|float $value The value to get the precision from if the FRACTION_DIGITS attribute is unitialized
* @param int $precision The precision value to returns if the FRACTION_DIGITS attribute is initialized
*
* @return int The precision value

View File

@ -46,7 +46,7 @@ class IcuVersion
* @param string $version1 A version string.
* @param string $version2 A version string to compare.
* @param string $operator The comparison operator.
* @param int |null $precision The number of components to compare. Pass
* @param int|null $precision The number of components to compare. Pass
* NULL to compare the versions unchanged.
*
* @return Boolean Whether the comparison succeeded.
@ -81,7 +81,7 @@ class IcuVersion
* // => '12.3'
*
* @param string $version An ICU version string.
* @param int |null $precision The number of components to include. Pass
* @param int|null $precision The number of components to include. Pass
* NULL to return the version unchanged.
*
* @return string|null The normalized ICU version or NULL if it couldn't be

View File

@ -36,7 +36,7 @@ class Version
* @param string $version1 A version string.
* @param string $version2 A version string to compare.
* @param string $operator The comparison operator.
* @param int |null $precision The number of components to compare. Pass
* @param int|null $precision The number of components to compare. Pass
* NULL to compare the versions unchanged.
*
* @return Boolean Whether the comparison succeeded.
@ -64,7 +64,7 @@ class Version
* // => '1.2'
*
* @param string $version A version string.
* @param int |null $precision The number of components to include. Pass
* @param int|null $precision The number of components to include. Pass
* NULL to return the version unchanged.
*
* @return string|null The normalized version or NULL if it couldn't be

View File

@ -123,7 +123,7 @@ class Process
* @param string|null $cwd The working directory or null to use the working dir of the current PHP process
* @param array|null $env The environment variables or null to inherit
* @param string|null $stdin The STDIN content
* @param int |float|null $timeout The timeout in seconds or null to disable
* @param int|float|null $timeout The timeout in seconds or null to disable
* @param array $options An array of options for proc_open
*
* @throws RuntimeException When proc_open is not installed
@ -646,7 +646,7 @@ class Process
/**
* Stops the process.
*
* @param int |float $timeout The timeout in seconds
* @param int|float $timeout The timeout in seconds
* @param int $signal A POSIX signal to send in case the process has not stop at timeout, default is SIGKILL
*
* @return integer The exit-code of the process
@ -746,7 +746,7 @@ class Process
*
* To disable the timeout, set this value to null.
*
* @param int |float|null $timeout The timeout in seconds
* @param int|float|null $timeout The timeout in seconds
*
* @return self The current Process instance
*

View File

@ -142,7 +142,7 @@ class PropertyAccessor implements PropertyAccessorInterface
* Reads a key from an array-like structure.
*
* @param \ArrayAccess|array $array The array or \ArrayAccess object to read from
* @param string|integer $index The key to read
* @param string|int $index The key to read
*
* @return mixed The value of the key
*
@ -254,7 +254,7 @@ class PropertyAccessor implements PropertyAccessorInterface
* Sets the value of the property at the given index in the path
*
* @param \ArrayAccess|array $array An array or \ArrayAccess object to write to
* @param string|integer $index The index to write at
* @param string|int $index The index to write at
* @param mixed $value The value to write
*
* @throws NoSuchPropertyException If the array does not implement \ArrayAccess or it is not an array

View File

@ -415,7 +415,7 @@ class MutableAclProvider extends AclProvider implements MutableAclProviderInterf
* Constructs the SQL for inserting an ACE.
*
* @param int $classId
* @param int |null $objectIdentityId
* @param int|null $objectIdentityId
* @param string|null $field
* @param int $aceOrder
* @param int $securityIdentityId

View File

@ -213,7 +213,7 @@ class StopwatchEvent
/**
* Formats a time.
*
* @param int |float $time A raw time
* @param int|float $time A raw time
*
* @return float The formatted time
*

View File

@ -72,7 +72,7 @@ class ConstraintViolation implements ConstraintViolationInterface
* value.
* @param mixed $invalidValue The invalid value causing the
* violation.
* @param int |null $messagePluralization The pluralization parameter.
* @param int|null $messagePluralization The pluralization parameter.
* @param mixed $code The error code of the
* violation, if any.
*/

View File

@ -91,8 +91,8 @@ interface ExecutionContextInterface
* @param string $message The error message.
* @param array $params The parameters substituted in the error message.
* @param mixed $invalidValue The invalid, validated value.
* @param int |null $pluralization The number to use to pluralize of the message.
* @param int |null $code The violation code.
* @param int|null $pluralization The number to use to pluralize of the message.
* @param int|null $code The violation code.
*
* @api
*/
@ -106,8 +106,8 @@ interface ExecutionContextInterface
* @param string $message The error message.
* @param array $params The parameters substituted in the error message.
* @param mixed $invalidValue The invalid, validated value.
* @param int |null $pluralization The number to use to pluralize of the message.
* @param int |null $code The violation code.
* @param int|null $pluralization The number to use to pluralize of the message.
* @param int|null $code The violation code.
*
* @api
*/