made types consistent with those defined in Hack
This commit is contained in:
parent
03f0c2de8a
commit
041cb7b103
@ -60,7 +60,7 @@ class ConsoleHandler extends AbstractProcessingHandler implements EventSubscribe
|
||||
*
|
||||
* @param OutputInterface|null $output The console output to use (the handler remains disabled when passing null
|
||||
* until the output is set, e.g. by using console events)
|
||||
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack
|
||||
* @param bool $bubble Whether the messages that are handled can bubble up the stack
|
||||
* @param array $verbosityLevelMap Array that maps the OutputInterface verbosity to a minimum logging
|
||||
* level (leave empty to use the default mapping)
|
||||
*/
|
||||
|
@ -75,7 +75,7 @@ abstract class Descriptor implements DescriptorInterface
|
||||
* Writes content to output.
|
||||
*
|
||||
* @param string $content
|
||||
* @param boolean $decorated
|
||||
* @param bool $decorated
|
||||
*/
|
||||
protected function write($content, $decorated = false)
|
||||
{
|
||||
@ -86,7 +86,7 @@ abstract class Descriptor implements DescriptorInterface
|
||||
* Writes content to output.
|
||||
*
|
||||
* @param TableHelper $table
|
||||
* @param boolean $decorated
|
||||
* @param bool $decorated
|
||||
*/
|
||||
protected function renderTable(TableHelper $table, $decorated = false)
|
||||
{
|
||||
@ -248,7 +248,7 @@ abstract class Descriptor implements DescriptorInterface
|
||||
|
||||
/**
|
||||
* @param ContainerBuilder $builder
|
||||
* @param boolean $showPrivate
|
||||
* @param bool $showPrivate
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
|
@ -172,7 +172,7 @@ class JsonDescriptor extends Descriptor
|
||||
|
||||
/**
|
||||
* @param Definition $definition
|
||||
* @param boolean $omitTags
|
||||
* @param bool $omitTags
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
|
@ -212,7 +212,7 @@ class XmlDescriptor extends Descriptor
|
||||
|
||||
/**
|
||||
* @param ContainerBuilder $builder
|
||||
* @param boolean $showPrivate
|
||||
* @param bool $showPrivate
|
||||
*
|
||||
* @return \DOMDocument
|
||||
*/
|
||||
@ -260,7 +260,7 @@ class XmlDescriptor extends Descriptor
|
||||
/**
|
||||
* @param ContainerBuilder $builder
|
||||
* @param string|null $tag
|
||||
* @param boolean $showPrivate
|
||||
* @param bool $showPrivate
|
||||
*
|
||||
* @return \DOMDocument
|
||||
*/
|
||||
@ -288,7 +288,7 @@ class XmlDescriptor extends Descriptor
|
||||
/**
|
||||
* @param Definition $definition
|
||||
* @param string|null $id
|
||||
* @param boolean $omitTags
|
||||
* @param bool $omitTags
|
||||
*
|
||||
* @return \DOMDocument
|
||||
*/
|
||||
|
@ -43,8 +43,8 @@ class XmlReferenceDumper
|
||||
|
||||
/**
|
||||
* @param NodeInterface $node
|
||||
* @param integer $depth
|
||||
* @param Boolean $root If the node is the root node
|
||||
* @param int $depth
|
||||
* @param bool $root If the node is the root node
|
||||
* @param string $namespace The namespace of the node
|
||||
*/
|
||||
private function writeNode(NodeInterface $node, $depth = 0, $root = false, $namespace = null)
|
||||
|
@ -45,7 +45,7 @@ class YamlReferenceDumper
|
||||
|
||||
/**
|
||||
* @param NodeInterface $node
|
||||
* @param integer $depth
|
||||
* @param int $depth
|
||||
*/
|
||||
private function writeNode(NodeInterface $node, $depth = 0)
|
||||
{
|
||||
|
@ -820,8 +820,8 @@ class Application
|
||||
*
|
||||
* Can be useful to force terminal dimensions for functional tests.
|
||||
*
|
||||
* @param integer $width The width
|
||||
* @param integer $height The height
|
||||
* @param int $width The width
|
||||
* @param int $height The height
|
||||
*
|
||||
* @return Application The current application
|
||||
*/
|
||||
|
@ -60,7 +60,7 @@ abstract class Descriptor implements DescriptorInterface
|
||||
* Writes content to output.
|
||||
*
|
||||
* @param string $content
|
||||
* @param boolean $decorated
|
||||
* @param bool $decorated
|
||||
*/
|
||||
protected function write($content, $decorated = false)
|
||||
{
|
||||
|
@ -81,7 +81,7 @@ class ErrorHandler
|
||||
/**
|
||||
* Sets the level at which the conversion to Exception is done.
|
||||
*
|
||||
* @param integer|null $level The level (null to use the error_reporting() value and 0 to disable)
|
||||
* @param int|null $level The level (null to use the error_reporting() value and 0 to disable)
|
||||
*/
|
||||
public function setLevel($level)
|
||||
{
|
||||
@ -91,7 +91,7 @@ class ErrorHandler
|
||||
/**
|
||||
* Sets the display_errors flag value.
|
||||
*
|
||||
* @param integer $displayErrors The display_errors flag value
|
||||
* @param int $displayErrors The display_errors flag value
|
||||
*/
|
||||
public function setDisplayErrors($displayErrors)
|
||||
{
|
||||
|
@ -32,9 +32,9 @@ class Token
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param integer $type The type of the token
|
||||
* @param int $type The type of the token
|
||||
* @param string $value The token value
|
||||
* @param integer $cursor The cursor position in the source
|
||||
* @param int $cursor The cursor position in the source
|
||||
*/
|
||||
public function __construct($type, $value, $cursor)
|
||||
{
|
||||
@ -56,7 +56,7 @@ class Token
|
||||
/**
|
||||
* Tests the current token for a type and/or a value.
|
||||
*
|
||||
* @param array|integer $type The type to test
|
||||
* @param array|int $type The type to test
|
||||
* @param string|null $value The token value
|
||||
*
|
||||
* @return Boolean
|
||||
|
@ -248,7 +248,7 @@ class NumberToLocalizedStringTransformer implements DataTransformerInterface
|
||||
/**
|
||||
* Rounds a number according to the configured precision and rounding mode.
|
||||
*
|
||||
* @param integer|float $number A number.
|
||||
* @param int|float $number A number.
|
||||
*
|
||||
* @return integer|float The rounded number.
|
||||
*/
|
||||
|
@ -57,7 +57,7 @@ class MetadataBag implements SessionBagInterface
|
||||
* Constructor.
|
||||
*
|
||||
* @param string $storageKey The key used to store bag in the session.
|
||||
* @param integer $updateThreshold The time to wait between two UPDATED updates
|
||||
* @param int $updateThreshold The time to wait between two UPDATED updates
|
||||
*/
|
||||
public function __construct($storageKey = '_sf2_meta', $updateThreshold = 0)
|
||||
{
|
||||
|
@ -54,7 +54,7 @@ class StreamedResponse extends Response
|
||||
* Factory method for chainability
|
||||
*
|
||||
* @param callable|null $callback A valid PHP callback or null to set it later
|
||||
* @param integer $status The response status code
|
||||
* @param int $status The response status code
|
||||
* @param array $headers An array of response headers
|
||||
*
|
||||
* @return StreamedResponse
|
||||
|
@ -807,7 +807,7 @@ class Process
|
||||
*
|
||||
* To disable the timeout, set this value to null.
|
||||
*
|
||||
* @param integer|float|null $timeout The timeout in seconds
|
||||
* @param int|float|null $timeout The timeout in seconds
|
||||
*
|
||||
* @return self The current Process instance.
|
||||
*
|
||||
@ -1136,7 +1136,7 @@ class Process
|
||||
/**
|
||||
* Validates and returns the filtered timeout.
|
||||
*
|
||||
* @param integer|float|null $timeout
|
||||
* @param int|float|null $timeout
|
||||
*
|
||||
* @return float|null
|
||||
*/
|
||||
|
@ -41,7 +41,7 @@ class UriSafeTokenGenerator implements TokenGeneratorInterface
|
||||
*
|
||||
* @param SecureRandomInterface|null $random The random value generator used for
|
||||
* generating entropy
|
||||
* @param integer $entropy The amount of entropy collected for
|
||||
* @param int $entropy The amount of entropy collected for
|
||||
* each token (in bits)
|
||||
*/
|
||||
public function __construct(SecureRandomInterface $random = null, $entropy = 256)
|
||||
|
@ -54,7 +54,7 @@ class JsonFileLoader extends ArrayLoader implements LoaderInterface
|
||||
/**
|
||||
* Translates JSON_ERROR_* constant into meaningful message.
|
||||
*
|
||||
* @param integer $errorCode Error code returned by json_last_error() call
|
||||
* @param int $errorCode Error code returned by json_last_error() call
|
||||
*
|
||||
* @return string Message string
|
||||
*/
|
||||
|
Reference in New Issue
Block a user