[CS] Enforces null type hint on last position in phpDocs

This commit is contained in:
Gabriel Caruso 2018-10-02 00:12:00 -03:00
parent a1312fa4b2
commit efbba25577
No known key found for this signature in database
GPG Key ID: EA85C7988F5A6877
50 changed files with 86 additions and 86 deletions

View File

@ -453,7 +453,7 @@ abstract class AbstractDoctrineExtension extends Extension
/** /**
* Search for a manager that is declared as 'auto_mapping' = true. * Search for a manager that is declared as 'auto_mapping' = true.
* *
* @return null|string The name of the manager. If no one manager is found, returns null * @return string|null The name of the manager. If no one manager is found, returns null
* *
* @throws \LogicException * @throws \LogicException
*/ */

View File

@ -45,7 +45,7 @@ class DoctrineChoiceLoader implements ChoiceLoaderInterface
* @param ObjectManager $manager The object manager * @param ObjectManager $manager The object manager
* @param string $class The class name of the loaded objects * @param string $class The class name of the loaded objects
* @param IdReader $idReader The reader for the object IDs * @param IdReader $idReader The reader for the object IDs
* @param null|EntityLoaderInterface $objectLoader The objects loader * @param EntityLoaderInterface|null $objectLoader The objects loader
*/ */
public function __construct(ChoiceListFactoryInterface $factory, ObjectManager $manager, $class, IdReader $idReader = null, EntityLoaderInterface $objectLoader = null) public function __construct(ChoiceListFactoryInterface $factory, ObjectManager $manager, $class, IdReader $idReader = null, EntityLoaderInterface $objectLoader = null)
{ {

View File

@ -89,7 +89,7 @@ class PhpStringTokenParser
* Parses escape sequences in strings (all string types apart from single quoted). * Parses escape sequences in strings (all string types apart from single quoted).
* *
* @param string $str String without quotes * @param string $str String without quotes
* @param null|string $quote Quote type * @param string|null $quote Quote type
* *
* @return string String with escape sequences parsed * @return string String with escape sequences parsed
*/ */

View File

@ -140,7 +140,7 @@ class Command
* execute() method, you set the code to execute by passing * execute() method, you set the code to execute by passing
* a Closure to the setCode() method. * a Closure to the setCode() method.
* *
* @return null|int null or 0 if everything went fine, or an error code * @return int|null null or 0 if everything went fine, or an error code
* *
* @throws LogicException When this abstract method is not implemented * @throws LogicException When this abstract method is not implemented
* *

View File

@ -109,7 +109,7 @@ class QuestionHelper extends Helper
* *
* This method is public for PHP 5.3 compatibility, it should be private. * This method is public for PHP 5.3 compatibility, it should be private.
* *
* @return bool|mixed|null|string * @return bool|mixed|string|null
* *
* @throws RuntimeException In case the fallback is deactivated and the response cannot be hidden * @throws RuntimeException In case the fallback is deactivated and the response cannot be hidden
*/ */

View File

@ -117,7 +117,7 @@ class Question
/** /**
* Gets values for the autocompleter. * Gets values for the autocompleter.
* *
* @return null|iterable * @return iterable|null
*/ */
public function getAutocompleterValues() public function getAutocompleterValues()
{ {
@ -127,7 +127,7 @@ class Question
/** /**
* Sets values for the autocompleter. * Sets values for the autocompleter.
* *
* @param null|iterable $values * @param iterable|null $values
* *
* @return $this * @return $this
* *
@ -156,7 +156,7 @@ class Question
/** /**
* Sets a validator for the question. * Sets a validator for the question.
* *
* @param null|callable $validator * @param callable|null $validator
* *
* @return $this * @return $this
*/ */
@ -170,7 +170,7 @@ class Question
/** /**
* Gets the validator for the question. * Gets the validator for the question.
* *
* @return null|callable * @return callable|null
*/ */
public function getValidator() public function getValidator()
{ {
@ -182,7 +182,7 @@ class Question
* *
* Null means an unlimited number of attempts. * Null means an unlimited number of attempts.
* *
* @param null|int $attempts * @param int|null $attempts
* *
* @return $this * @return $this
* *
@ -204,7 +204,7 @@ class Question
* *
* Null means an unlimited number of attempts. * Null means an unlimited number of attempts.
* *
* @return null|int * @return int|null
*/ */
public function getMaxAttempts() public function getMaxAttempts()
{ {

View File

@ -37,7 +37,7 @@ class ElementNode extends AbstractNode
} }
/** /**
* @return null|string * @return string|null
*/ */
public function getNamespace() public function getNamespace()
{ {
@ -45,7 +45,7 @@ class ElementNode extends AbstractNode
} }
/** /**
* @return null|string * @return string|null
*/ */
public function getElement() public function getElement()
{ {

View File

@ -28,7 +28,7 @@ class SelectorNode extends AbstractNode
/** /**
* @param NodeInterface $tree * @param NodeInterface $tree
* @param null|string $pseudoElement * @param string|null $pseudoElement
*/ */
public function __construct(NodeInterface $tree, $pseudoElement = null) public function __construct(NodeInterface $tree, $pseudoElement = null)
{ {
@ -45,7 +45,7 @@ class SelectorNode extends AbstractNode
} }
/** /**
* @return null|string * @return string|null
*/ */
public function getPseudoElement() public function getPseudoElement()
{ {

View File

@ -142,7 +142,7 @@ class TokenStream
/** /**
* Returns nex identifier or star delimiter token. * Returns nex identifier or star delimiter token.
* *
* @return null|string The identifier token value or null if star found * @return string|null The identifier token value or null if star found
* *
* @throws SyntaxErrorException If next token is not an identifier or a star delimiter * @throws SyntaxErrorException If next token is not an identifier or a star delimiter
*/ */

View File

@ -115,7 +115,7 @@ class ErrorHandler
/** /**
* Registers the error handler. * Registers the error handler.
* *
* @param self|null|int $handler The handler to register, or @deprecated (since version 2.6, to be removed in 3.0) bit field of thrown levels * @param self|int|null $handler The handler to register, or @deprecated (since version 2.6, to be removed in 3.0) bit field of thrown levels
* @param bool $replace Whether to replace or not any existing handler * @param bool $replace Whether to replace or not any existing handler
* *
* @return self The registered error handler * @return self The registered error handler

View File

@ -142,8 +142,8 @@ class Definition
/** /**
* Sets the service that this service is decorating. * Sets the service that this service is decorating.
* *
* @param null|string $id The decorated service id, use null to remove decoration * @param string|null $id The decorated service id, use null to remove decoration
* @param null|string $renamedId The new decorated service id * @param string|null $renamedId The new decorated service id
* @param int $priority The priority of decoration * @param int $priority The priority of decoration
* *
* @return $this * @return $this
@ -168,7 +168,7 @@ class Definition
/** /**
* Gets the service that this service is decorating. * Gets the service that this service is decorating.
* *
* @return null|array An array composed of the decorated service id, the new id for it and the priority of decoration, null if no service is decorated * @return array|null An array composed of the decorated service id, the new id for it and the priority of decoration, null if no service is decorated
*/ */
public function getDecoratedService() public function getDecoratedService()
{ {

View File

@ -104,7 +104,7 @@ class Crawler extends \SplObjectStorage
* HTTP 1.1 specification. * HTTP 1.1 specification.
* *
* @param string $content A string to parse as HTML/XML * @param string $content A string to parse as HTML/XML
* @param null|string $type The content type of the string * @param string|null $type The content type of the string
*/ */
public function addContent($content, $type = null) public function addContent($content, $type = null)
{ {

View File

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

View File

@ -368,7 +368,7 @@ class Button implements \IteratorAggregate, FormInterface
/** /**
* Submits data to the button. * Submits data to the button.
* *
* @param null|string $submittedData The data * @param string|null $submittedData The data
* @param bool $clearMissing Not used * @param bool $clearMissing Not used
* *
* @return $this * @return $this

View File

@ -32,7 +32,7 @@ interface ChoiceListFactoryInterface
* argument. * argument.
* *
* @param iterable $choices The choices * @param iterable $choices The choices
* @param null|callable $value The callable generating the choice * @param callable|null $value The callable generating the choice
* values * values
* *
* @return ChoiceListInterface The choice list * @return ChoiceListInterface The choice list
@ -51,7 +51,7 @@ interface ChoiceListFactoryInterface
* argument. * argument.
* *
* @param array|\Traversable $choices The choices * @param array|\Traversable $choices The choices
* @param null|callable $value The callable generating the choice * @param callable|null $value The callable generating the choice
* values * values
* *
* @return ChoiceListInterface The choice list * @return ChoiceListInterface The choice list
@ -69,7 +69,7 @@ interface ChoiceListFactoryInterface
* argument. * argument.
* *
* @param ChoiceLoaderInterface $loader The choice loader * @param ChoiceLoaderInterface $loader The choice loader
* @param null|callable $value The callable generating the choice * @param callable|null $value The callable generating the choice
* values * values
* *
* @return ChoiceListInterface The choice list * @return ChoiceListInterface The choice list
@ -103,14 +103,14 @@ interface ChoiceListFactoryInterface
* attributes that should be added to the respective choice. * attributes that should be added to the respective choice.
* *
* @param ChoiceListInterface $list The choice list * @param ChoiceListInterface $list The choice list
* @param null|array|callable $preferredChoices The preferred choices * @param array|callable|null $preferredChoices The preferred choices
* @param null|callable $label The callable generating the * @param callable|null $label The callable generating the
* choice labels * choice labels
* @param null|callable $index The callable generating the * @param callable|null $index The callable generating the
* view indices * view indices
* @param null|callable $groupBy The callable generating the * @param callable|null $groupBy The callable generating the
* group names * group names
* @param null|array|callable $attr The callable generating the * @param array|callable|null $attr The callable generating the
* HTML attributes * HTML attributes
* *
* @return ChoiceListView The choice list view * @return ChoiceListView The choice list view

View File

@ -60,7 +60,7 @@ class PropertyAccessDecorator implements ChoiceListFactoryInterface
* {@inheritdoc} * {@inheritdoc}
* *
* @param iterable $choices The choices * @param iterable $choices The choices
* @param null|callable|string|PropertyPath $value The callable or path for * @param callable|string|PropertyPath|null $value The callable or path for
* generating the choice values * generating the choice values
* *
* @return ChoiceListInterface The choice list * @return ChoiceListInterface The choice list
@ -91,7 +91,7 @@ class PropertyAccessDecorator implements ChoiceListFactoryInterface
* {@inheritdoc} * {@inheritdoc}
* *
* @param array|\Traversable $choices The choices * @param array|\Traversable $choices The choices
* @param null|callable|string|PropertyPath $value The callable or path for * @param callable|string|PropertyPath|null $value The callable or path for
* generating the choice values * generating the choice values
* *
* @return ChoiceListInterface The choice list * @return ChoiceListInterface The choice list
@ -110,7 +110,7 @@ class PropertyAccessDecorator implements ChoiceListFactoryInterface
* {@inheritdoc} * {@inheritdoc}
* *
* @param ChoiceLoaderInterface $loader The choice loader * @param ChoiceLoaderInterface $loader The choice loader
* @param null|callable|string|PropertyPath $value The callable or path for * @param callable|string|PropertyPath|null $value The callable or path for
* generating the choice values * generating the choice values
* *
* @return ChoiceListInterface The choice list * @return ChoiceListInterface The choice list
@ -141,11 +141,11 @@ class PropertyAccessDecorator implements ChoiceListFactoryInterface
* {@inheritdoc} * {@inheritdoc}
* *
* @param ChoiceListInterface $list The choice list * @param ChoiceListInterface $list The choice list
* @param null|array|callable|string|PropertyPath $preferredChoices The preferred choices * @param array|callable|string|PropertyPath|null $preferredChoices The preferred choices
* @param null|callable|string|PropertyPath $label The callable or path generating the choice labels * @param callable|string|PropertyPath|null $label The callable or path generating the choice labels
* @param null|callable|string|PropertyPath $index The callable or path generating the view indices * @param callable|string|PropertyPath|null $index The callable or path generating the view indices
* @param null|callable|string|PropertyPath $groupBy The callable or path generating the group names * @param callable|string|PropertyPath|null $groupBy The callable or path generating the group names
* @param null|array|callable|string|PropertyPath $attr The callable or path generating the HTML attributes * @param array|callable|string|PropertyPath|null $attr The callable or path generating the HTML attributes
* *
* @return ChoiceListView The choice list view * @return ChoiceListView The choice list view
*/ */

View File

@ -34,7 +34,7 @@ class LazyChoiceList implements ChoiceListInterface
* *
* If null, choices are simply cast to strings. * If null, choices are simply cast to strings.
* *
* @var null|callable * @var callable|null
*/ */
private $value; private $value;
@ -51,7 +51,7 @@ class LazyChoiceList implements ChoiceListInterface
* argument. * argument.
* *
* @param ChoiceLoaderInterface $loader The choice loader * @param ChoiceLoaderInterface $loader The choice loader
* @param null|callable $value The callable generating the choice values * @param callable|null $value The callable generating the choice values
*/ */
public function __construct(ChoiceLoaderInterface $loader, $value = null) public function __construct(ChoiceLoaderInterface $loader, $value = null)
{ {

View File

@ -31,7 +31,7 @@ interface ChoiceLoaderInterface
* The callable receives the choice as first and the array key as the second * The callable receives the choice as first and the array key as the second
* argument. * argument.
* *
* @param null|callable $value The callable which generates the values * @param callable|null $value The callable which generates the values
* from choices * from choices
* *
* @return ChoiceListInterface The loaded choice list * @return ChoiceListInterface The loaded choice list
@ -50,7 +50,7 @@ interface ChoiceLoaderInterface
* *
* @param string[] $values An array of choice values. Non-existing * @param string[] $values An array of choice values. Non-existing
* values in this array are ignored * values in this array are ignored
* @param null|callable $value The callable generating the choice values * @param callable|null $value The callable generating the choice values
* *
* @return array An array of choices * @return array An array of choices
*/ */
@ -68,7 +68,7 @@ interface ChoiceLoaderInterface
* *
* @param array $choices An array of choices. Non-existing choices in * @param array $choices An array of choices. Non-existing choices in
* this array are ignored * this array are ignored
* @param null|callable $value The callable generating the choice values * @param callable|null $value The callable generating the choice values
* *
* @return string[] An array of choice values * @return string[] An array of choice values
*/ */

View File

@ -32,7 +32,7 @@ class CsrfExtension extends AbstractExtension
/** /**
* @param CsrfTokenManagerInterface $tokenManager The CSRF token manager * @param CsrfTokenManagerInterface $tokenManager The CSRF token manager
* @param TranslatorInterface $translator The translator for translating error messages * @param TranslatorInterface $translator The translator for translating error messages
* @param null|string $translationDomain The translation domain for translating * @param string|null $translationDomain The translation domain for translating
*/ */
public function __construct($tokenManager, TranslatorInterface $translator = null, $translationDomain = null) public function __construct($tokenManager, TranslatorInterface $translator = null, $translationDomain = null)
{ {

View File

@ -51,7 +51,7 @@ class CsrfValidationListener implements EventSubscriberInterface
* same session and with the same tokenId * same session and with the same tokenId
* @param string $errorMessage The message displayed in case of an error * @param string $errorMessage The message displayed in case of an error
* @param TranslatorInterface $translator * @param TranslatorInterface $translator
* @param null|string $translationDomain * @param string|null $translationDomain
* @param ServerParams $serverParams * @param ServerParams $serverParams
*/ */
public function __construct($fieldName, $tokenManager, $tokenId, $errorMessage, TranslatorInterface $translator = null, $translationDomain = null, ServerParams $serverParams = null) public function __construct($fieldName, $tokenManager, $tokenId, $errorMessage, TranslatorInterface $translator = null, $translationDomain = null, ServerParams $serverParams = null)

View File

@ -47,7 +47,7 @@ class FormTypeCsrfExtension extends AbstractTypeExtension
* @param bool $defaultEnabled * @param bool $defaultEnabled
* @param string $defaultFieldName * @param string $defaultFieldName
* @param TranslatorInterface $translator * @param TranslatorInterface $translator
* @param null|string $translationDomain * @param string|null $translationDomain
* @param ServerParams $serverParams * @param ServerParams $serverParams
*/ */
public function __construct($defaultTokenManager, $defaultEnabled = true, $defaultFieldName = '_token', TranslatorInterface $translator = null, $translationDomain = null, ServerParams $serverParams = null) public function __construct($defaultTokenManager, $defaultEnabled = true, $defaultFieldName = '_token', TranslatorInterface $translator = null, $translationDomain = null, ServerParams $serverParams = null)

View File

@ -27,7 +27,7 @@ class UploadValidatorExtension extends AbstractTypeExtension
/** /**
* @param TranslatorInterface $translator The translator for translating error messages * @param TranslatorInterface $translator The translator for translating error messages
* @param null|string $translationDomain The translation domain for translating * @param string|null $translationDomain The translation domain for translating
*/ */
public function __construct(TranslatorInterface $translator, $translationDomain = null) public function __construct(TranslatorInterface $translator, $translationDomain = null)
{ {

View File

@ -51,7 +51,7 @@ class MappingRule
* *
* @param string $propertyPath The property path to match against the rule * @param string $propertyPath The property path to match against the rule
* *
* @return null|FormInterface The mapped form or null * @return FormInterface|null The mapped form or null
*/ */
public function match($propertyPath) public function match($propertyPath)
{ {

View File

@ -144,7 +144,7 @@ class ViolationMapper implements ViolationMapperInterface
* @param FormInterface $form The form to search * @param FormInterface $form The form to search
* @param PropertyPathIteratorInterface $it The iterator at its current position * @param PropertyPathIteratorInterface $it The iterator at its current position
* *
* @return null|FormInterface The found match or null * @return FormInterface|null The found match or null
*/ */
private function matchChild(FormInterface $form, PropertyPathIteratorInterface $it) private function matchChild(FormInterface $form, PropertyPathIteratorInterface $it)
{ {

View File

@ -146,7 +146,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
/** /**
* Sets the property path that the form should be mapped to. * Sets the property path that the form should be mapped to.
* *
* @param null|string|PropertyPathInterface $propertyPath The property path or null if the path should be set * @param string|PropertyPathInterface|null $propertyPath The property path or null if the path should be set
* automatically based on the form's name * automatically based on the form's name
* *
* @return $this The configuration object * @return $this The configuration object

View File

@ -38,7 +38,7 @@ interface FormConfigInterface
/** /**
* Returns the property path that the form should be mapped to. * Returns the property path that the form should be mapped to.
* *
* @return null|PropertyPathInterface The property path * @return PropertyPathInterface|null The property path
*/ */
public function getPropertyPath(); public function getPropertyPath();
@ -167,7 +167,7 @@ interface FormConfigInterface
/** /**
* Returns the class of the form data or null if the data is scalar or an array. * Returns the class of the form data or null if the data is scalar or an array.
* *
* @return null|string The data class or null * @return string|null The data class or null
*/ */
public function getDataClass(); public function getDataClass();

View File

@ -90,7 +90,7 @@ interface FormTypeInterface
* Symfony 2.8 and will be unsupported as of Symfony 3.0. Return the * Symfony 2.8 and will be unsupported as of Symfony 3.0. Return the
* fully-qualified class name of the parent type instead. * fully-qualified class name of the parent type instead.
* *
* @return string|null|FormTypeInterface The name of the parent type if any, null otherwise * @return string|FormTypeInterface|null The name of the parent type if any, null otherwise
*/ */
public function getParent(); public function getParent();

View File

@ -34,7 +34,7 @@ class SubmitButton extends Button implements ClickableInterface
/** /**
* Submits data to the button. * Submits data to the button.
* *
* @param null|string $submittedData The data * @param string|null $submittedData The data
* @param bool $clearMissing Not used * @param bool $clearMissing Not used
* *
* @return $this * @return $this

View File

@ -41,7 +41,7 @@ class ServerParams
/** /**
* Returns maximum post size in bytes. * Returns maximum post size in bytes.
* *
* @return null|int The maximum post size in bytes * @return int|null The maximum post size in bytes
*/ */
public function getPostMaxSize() public function getPostMaxSize()
{ {

View File

@ -40,7 +40,7 @@ class BinaryFileResponse extends Response
* @param int $status The response status code * @param int $status The response status code
* @param array $headers An array of response headers * @param array $headers An array of response headers
* @param bool $public Files are public by default * @param bool $public Files are public by default
* @param null|string $contentDisposition The type of Content-Disposition to set automatically with the filename * @param string|null $contentDisposition The type of Content-Disposition to set automatically with the filename
* @param bool $autoEtag Whether the ETag header should be automatically set * @param bool $autoEtag Whether the ETag header should be automatically set
* @param bool $autoLastModified Whether the Last-Modified header should be automatically set * @param bool $autoLastModified Whether the Last-Modified header should be automatically set
*/ */
@ -60,7 +60,7 @@ class BinaryFileResponse extends Response
* @param int $status The response status code * @param int $status The response status code
* @param array $headers An array of response headers * @param array $headers An array of response headers
* @param bool $public Files are public by default * @param bool $public Files are public by default
* @param null|string $contentDisposition The type of Content-Disposition to set automatically with the filename * @param string|null $contentDisposition The type of Content-Disposition to set automatically with the filename
* @param bool $autoEtag Whether the ETag header should be automatically set * @param bool $autoEtag Whether the ETag header should be automatically set
* @param bool $autoLastModified Whether the Last-Modified header should be automatically set * @param bool $autoLastModified Whether the Last-Modified header should be automatically set
* *

View File

@ -197,7 +197,7 @@ class HeaderBag implements \IteratorAggregate, \Countable
* @param string $key The parameter key * @param string $key The parameter key
* @param \DateTime $default The default value * @param \DateTime $default The default value
* *
* @return null|\DateTime The parsed DateTime or the default value if the header does not exist * @return \DateTime|null The parsed DateTime or the default value if the header does not exist
* *
* @throws \RuntimeException When the HTTP header is not parseable * @throws \RuntimeException When the HTTP header is not parseable
*/ */

View File

@ -71,7 +71,7 @@ class PdoSessionHandler implements \SessionHandlerInterface
private $pdo; private $pdo;
/** /**
* @var string|null|false DSN string or null for session.save_path or false when lazy connection disabled * @var string|false|null DSN string or null for session.save_path or false when lazy connection disabled
*/ */
private $dsn = false; private $dsn = false;

View File

@ -26,7 +26,7 @@ class FileLocator extends BaseFileLocator
/** /**
* @param KernelInterface $kernel A KernelInterface instance * @param KernelInterface $kernel A KernelInterface instance
* @param null|string $path The path the global resource directory * @param string|null $path The path the global resource directory
* @param array $paths An array of paths where to look for resources * @param array $paths An array of paths where to look for resources
*/ */
public function __construct(KernelInterface $kernel, $path = null, array $paths = array()) public function __construct(KernelInterface $kernel, $path = null, array $paths = array())

View File

@ -235,7 +235,7 @@ class MongoDbProfilerStorage implements ProfilerStorageInterface
/** /**
* @param string $dsn * @param string $dsn
* *
* @return null|array Array($server, $database, $collection) * @return array|null Array($server, $database, $collection)
*/ */
private function parseDsn($dsn) private function parseDsn($dsn)
{ {

View File

@ -92,7 +92,7 @@ class Profile
/** /**
* Returns the parent token. * Returns the parent token.
* *
* @return null|string The parent token * @return string|null The parent token
*/ */
public function getParentToken() public function getParentToken()
{ {

View File

@ -187,7 +187,7 @@ final class Intl
/** /**
* Returns the version of the installed ICU library. * Returns the version of the installed ICU library.
* *
* @return null|string The ICU version or NULL if it could not be determined * @return string|null The ICU version or NULL if it could not be determined
*/ */
public static function getIcuVersion() public static function getIcuVersion()
{ {

View File

@ -567,7 +567,7 @@ class Process
/** /**
* Returns the exit code returned by the process. * Returns the exit code returned by the process.
* *
* @return null|int The exit status code, null if the Process is not terminated * @return int|null The exit status code, null if the Process is not terminated
* *
* @throws RuntimeException In case --enable-sigchild is activated and the sigchild compatibility mode is disabled * @throws RuntimeException In case --enable-sigchild is activated and the sigchild compatibility mode is disabled
*/ */
@ -588,7 +588,7 @@ class Process
* This method relies on the Unix exit code status standardization * This method relies on the Unix exit code status standardization
* and might not be relevant for other operating systems. * and might not be relevant for other operating systems.
* *
* @return null|string A string representation for the exit status code, null if the Process is not terminated * @return string|null A string representation for the exit status code, null if the Process is not terminated
* *
* @see http://tldp.org/LDP/abs/html/exitcodes.html * @see http://tldp.org/LDP/abs/html/exitcodes.html
* @see http://en.wikipedia.org/wiki/Unix_signal * @see http://en.wikipedia.org/wiki/Unix_signal
@ -1044,7 +1044,7 @@ class Process
/** /**
* Gets the Process input. * Gets the Process input.
* *
* @return null|string The Process input * @return string|null The Process input
*/ */
public function getInput() public function getInput()
{ {

View File

@ -99,7 +99,7 @@ class ProcessBuilder
/** /**
* Sets the working directory. * Sets the working directory.
* *
* @param null|string $cwd The working directory * @param string|null $cwd The working directory
* *
* @return $this * @return $this
*/ */
@ -131,7 +131,7 @@ class ProcessBuilder
* defined environment variable. * defined environment variable.
* *
* @param string $name The variable name * @param string $name The variable name
* @param null|string $value The variable value * @param string|null $value The variable value
* *
* @return $this * @return $this
*/ */

View File

@ -1224,9 +1224,9 @@ class ProcessTest extends TestCase
/** /**
* @param string $commandline * @param string $commandline
* @param null|string $cwd * @param string|null $cwd
* @param null|array $env * @param array|null $env
* @param null|string $input * @param string|null $input
* @param int $timeout * @param int $timeout
* @param array $options * @param array $options
* *

View File

@ -24,7 +24,7 @@ class PropertyPathBuilder
/** /**
* Creates a new property path builder. * Creates a new property path builder.
* *
* @param null|PropertyPathInterface|string $path The path to initially store * @param PropertyPathInterface|string|null $path The path to initially store
* in the builder. Optional. * in the builder. Optional.
*/ */
public function __construct($path = null) public function __construct($path = null)

View File

@ -29,7 +29,7 @@ class Route implements \Serializable
private $condition = ''; private $condition = '';
/** /**
* @var null|CompiledRoute * @var CompiledRoute|null
*/ */
private $compiled; private $compiled;

View File

@ -31,7 +31,7 @@ class CsrfTokenManager implements CsrfTokenManagerInterface
private $namespace; private $namespace;
/** /**
* @param null|string|RequestStack|callable $namespace * @param string|RequestStack|callable|null $namespace
* * null: generates a namespace using $_SERVER['HTTPS'] * * null: generates a namespace using $_SERVER['HTTPS']
* * string: uses the given string * * string: uses the given string
* * RequestStack: generates a namespace using the current master request * * RequestStack: generates a namespace using the current master request

View File

@ -73,7 +73,7 @@ class GuardAuthenticatorHandler
* @param GuardAuthenticatorInterface $guardAuthenticator * @param GuardAuthenticatorInterface $guardAuthenticator
* @param string $providerKey The provider (i.e. firewall) key * @param string $providerKey The provider (i.e. firewall) key
* *
* @return null|Response * @return Response|null
*/ */
public function handleAuthenticationSuccess(TokenInterface $token, Request $request, GuardAuthenticatorInterface $guardAuthenticator, $providerKey) public function handleAuthenticationSuccess(TokenInterface $token, Request $request, GuardAuthenticatorInterface $guardAuthenticator, $providerKey)
{ {
@ -118,7 +118,7 @@ class GuardAuthenticatorHandler
* @param GuardAuthenticatorInterface $guardAuthenticator * @param GuardAuthenticatorInterface $guardAuthenticator
* @param string $providerKey The key of the firewall * @param string $providerKey The key of the firewall
* *
* @return null|Response * @return Response|null
*/ */
public function handleAuthenticationFailure(AuthenticationException $authenticationException, Request $request, GuardAuthenticatorInterface $guardAuthenticator, $providerKey) public function handleAuthenticationFailure(AuthenticationException $authenticationException, Request $request, GuardAuthenticatorInterface $guardAuthenticator, $providerKey)
{ {

View File

@ -22,7 +22,7 @@ class CamelCaseToSnakeCaseNameConverter implements NameConverterInterface
private $lowerCamelCase; private $lowerCamelCase;
/** /**
* @param null|array $attributes The list of attributes to rename or null for all attributes * @param array|null $attributes The list of attributes to rename or null for all attributes
* @param bool $lowerCamelCase Use lowerCamelCase style * @param bool $lowerCamelCase Use lowerCamelCase style
*/ */
public function __construct(array $attributes = null, $lowerCamelCase = true) public function __construct(array $attributes = null, $lowerCamelCase = true)

View File

@ -24,7 +24,7 @@ class Section
private $events = array(); private $events = array();
/** /**
* @var null|float * @var float|null
*/ */
private $origin; private $origin;

View File

@ -29,7 +29,7 @@ abstract class AbstractOperation implements OperationInterface
protected $result; protected $result;
/** /**
* @var null|array The domains affected by this operation * @var array|null The domains affected by this operation
*/ */
private $domains; private $domains;

View File

@ -41,7 +41,7 @@ class ExecutionContext implements ExecutionContextInterface
* *
* @param GlobalExecutionContextInterface $globalContext The global context storing node-independent state * @param GlobalExecutionContextInterface $globalContext The global context storing node-independent state
* @param TranslatorInterface $translator The translator for translating violation messages * @param TranslatorInterface $translator The translator for translating violation messages
* @param null|string $translationDomain The domain of the validation messages * @param string|null $translationDomain The domain of the validation messages
* @param MetadataInterface $metadata The metadata of the validated node * @param MetadataInterface $metadata The metadata of the validated node
* @param mixed $value The value of the validated node * @param mixed $value The value of the validated node
* @param string $group The current validation group * @param string $group The current validation group
@ -255,7 +255,7 @@ class ExecutionContext implements ExecutionContextInterface
/** /**
* Returns an array of group names. * Returns an array of group names.
* *
* @param null|string|string[] $groups The groups to resolve. If a single string is * @param string|string[]|null $groups The groups to resolve. If a single string is
* passed, it is converted to an array. If null * passed, it is converted to an array. If null
* is passed, an array containing the current * is passed, an array containing the current
* group of the context is returned. * group of the context is returned.

View File

@ -134,7 +134,7 @@ interface ExecutionContextInterface
* *
* @param mixed $value The value to validate * @param mixed $value The value to validate
* @param string $subPath The path to append to the context's property path * @param string $subPath The path to append to the context's property path
* @param null|string|string[] $groups The groups to validate in. If you don't pass any * @param string|string[]|null $groups The groups to validate in. If you don't pass any
* groups here, the current group of the context * groups here, the current group of the context
* will be used. * will be used.
* @param bool $traverse Whether to traverse the value if it is an array * @param bool $traverse Whether to traverse the value if it is an array
@ -166,7 +166,7 @@ interface ExecutionContextInterface
* @param mixed $value The value to validate * @param mixed $value The value to validate
* @param Constraint|Constraint[] $constraints The constraint(s) to validate against * @param Constraint|Constraint[] $constraints The constraint(s) to validate against
* @param string $subPath The path to append to the context's property path * @param string $subPath The path to append to the context's property path
* @param null|string|string[] $groups The groups to validate in. If you don't pass any * @param string|string[]|null $groups The groups to validate in. If you don't pass any
* groups here, the current group of the context * groups here, the current group of the context
* will be used. * will be used.
* *

View File

@ -197,7 +197,7 @@ class Validator implements ValidatorInterface, Mapping\Factory\MetadataFactoryIn
} }
/** /**
* @param null|string|string[] $groups * @param string|string[]|null $groups
* *
* @return string[] * @return string[]
*/ */

View File

@ -70,7 +70,7 @@ class ValidatorBuilder implements ValidatorBuilderInterface
private $translator; private $translator;
/** /**
* @var null|string * @var string|null
*/ */
private $translationDomain; private $translationDomain;