fixed types in phpdocs
This commit is contained in:
parent
2314328b16
commit
f72eb34fc4
@ -60,7 +60,7 @@ class Psr4ClassLoader
|
||||
/**
|
||||
* @param string $class
|
||||
*
|
||||
* @return Boolean
|
||||
* @return bool
|
||||
*/
|
||||
public function loadClass($class)
|
||||
{
|
||||
|
@ -150,7 +150,7 @@ class ProgressBar
|
||||
/**
|
||||
* Gets the progress bar start time.
|
||||
*
|
||||
* @return integer The progress bar start time
|
||||
* @return int The progress bar start time
|
||||
*/
|
||||
public function getStartTime()
|
||||
{
|
||||
@ -160,7 +160,7 @@ class ProgressBar
|
||||
/**
|
||||
* Gets the progress bar maximal steps.
|
||||
*
|
||||
* @return integer The progress bar max steps
|
||||
* @return int The progress bar max steps
|
||||
*/
|
||||
public function getMaxSteps()
|
||||
{
|
||||
@ -170,7 +170,7 @@ class ProgressBar
|
||||
/**
|
||||
* Gets the progress bar step.
|
||||
*
|
||||
* @return integer The progress bar step
|
||||
* @return int The progress bar step
|
||||
*/
|
||||
public function getStep()
|
||||
{
|
||||
@ -180,7 +180,7 @@ class ProgressBar
|
||||
/**
|
||||
* Gets the progress bar step width.
|
||||
*
|
||||
* @return integer The progress bar step width
|
||||
* @return int The progress bar step width
|
||||
*/
|
||||
public function getStepWidth()
|
||||
{
|
||||
@ -190,7 +190,7 @@ class ProgressBar
|
||||
/**
|
||||
* Gets the current progress bar percent.
|
||||
*
|
||||
* @return integer The current progress bar percent
|
||||
* @return int The current progress bar percent
|
||||
*/
|
||||
public function getProgressPercent()
|
||||
{
|
||||
@ -210,7 +210,7 @@ class ProgressBar
|
||||
/**
|
||||
* Gets the progress bar width.
|
||||
*
|
||||
* @return integer The progress bar size
|
||||
* @return int The progress bar size
|
||||
*/
|
||||
public function getBarWidth()
|
||||
{
|
||||
|
@ -372,7 +372,7 @@ class QuestionHelper extends Helper
|
||||
/**
|
||||
* Returns a valid unix shell.
|
||||
*
|
||||
* @return string|Boolean The valid shell name, false in case no valid shell is found
|
||||
* @return string|bool The valid shell name, false in case no valid shell is found
|
||||
*/
|
||||
private function getShell()
|
||||
{
|
||||
@ -399,7 +399,7 @@ class QuestionHelper extends Helper
|
||||
/**
|
||||
* Returns whether Stty is available or not.
|
||||
*
|
||||
* @return Boolean
|
||||
* @return bool
|
||||
*/
|
||||
private function hasSttyAvailable()
|
||||
{
|
||||
|
@ -318,7 +318,7 @@ class Table
|
||||
/**
|
||||
* Gets number of columns for this table.
|
||||
*
|
||||
* @return integer
|
||||
* @return int
|
||||
*/
|
||||
private function getNumberOfColumns()
|
||||
{
|
||||
@ -339,7 +339,7 @@ class Table
|
||||
*
|
||||
* @param int $column
|
||||
*
|
||||
* @return integer
|
||||
* @return int
|
||||
*/
|
||||
private function getColumnWidth($column)
|
||||
{
|
||||
@ -365,7 +365,7 @@ class Table
|
||||
* @param array $row
|
||||
* @param int $column
|
||||
*
|
||||
* @return integer
|
||||
* @return int
|
||||
*/
|
||||
private function getCellWidth(array $row, $column)
|
||||
{
|
||||
|
@ -63,7 +63,7 @@ class Question
|
||||
/**
|
||||
* Returns whether the user response must be hidden.
|
||||
*
|
||||
* @return Boolean
|
||||
* @return bool
|
||||
*/
|
||||
public function isHidden()
|
||||
{
|
||||
@ -93,7 +93,7 @@ class Question
|
||||
/**
|
||||
* In case the response can not be hidden, whether to fallback on non-hidden question or not.
|
||||
*
|
||||
* @return Boolean
|
||||
* @return bool
|
||||
*/
|
||||
public function isHiddenFallback()
|
||||
{
|
||||
@ -202,7 +202,7 @@ class Question
|
||||
*
|
||||
* Null means an unlimited number of attempts.
|
||||
*
|
||||
* @return null|integer
|
||||
* @return null|int
|
||||
*/
|
||||
public function getMaxAttempts()
|
||||
{
|
||||
|
@ -46,7 +46,7 @@ class ResizeFormListener implements EventSubscriberInterface
|
||||
protected $allowDelete;
|
||||
|
||||
/**
|
||||
* @var Boolean
|
||||
* @var bool
|
||||
*/
|
||||
private $deleteEmpty;
|
||||
|
||||
|
@ -128,7 +128,7 @@ class FormErrorIterator implements \RecursiveIterator, \SeekableIterator, \Array
|
||||
/**
|
||||
* Returns the current position of the iterator.
|
||||
*
|
||||
* @return integer The 0-indexed position.
|
||||
* @return int The 0-indexed position.
|
||||
*/
|
||||
public function key()
|
||||
{
|
||||
@ -138,7 +138,7 @@ class FormErrorIterator implements \RecursiveIterator, \SeekableIterator, \Array
|
||||
/**
|
||||
* Returns whether the iterator's position is valid.
|
||||
*
|
||||
* @return Boolean Whether the iterator is valid.
|
||||
* @return bool Whether the iterator is valid.
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
@ -161,7 +161,7 @@ class FormErrorIterator implements \RecursiveIterator, \SeekableIterator, \Array
|
||||
*
|
||||
* @param int $position The position
|
||||
*
|
||||
* @return Boolean Whether that position exists
|
||||
* @return bool Whether that position exists
|
||||
*/
|
||||
public function offsetExists($position)
|
||||
{
|
||||
@ -210,7 +210,7 @@ class FormErrorIterator implements \RecursiveIterator, \SeekableIterator, \Array
|
||||
* Returns whether the current element of the iterator can be recursed
|
||||
* into.
|
||||
*
|
||||
* @return Boolean Whether the current element is an instance of this class
|
||||
* @return bool Whether the current element is an instance of this class
|
||||
*/
|
||||
public function hasChildren()
|
||||
{
|
||||
@ -240,7 +240,7 @@ class FormErrorIterator implements \RecursiveIterator, \SeekableIterator, \Array
|
||||
*
|
||||
* $count = count($form->getErrors(true, true));
|
||||
*
|
||||
* @return integer The number of iterated elements
|
||||
* @return int The number of iterated elements
|
||||
*/
|
||||
public function count()
|
||||
{
|
||||
|
@ -107,7 +107,7 @@ class JsonResponse extends Response
|
||||
/**
|
||||
* Returns options used while encoding data to JSON.
|
||||
*
|
||||
* @return integer
|
||||
* @return int
|
||||
*/
|
||||
public function getEncodingOptions()
|
||||
{
|
||||
|
@ -441,7 +441,7 @@ class Process
|
||||
/**
|
||||
* Returns true in case the output is disabled, false otherwise.
|
||||
*
|
||||
* @return Boolean
|
||||
* @return bool
|
||||
*/
|
||||
public function isOutputDisabled()
|
||||
{
|
||||
@ -954,7 +954,7 @@ class Process
|
||||
/**
|
||||
* Returns PTY state.
|
||||
*
|
||||
* @return Boolean
|
||||
* @return bool
|
||||
*/
|
||||
public function isPty()
|
||||
{
|
||||
@ -1161,7 +1161,7 @@ class Process
|
||||
/**
|
||||
* Returns whether PTY is supported on the current operating system.
|
||||
*
|
||||
* @return Boolean
|
||||
* @return bool
|
||||
*/
|
||||
public static function isPtySupported()
|
||||
{
|
||||
|
@ -30,7 +30,7 @@ class ProcessPipes
|
||||
private $useFiles;
|
||||
/** @var bool */
|
||||
private $ttyMode;
|
||||
/** @var Boolean */
|
||||
/** @var bool */
|
||||
private $ptyMode;
|
||||
|
||||
const CHUNK_SIZE = 16384;
|
||||
|
@ -497,7 +497,7 @@ class PropertyAccessor implements PropertyAccessorInterface
|
||||
* @param object $object The object to write to
|
||||
* @param string $property The property to write
|
||||
*
|
||||
* @return Boolean Whether the property is writable
|
||||
* @return bool Whether the property is writable
|
||||
*/
|
||||
private function isPropertyWritable($object, $property)
|
||||
{
|
||||
|
@ -92,7 +92,7 @@ interface PropertyAccessorInterface
|
||||
* @param object|array $objectOrArray The object or array to check
|
||||
* @param string|PropertyPathInterface $propertyPath The property path to check
|
||||
*
|
||||
* @return Boolean Whether the value can be set
|
||||
* @return bool Whether the value can be set
|
||||
*
|
||||
* @throws Exception\InvalidArgumentException If the property path is invalid
|
||||
*/
|
||||
@ -107,7 +107,7 @@ interface PropertyAccessorInterface
|
||||
* @param object|array $objectOrArray The object or array to check
|
||||
* @param string|PropertyPathInterface $propertyPath The property path to check
|
||||
*
|
||||
* @return Boolean Whether the property path can be read
|
||||
* @return bool Whether the property path can be read
|
||||
*
|
||||
* @throws Exception\InvalidArgumentException If the property path is invalid
|
||||
*/
|
||||
|
@ -252,7 +252,7 @@ class Route implements \Serializable
|
||||
*
|
||||
* @param string $scheme
|
||||
*
|
||||
* @return Boolean true if the scheme requirement exists, otherwise false
|
||||
* @return bool true if the scheme requirement exists, otherwise false
|
||||
*/
|
||||
public function hasScheme($scheme)
|
||||
{
|
||||
|
@ -198,7 +198,7 @@ class MaskBuilder
|
||||
*
|
||||
* @param mixed $code
|
||||
*
|
||||
* @return integer
|
||||
* @return int
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
|
@ -26,7 +26,7 @@ class EmailValidator extends ConstraintValidator
|
||||
/**
|
||||
* isStrict
|
||||
*
|
||||
* @var Boolean
|
||||
* @var bool
|
||||
*/
|
||||
private $isStrict;
|
||||
|
||||
|
@ -111,7 +111,7 @@ class GroupSequence implements \ArrayAccess, \IteratorAggregate, \Countable
|
||||
*
|
||||
* @param int $offset The offset
|
||||
*
|
||||
* @return Boolean Whether the offset exists
|
||||
* @return bool Whether the offset exists
|
||||
*
|
||||
* @deprecated Implemented for backwards compatibility with Symfony < 2.5.
|
||||
* To be removed in Symfony 3.0.
|
||||
@ -181,7 +181,7 @@ class GroupSequence implements \ArrayAccess, \IteratorAggregate, \Countable
|
||||
/**
|
||||
* Returns the number of groups in the sequence.
|
||||
*
|
||||
* @return integer The number of groups
|
||||
* @return int The number of groups
|
||||
*
|
||||
* @deprecated Implemented for backwards compatibility with Symfony < 2.5.
|
||||
* To be removed in Symfony 3.0.
|
||||
|
@ -29,13 +29,13 @@ class Isbn extends Constraint
|
||||
|
||||
/**
|
||||
* @deprecated Deprecated since version 2.5, to be removed in 3.0. Use option "type" instead.
|
||||
* @var Boolean
|
||||
* @var bool
|
||||
*/
|
||||
public $isbn10 = false;
|
||||
|
||||
/**
|
||||
* @deprecated Deprecated since version 2.5, to be removed in 3.0. Use option "type" instead.
|
||||
* @var Boolean
|
||||
* @var bool
|
||||
*/
|
||||
public $isbn13 = false;
|
||||
|
||||
|
@ -155,7 +155,7 @@ interface ExecutionContextInterface extends LegacyExecutionContextInterface
|
||||
* @param string $groupHash The group's name or hash, if it is group
|
||||
* sequence
|
||||
*
|
||||
* @return Boolean Whether the object was already validated for that
|
||||
* @return bool Whether the object was already validated for that
|
||||
* group
|
||||
*
|
||||
* @internal Used by the validator engine. Should not be called by user
|
||||
@ -180,7 +180,7 @@ interface ExecutionContextInterface extends LegacyExecutionContextInterface
|
||||
* @param string $cacheKey The hash of the object
|
||||
* @param string $constraintHash The hash of the constraint
|
||||
*
|
||||
* @return Boolean Whether the constraint was already validated
|
||||
* @return bool Whether the constraint was already validated
|
||||
*
|
||||
* @internal Used by the validator engine. Should not be called by user
|
||||
* code.
|
||||
|
@ -99,7 +99,7 @@ class ClassMetadata extends ElementMetadata implements LegacyMetadataInterface,
|
||||
*
|
||||
* By default, only instances of {@link \Traversable} are traversed.
|
||||
*
|
||||
* @var integer
|
||||
* @var int
|
||||
*
|
||||
* @internal This property is public in order to reduce the size of the
|
||||
* class' serialized representation. Do not access it. Use
|
||||
@ -491,7 +491,7 @@ class ClassMetadata extends ElementMetadata implements LegacyMetadataInterface,
|
||||
/**
|
||||
* Class nodes are never cascaded.
|
||||
*
|
||||
* @return Boolean Always returns false.
|
||||
* @return bool Always returns false.
|
||||
*/
|
||||
public function getCascadingStrategy()
|
||||
{
|
||||
|
@ -46,7 +46,7 @@ interface ClassMetadataInterface extends MetadataInterface, LegacyPropertyMetada
|
||||
*
|
||||
* If it is, you can access the group sequence with {@link getGroupSequence()}.
|
||||
*
|
||||
* @return Boolean Returns true if the "Default" group is overridden
|
||||
* @return bool Returns true if the "Default" group is overridden
|
||||
*
|
||||
* @see \Symfony\Component\Validator\Constraints\GroupSequence
|
||||
*/
|
||||
@ -71,7 +71,7 @@ interface ClassMetadataInterface extends MetadataInterface, LegacyPropertyMetada
|
||||
* This interface will be used to obtain the group sequence when an object
|
||||
* of this class is validated.
|
||||
*
|
||||
* @return Boolean Returns true if the "Default" group is overridden by
|
||||
* @return bool Returns true if the "Default" group is overridden by
|
||||
* a dynamic group sequence
|
||||
*
|
||||
* @see \Symfony\Component\Validator\GroupSequenceProviderInterface
|
||||
|
@ -146,7 +146,7 @@ class LazyLoadingMetadataFactory implements MetadataFactoryInterface
|
||||
*
|
||||
* @param string|object $value A class name or an object
|
||||
*
|
||||
* @return Boolean Whether metadata can be returned for that class
|
||||
* @return bool Whether metadata can be returned for that class
|
||||
*/
|
||||
public function hasMetadataFor($value)
|
||||
{
|
||||
|
@ -51,7 +51,7 @@ class GenericMetadata implements MetadataInterface
|
||||
*
|
||||
* By default, objects are not cascaded.
|
||||
*
|
||||
* @var integer
|
||||
* @var int
|
||||
*
|
||||
* @see CascadingStrategy
|
||||
*
|
||||
@ -66,7 +66,7 @@ class GenericMetadata implements MetadataInterface
|
||||
*
|
||||
* By default, traversable objects are not traversed.
|
||||
*
|
||||
* @var integer
|
||||
* @var int
|
||||
*
|
||||
* @see TraversalStrategy
|
||||
*
|
||||
@ -192,7 +192,7 @@ class GenericMetadata implements MetadataInterface
|
||||
/**
|
||||
* Returns whether this element has any constraints.
|
||||
*
|
||||
* @return Boolean
|
||||
* @return bool
|
||||
*/
|
||||
public function hasConstraints()
|
||||
{
|
||||
|
@ -34,7 +34,7 @@ interface MetadataInterface extends LegacyMetadataInterface
|
||||
/**
|
||||
* Returns the strategy for cascading objects.
|
||||
*
|
||||
* @return integer The cascading strategy
|
||||
* @return int The cascading strategy
|
||||
*
|
||||
* @see CascadingStrategy
|
||||
*/
|
||||
@ -43,7 +43,7 @@ interface MetadataInterface extends LegacyMetadataInterface
|
||||
/**
|
||||
* Returns the strategy for traversing traversable objects.
|
||||
*
|
||||
* @return integer The traversal strategy
|
||||
* @return int The traversal strategy
|
||||
*
|
||||
* @see TraversalStrategy
|
||||
*/
|
||||
|
@ -97,7 +97,7 @@ class ValidatorBuilder implements ValidatorBuilderInterface
|
||||
private $propertyAccessor;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
* @var int
|
||||
*/
|
||||
private $apiVersion;
|
||||
|
||||
|
@ -68,7 +68,7 @@ class ConstraintViolationBuilder implements ConstraintViolationBuilderInterface
|
||||
private $translationDomain;
|
||||
|
||||
/**
|
||||
* @var integer|null
|
||||
* @var int|null
|
||||
*/
|
||||
private $plural;
|
||||
|
||||
|
Reference in New Issue
Block a user