Skip to content

Commit

Permalink
fixed types in phpdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Apr 16, 2014
1 parent cc64605 commit cf2f027
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ButtonBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function __construct($name, array $options = array())
*
* This method should not be invoked.
*
* @param string|integer|FormBuilderInterface $child
* @param string|int|FormBuilderInterface $child
* @param string|FormTypeInterface $type
* @param array $options
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function __construct($precision = null, $grouping = null, $roundingMode =
/**
* Transforms a number type into localized number.
*
* @param int |float $value Number value.
* @param int|float $value Number value.
*
* @return string Localized value.
*
Expand Down
2 changes: 1 addition & 1 deletion FormBuilderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
4 changes: 2 additions & 2 deletions FormConfigBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -879,7 +879,7 @@ public function getFormConfig()
/**
* 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.
Expand Down
2 changes: 1 addition & 1 deletion FormError.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
4 changes: 2 additions & 2 deletions FormFactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function create($type = 'form', $data = null, array $options = array());
*
* @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
Expand Down Expand Up @@ -79,7 +79,7 @@ public function createBuilder($type = 'form', $data = null, array $options = arr
/**
* 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
Expand Down
2 changes: 1 addition & 1 deletion FormInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function getParent();
/**
* 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.
*
Expand Down

0 comments on commit cf2f027

Please sign in to comment.