Merge branch '3.4' into 4.3

* 3.4:
  Remove superfluous phpdoc tags
This commit is contained in:
Nicolas Grekas 2019-08-14 14:26:46 +02:00
commit b3467e641c
149 changed files with 110 additions and 426 deletions

View File

@ -14,6 +14,8 @@ return PhpCsFixer\Config::create()
'array_syntax' => ['syntax' => 'short'],
'fopen_flags' => false,
'ordered_imports' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true,
'no_superfluous_phpdoc_tags' => ['allow_mixed' => true],
'protected_to_private' => false,
// Part of @Symfony:risky in PHP-CS-Fixer 2.13.0. To be removed from the config file once upgrading
'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'namespaced', 'strict' => true],
@ -25,18 +27,11 @@ return PhpCsFixer\Config::create()
PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->append([__FILE__])
->notPath('#/Fixtures/#')
->exclude([
'Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/Fixtures',
// directories containing files with content that is autogenerated by `var_export`, which breaks CS in output code
'Symfony/Component/DependencyInjection/Tests/Fixtures',
'Symfony/Component/Routing/Tests/Fixtures/dumper',
// fixture templates
'Symfony/Component/Templating/Tests/Fixtures/templates',
'Symfony/Bundle/FrameworkBundle/Tests/Fixtures/TemplatePathsCache',
'Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/Resources/Custom',
// generated fixtures
'Symfony/Component/VarDumper/Tests/Fixtures',
'Symfony/Component/VarExporter/Tests/Fixtures',
// resource templates
'Symfony/Bundle/FrameworkBundle/Resources/views/Form',
// explicit trigger_error tests
@ -44,15 +39,13 @@ return PhpCsFixer\Config::create()
])
// Support for older PHPunit version
->notPath('Symfony/Bridge/PhpUnit/SymfonyTestsListener.php')
->notPath('#Symfony/Bridge/PhpUnit/.*Mock\.php#')
->notPath('#Symfony/Bridge/PhpUnit/.*Legacy#')
// file content autogenerated by `var_export`
->notPath('Symfony/Component/Translation/Tests/fixtures/resources.php')
// test template
->notPath('Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/Resources/Custom/_name_entry_label.html.php')
// explicit heredoc test
->notPath('Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Resources/views/translation.html.php')
// explicit trigger_error tests
->notPath('Symfony/Component/Debug/Tests/DebugClassLoaderTest.php')
// invalid annotations on purpose
->notPath('Symfony/Component/DependencyInjection/Tests/Fixtures/includes/autowiring_classes.php')
)
;

View File

@ -45,8 +45,7 @@ class DoctrineDataCollector extends DataCollector
/**
* Adds the stack logger for a connection.
*
* @param string $name
* @param DebugStack $logger
* @param string $name
*/
public function addLogger($name, DebugStack $logger)
{

View File

@ -117,7 +117,6 @@ abstract class AbstractDoctrineExtension extends Extension
/**
* Register the mapping driver configuration for later use with the object managers metadata driver chain.
*
* @param array $mappingConfig
* @param string $mappingName
*
* @throws \InvalidArgumentException
@ -225,7 +224,6 @@ abstract class AbstractDoctrineExtension extends Extension
/**
* Assertion if the specified mapping information is valid.
*
* @param array $mappingConfig
* @param string $objectManagerName
*
* @throws \InvalidArgumentException

View File

@ -265,9 +265,8 @@ abstract class DoctrineType extends AbstractType implements ResetInterface
/**
* Return the default loader object.
*
* @param ObjectManager $manager
* @param mixed $queryBuilder
* @param string $class
* @param mixed $queryBuilder
* @param string $class
*
* @return EntityLoaderInterface
*/

View File

@ -46,9 +46,8 @@ class EntityType extends DoctrineType
/**
* Return the default loader object.
*
* @param ObjectManager $manager
* @param QueryBuilder $queryBuilder
* @param string $class
* @param QueryBuilder $queryBuilder
* @param string $class
*
* @return ORMQueryBuilderLoader
*/

View File

@ -31,8 +31,6 @@ class DoctrineTestHelper
/**
* Returns an entity manager for testing.
*
* @param Configuration|null $config
*
* @return EntityManager
*/
public static function createTestEntityManager(Configuration $config = null)

View File

@ -34,8 +34,7 @@ class UniqueEntityValidator extends ConstraintValidator
}
/**
* @param object $entity
* @param Constraint $constraint
* @param object $entity
*
* @throws UnexpectedTypeException
* @throws ConstraintDefinitionException

View File

@ -15,7 +15,6 @@ use Symfony\Bridge\Twig\Node\TransNode;
use Twig\Error\SyntaxError;
use Twig\Node\Expression\AbstractExpression;
use Twig\Node\Expression\ArrayExpression;
use Twig\Node\Node;
use Twig\Node\TextNode;
use Twig\Token;

View File

@ -12,7 +12,6 @@
namespace Symfony\Bridge\Twig\TokenParser;
use Symfony\Bridge\Twig\Node\TransDefaultDomainNode;
use Twig\Node\Node;
use Twig\Token;
use Twig\TokenParser\AbstractTokenParser;

View File

@ -15,7 +15,6 @@ use Symfony\Bridge\Twig\Node\TransNode;
use Twig\Error\SyntaxError;
use Twig\Node\Expression\AbstractExpression;
use Twig\Node\Expression\ArrayExpression;
use Twig\Node\Node;
use Twig\Node\TextNode;
use Twig\Token;
use Twig\TokenParser\AbstractTokenParser;

View File

@ -81,8 +81,7 @@ abstract class AbstractPhpFileCacheWarmer implements CacheWarmerInterface
}
/**
* @param string $cacheDir
* @param ArrayAdapter $arrayAdapter
* @param string $cacheDir
*
* @return bool false if there is nothing to warm-up
*/

View File

@ -132,8 +132,6 @@ abstract class Descriptor implements DescriptorInterface
* * name: name of described service
*
* @param Definition|Alias|object $service
* @param array $options
* @param ContainerBuilder|null $builder
*/
abstract protected function describeContainerService($service, array $options = [], ContainerBuilder $builder = null);
@ -177,7 +175,6 @@ abstract class Descriptor implements DescriptorInterface
* Describes a callable.
*
* @param callable $callable
* @param array $options
*/
abstract protected function describeCallable($callable, array $options = []);
@ -224,8 +221,7 @@ abstract class Descriptor implements DescriptorInterface
}
/**
* @param ContainerBuilder $builder
* @param string $serviceId
* @param string $serviceId
*
* @return mixed
*/
@ -249,8 +245,7 @@ abstract class Descriptor implements DescriptorInterface
}
/**
* @param ContainerBuilder $builder
* @param bool $showHidden
* @param bool $showHidden
*
* @return array
*/

View File

@ -29,8 +29,6 @@ trait MicroKernelTrait
*
* $routes->import('config/routing.yml');
* $routes->add('/admin', 'App\Controller\AdminController::dashboard', 'admin_dashboard');
*
* @param RouteCollectionBuilder $routes
*/
abstract protected function configureRoutes(RouteCollectionBuilder $routes);
@ -50,9 +48,6 @@ trait MicroKernelTrait
* Or parameters:
*
* $c->setParameter('halloween', 'lot of fun');
*
* @param ContainerBuilder $c
* @param LoaderInterface $loader
*/
abstract protected function configureContainer(ContainerBuilder $c, LoaderInterface $loader);

View File

@ -41,7 +41,6 @@ class Router extends BaseRouter implements WarmableInterface, ServiceSubscriberI
* @param array $options An array of options
* @param RequestContext $context The context
* @param ContainerInterface|null $parameters A ContainerInterface instance allowing to fetch parameters
* @param LoggerInterface|null $logger
*/
public function __construct(ContainerInterface $container, $resource, array $options = [], RequestContext $context = null, ContainerInterface $parameters = null, LoggerInterface $logger = null, string $defaultLocale = null)
{

View File

@ -65,12 +65,6 @@ class Translator extends BaseTranslator implements WarmableInterface
* * debug: Whether to enable debugging or not (false by default)
* * resource_files: List of translation resources available grouped by locale.
*
* @param ContainerInterface $container A ContainerInterface instance
* @param MessageFormatterInterface $formatter The message formatter
* @param string $defaultLocale
* @param array $loaderIds An array of loader Ids
* @param array $options An array of options
*
* @throws InvalidArgumentException
*/
public function __construct(ContainerInterface $container, MessageFormatterInterface $formatter, string $defaultLocale, array $loaderIds = [], array $options = [])

View File

@ -98,10 +98,9 @@ abstract class AbstractFactory implements SecurityFactoryInterface
* Subclasses must return the id of a service which implements the
* AuthenticationProviderInterface.
*
* @param ContainerBuilder $container
* @param string $id The unique id of the firewall
* @param array $config The options array for this listener
* @param string $userProviderId The id of the user provider
* @param string $id The unique id of the firewall
* @param array $config The options array for this listener
* @param string $userProviderId The id of the user provider
*
* @return string never null, the id of the authentication provider
*/

View File

@ -24,11 +24,10 @@ interface SecurityFactoryInterface
/**
* Configures the container services required to use the authentication listener.
*
* @param ContainerBuilder $container
* @param string $id The unique id of the firewall
* @param array $config The options array for the listener
* @param string $userProvider The service id of the user provider
* @param string $defaultEntryPoint
* @param string $id The unique id of the firewall
* @param array $config The options array for the listener
* @param string $userProvider The service id of the user provider
* @param string $defaultEntryPoint
*
* @return array containing three values:
* - the provider id

View File

@ -32,8 +32,7 @@ class ExceptionController
protected $debug;
/**
* @param Environment $twig
* @param bool $debug Show error (false) or exception (true) pages by default
* @param bool $debug Show error (false) or exception (true) pages by default
*/
public function __construct(Environment $twig, bool $debug)
{
@ -88,10 +87,9 @@ class ExceptionController
}
/**
* @param Request $request
* @param string $format
* @param int $code An HTTP response status code
* @param bool $showException
* @param string $format
* @param int $code An HTTP response status code
* @param bool $showException
*
* @return string
*/

View File

@ -42,8 +42,7 @@ class TemplateManager
/**
* Gets the template name for a given panel.
*
* @param Profile $profile
* @param string $panel
* @param string $panel
*
* @return mixed
*

View File

@ -99,11 +99,10 @@ abstract class AbstractAdapter implements AdapterInterface, CacheInterface, Logg
*
* Using ApcuAdapter makes system caches compatible with read-only filesystems.
*
* @param string $namespace
* @param int $defaultLifetime
* @param string $version
* @param string $directory
* @param LoggerInterface|null $logger
* @param string $namespace
* @param int $defaultLifetime
* @param string $version
* @param string $directory
*
* @return AdapterInterface
*/

View File

@ -28,7 +28,6 @@ class ArrayAdapter implements AdapterInterface, CacheInterface, LoggerAwareInter
private $createCacheItem;
/**
* @param int $defaultLifetime
* @param bool $storeSerialized Disabling serialization can lead to cache corruptions when storing mutable values but increases performance otherwise
*/
public function __construct(int $defaultLifetime = 0, bool $storeSerialized = true)

View File

@ -73,7 +73,6 @@ class RedisTagAwareAdapter extends AbstractTagAwareAdapter
* @param \Redis|\RedisArray|\RedisCluster|\Predis\Client $redisClient The redis client
* @param string $namespace The default namespace
* @param int $defaultLifetime The default lifetime
* @param MarshallerInterface|null $marshaller
*
* @throws \Symfony\Component\Cache\Exception\LogicException If phpredis with version lower than 3.1.3.
*/

View File

@ -30,8 +30,7 @@ class CacheDataCollector extends DataCollector implements LateDataCollectorInter
private $instances = [];
/**
* @param string $name
* @param TraceableAdapter $instance
* @param string $name
*/
public function addInstance($name, TraceableAdapter $instance)
{

View File

@ -35,7 +35,6 @@ class ArrayCache implements Psr16CacheInterface, LoggerAwareInterface, Resettabl
private $defaultLifetime;
/**
* @param int $defaultLifetime
* @param bool $storeSerialized Disabling serialization can lead to cache corruptions when storing mutable values but increases performance otherwise
*/
public function __construct(int $defaultLifetime = 0, bool $storeSerialized = true)

View File

@ -27,8 +27,6 @@ class RedisCache extends AbstractCache
/**
* @param \Redis|\RedisArray|\RedisCluster|\Predis\Client $redisClient
* @param string $namespace
* @param int $defaultLifetime
*/
public function __construct($redisClient, string $namespace = '', int $defaultLifetime = 0, MarshallerInterface $marshaller = null)
{

View File

@ -352,8 +352,6 @@ abstract class NodeDefinition implements NodeParentInterface
/**
* Set PathSeparator to use.
*
* @param string $separator
*
* @return $this
*/
public function setPathSeparator(string $separator)

View File

@ -262,7 +262,6 @@ class PrototypedArrayNodeTest extends TestCase
* ]
* ]
*
*
* @dataProvider getDataForKeyRemovedLeftValueOnly
*/
public function testMappedAttributeKeyIsRemovedLeftValueOnly($value, $children, $expected)

View File

@ -23,9 +23,7 @@ interface DescriptorInterface
/**
* Describes an object if supported.
*
* @param OutputInterface $output
* @param object $object
* @param array $options
* @param object $object
*/
public function describe(OutputInterface $output, $object, array $options = []);
}

View File

@ -81,7 +81,6 @@ class XmlDescriptor extends Descriptor
}
/**
* @param Application $application
* @param string|null $namespace
*
* @return \DOMDocument

View File

@ -48,9 +48,7 @@ class DescriptorHelper extends Helper
* * format: string, the output format name
* * raw_text: boolean, sets output type as raw
*
* @param OutputInterface $output
* @param object $object
* @param array $options
* @param object $object
*
* @throws InvalidArgumentException when the given format is not supported
*/
@ -72,8 +70,7 @@ class DescriptorHelper extends Helper
/**
* Registers a descriptor.
*
* @param string $format
* @param DescriptorInterface $descriptor
* @param string $format
*
* @return $this
*/

View File

@ -34,10 +34,9 @@ class ProgressIndicator
private static $formats;
/**
* @param OutputInterface $output
* @param string|null $format Indicator format
* @param int $indicatorChangeInterval Change interval in milliseconds
* @param array|null $indicatorValues Animated indicator characters
* @param string|null $format Indicator format
* @param int $indicatorChangeInterval Change interval in milliseconds
* @param array|null $indicatorValues Animated indicator characters
*/
public function __construct(OutputInterface $output, string $format = null, int $indicatorChangeInterval = 100, array $indicatorValues = null)
{

View File

@ -207,8 +207,6 @@ class Table
/**
* Sets the minimum width of all columns.
*
* @param array $widths
*
* @return $this
*/
public function setColumnWidths(array $widths)

View File

@ -187,8 +187,6 @@ class Question
/**
* Sets a validator for the question.
*
* @param callable|null $validator
*
* @return $this
*/
public function setValidator(callable $validator = null)
@ -247,8 +245,6 @@ class Question
*
* The normalizer can be a callable (a string), a closure or a class implementing __invoke.
*
* @param callable $normalizer
*
* @return $this
*/
public function setNormalizer(callable $normalizer)

View File

@ -119,7 +119,6 @@ interface StyleInterface
* Asks a choice question.
*
* @param string $question
* @param array $choices
* @param string|int|null $default
*
* @return mixed

View File

@ -25,7 +25,6 @@ class SyntaxErrorException extends ParseException
{
/**
* @param string $expectedValue
* @param Token $foundToken
*
* @return self
*/

View File

@ -28,9 +28,6 @@ abstract class AbstractNode implements NodeInterface
*/
private $nodeName;
/**
* @return string
*/
public function getNodeName(): string
{
if (null === $this->nodeName) {

View File

@ -26,10 +26,6 @@ class ElementNode extends AbstractNode
private $namespace;
private $element;
/**
* @param string|null $namespace
* @param string|null $element
*/
public function __construct(string $namespace = null, string $element = null)
{
$this->namespace = $namespace;

View File

@ -30,9 +30,7 @@ class FunctionNode extends AbstractNode
private $arguments;
/**
* @param NodeInterface $selector
* @param string $name
* @param Token[] $arguments
* @param Token[] $arguments
*/
public function __construct(NodeInterface $selector, string $name, array $arguments = [])
{

View File

@ -26,8 +26,5 @@ use Symfony\Component\CssSelector\Parser\TokenStream;
*/
interface HandlerInterface
{
/**
* @return bool
*/
public function handle(Reader $reader, TokenStream $stream): bool;
}

View File

@ -38,9 +38,6 @@ class CombinationExtension extends AbstractExtension
];
}
/**
* @return XPathExpr
*/
public function translateDescendant(XPathExpr $xpath, XPathExpr $combinedXpath): XPathExpr
{
return $xpath->join('/descendant-or-self::*/', $combinedXpath);

View File

@ -20,7 +20,6 @@ class RewindableGenerator implements \IteratorAggregate, \Countable
private $count;
/**
* @param callable $generator
* @param int|callable $count
*/
public function __construct(callable $generator, $count)

View File

@ -105,8 +105,7 @@ abstract class AbstractRecursivePass implements CompilerPassInterface
}
/**
* @param Definition $definition
* @param bool $required
* @param bool $required
*
* @return \ReflectionFunctionAbstract|null
*
@ -161,8 +160,7 @@ abstract class AbstractRecursivePass implements CompilerPassInterface
}
/**
* @param Definition $definition
* @param string $method
* @param string $method
*
* @throws RuntimeException
*

View File

@ -137,11 +137,6 @@ class AutowirePass extends AbstractRecursivePass
return $value;
}
/**
* @param \ReflectionClass $reflectionClass
*
* @return array
*/
private function autowireCalls(\ReflectionClass $reflectionClass, bool $isRoot): array
{
$this->decoratedId = null;

View File

@ -54,9 +54,8 @@ class Compiler
/**
* Adds a pass to the PassConfig.
*
* @param CompilerPassInterface $pass A compiler pass
* @param string $type The type of the pass
* @param int $priority Used to sort the passes
* @param CompilerPassInterface $pass A compiler pass
* @param string $type The type of the pass
*/
public function addPass(CompilerPassInterface $pass, $type = PassConfig::TYPE_BEFORE_OPTIMIZATION, int $priority = 0)
{

View File

@ -110,9 +110,8 @@ class PassConfig
/**
* Adds a pass.
*
* @param CompilerPassInterface $pass A Compiler pass
* @param string $type The pass type
* @param int $priority Used to sort the passes
* @param CompilerPassInterface $pass A Compiler pass
* @param string $type The pass type
*
* @throws InvalidArgumentException when a pass type doesn't exist
*/

View File

@ -35,7 +35,6 @@ trait PriorityTaggedServiceTrait
* @see https://bugs.php.net/60926
*
* @param string|TaggedIteratorArgument $tagName
* @param ContainerBuilder $container
*
* @return Reference[]
*/

View File

@ -87,9 +87,8 @@ final class ServiceLocatorTagPass extends AbstractRecursivePass
}
/**
* @param ContainerBuilder $container
* @param Reference[] $refMap
* @param string|null $callerId
* @param Reference[] $refMap
* @param string|null $callerId
*
* @return Reference
*/

View File

@ -384,8 +384,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
* @param bool|string $trackContents Whether to track contents of the given resource. If a string is passed,
* it will be used as pattern for tracking contents of the requested directory
*
* @return bool
*
* @final
*/
public function fileExists(string $path, $trackContents = true): bool
@ -1635,7 +1633,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
/**
* Shares a given service in the container.
*
* @param Definition $definition
* @param mixed $service
* @param string|null $id
*/

View File

@ -857,8 +857,6 @@ class Definition
* injected in the matching parameters (of the constructor, of methods
* called and of controller actions).
*
* @param array $bindings
*
* @return $this
*/
public function setBindings(array $bindings)

View File

@ -94,9 +94,8 @@ class XmlDumper extends Dumper
/**
* Adds a service.
*
* @param Definition $definition
* @param string $id
* @param \DOMElement $parent
* @param Definition $definition
* @param string $id
*/
private function addService($definition, $id, \DOMElement $parent)
{
@ -218,9 +217,7 @@ class XmlDumper extends Dumper
/**
* Adds a service alias.
*
* @param string $alias
* @param Alias $id
* @param \DOMElement $parent
* @param string $alias
*/
private function addServiceAlias($alias, Alias $id, \DOMElement $parent)
{
@ -266,10 +263,8 @@ class XmlDumper extends Dumper
/**
* Converts parameters.
*
* @param array $parameters
* @param string $type
* @param \DOMElement $parent
* @param string $keyAttribute
* @param string $type
* @param string $keyAttribute
*/
private function convertParameters(array $parameters, $type, \DOMElement $parent, $keyAttribute = 'key')
{

View File

@ -30,9 +30,8 @@ interface DumperInterface
/**
* Generates the code to be used to instantiate a proxy in the dumped factory code.
*
* @param Definition $definition
* @param string $id Service identifier
* @param string $factoryCode The code to execute to create the service
* @param string $id Service identifier
* @param string $factoryCode The code to execute to create the service
*
* @return string
*/

View File

@ -86,8 +86,7 @@ abstract class FileLoader extends BaseFileLoader
/**
* Registers a definition in the container with its instanceof-conditionals.
*
* @param string $id
* @param Definition $definition
* @param string $id
*/
protected function setDefinition($id, Definition $definition)
{

View File

@ -88,8 +88,7 @@ class XmlFileLoader extends FileLoader
/**
* Parses parameters.
*
* @param \DOMDocument $xml
* @param string $file
* @param string $file
*/
private function parseParameters(\DOMDocument $xml, $file)
{
@ -101,8 +100,7 @@ class XmlFileLoader extends FileLoader
/**
* Parses imports.
*
* @param \DOMDocument $xml
* @param string $file
* @param string $file
*/
private function parseImports(\DOMDocument $xml, $file)
{
@ -123,8 +121,7 @@ class XmlFileLoader extends FileLoader
/**
* Parses multiple definitions.
*
* @param \DOMDocument $xml
* @param string $file
* @param string $file
*/
private function parseDefinitions(\DOMDocument $xml, $file, $defaults)
{
@ -208,9 +205,7 @@ class XmlFileLoader extends FileLoader
/**
* Parses an individual Definition.
*
* @param \DOMElement $service
* @param string $file
* @param array $defaults
* @param string $file
*
* @return Definition|null
*/
@ -421,9 +416,8 @@ class XmlFileLoader extends FileLoader
/**
* Processes anonymous services.
*
* @param \DOMDocument $xml
* @param string $file
* @param array $defaults
* @param string $file
* @param array $defaults
*/
private function processAnonymousServices(\DOMDocument $xml, $file, $defaults)
{
@ -472,10 +466,9 @@ class XmlFileLoader extends FileLoader
/**
* Returns arguments as valid php types.
*
* @param \DOMElement $node
* @param string $name
* @param string $file
* @param bool $lowercase
* @param string $name
* @param string $file
* @param bool $lowercase
*
* @return mixed
*/
@ -582,8 +575,7 @@ class XmlFileLoader extends FileLoader
/**
* Get child elements by name.
*
* @param \DOMNode $node
* @param mixed $name
* @param mixed $name
*
* @return \DOMElement[]
*/
@ -602,8 +594,6 @@ class XmlFileLoader extends FileLoader
/**
* Validates a documents XML schema.
*
* @param \DOMDocument $dom
*
* @return bool
*
* @throws RuntimeException When extension references a non-existent XSD file
@ -681,8 +671,7 @@ EOF
/**
* Validates an alias.
*
* @param \DOMElement $alias
* @param string $file
* @param string $file
*/
private function validateAlias(\DOMElement $alias, $file)
{
@ -705,8 +694,7 @@ EOF
/**
* Validates an extension.
*
* @param \DOMDocument $dom
* @param string $file
* @param string $file
*
* @throws InvalidArgumentException When no extension is found corresponding to a tag
*/
@ -727,8 +715,6 @@ EOF
/**
* Loads from an extension.
*
* @param \DOMDocument $xml
*/
private function loadFromExtensions(\DOMDocument $xml)
{

View File

@ -309,7 +309,6 @@ class YamlFileLoader extends FileLoader
* @param string $id
* @param array|string $service
* @param string $file
* @param array $defaults
*
* @throws InvalidArgumentException When tags are invalid
*/

View File

@ -913,7 +913,6 @@ class Crawler implements \Countable, \IteratorAggregate
* echo Crawler::xpathLiteral('a\'b"c');
* //prints concat('a', "'", 'b"c')
*
*
* @param string $s String to be escaped
*
* @return string Converted string

View File

@ -155,8 +155,6 @@ class ChoiceFormField extends FormField
/**
* Adds a choice to the current ones.
*
* @param \DOMElement $node
*
* @throws \LogicException When choice provided is not multiple nor radio
*
* @internal

View File

@ -21,8 +21,6 @@ class Gitignore
/**
* Returns a regexp which is the equivalent of the gitignore pattern.
*
* @param string $gitignoreFileContent
*
* @return string The regexp
*/
public static function toRegex(string $gitignoreFileContent): string

View File

@ -17,10 +17,6 @@ class GitignoreTest extends TestCase
{
/**
* @dataProvider provider
*
* @param string $patterns
* @param array $matchingCases
* @param array $nonMatchingCases
*/
public function testCases(string $patterns, array $matchingCases, array $nonMatchingCases)
{

View File

@ -96,7 +96,6 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
*
* @param string $name
* @param string|FormTypeInterface $type
* @param array $options
*
* @throws BadMethodCallException
*/
@ -198,8 +197,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
*
* This method should not be invoked.
*
* @param DataTransformerInterface $viewTransformer
* @param bool $forcePrepend
* @param bool $forcePrepend
*
* @throws BadMethodCallException
*/
@ -225,8 +223,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
*
* This method should not be invoked.
*
* @param DataTransformerInterface $modelTransformer
* @param bool $forceAppend
* @param bool $forceAppend
*
* @throws BadMethodCallException
*/

View File

@ -28,8 +28,7 @@ class BooleanToStringTransformer implements DataTransformerInterface
private $falseValues;
/**
* @param string $trueValue The value emitted upon transform if the input is true
* @param array $falseValues
* @param string $trueValue The value emitted upon transform if the input is true
*/
public function __construct(string $trueValue, array $falseValues = [null])
{

View File

@ -32,8 +32,6 @@ class ResizeFormListener implements EventSubscriberInterface
private $deleteEmpty;
/**
* @param string $type
* @param array $options
* @param bool $allowAdd Whether children could be added to the group
* @param bool $allowDelete Whether children could be removed from the group
* @param bool|callable $deleteEmpty

View File

@ -25,9 +25,7 @@ class DependencyInjectionExtension implements FormExtensionInterface
private $guesserServices;
/**
* @param ContainerInterface $typeContainer
* @param iterable[] $typeExtensionServices
* @param iterable $guesserServices
* @param iterable[] $typeExtensionServices
*/
public function __construct(ContainerInterface $typeContainer, array $typeExtensionServices, iterable $guesserServices)
{

View File

@ -47,8 +47,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
* The reverseTransform method of the transformer is used to convert from the
* view to the normalized format.
*
* @param DataTransformerInterface $viewTransformer
* @param bool $forcePrepend If set to true, prepend instead of appending
* @param bool $forcePrepend If set to true, prepend instead of appending
*
* @return $this The configuration object
*/
@ -69,8 +68,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
* The reverseTransform method of the transformer is used to convert from the
* normalized to the model format.
*
* @param DataTransformerInterface $modelTransformer
* @param bool $forceAppend If set to true, append instead of prepending
* @param bool $forceAppend If set to true, append instead of prepending
*
* @return $this The configuration object
*/

View File

@ -208,8 +208,6 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable
/**
* Adds an error to this form.
*
* @param FormError $error
*
* @return $this
*/
public function addError(FormError $error);

View File

@ -25,9 +25,7 @@ interface ResolvedFormTypeFactoryInterface
/**
* Resolves a form type.
*
* @param FormTypeInterface $type
* @param FormTypeExtensionInterface[] $typeExtensions
* @param ResolvedFormTypeInterface|null $parent
* @param FormTypeExtensionInterface[] $typeExtensions
*
* @return ResolvedFormTypeInterface
*

View File

@ -57,7 +57,6 @@ abstract class AbstractFormTest extends TestCase
* @param string $name
* @param EventDispatcherInterface $dispatcher
* @param string|null $dataClass
* @param array $options
*
* @return FormBuilder
*/

View File

@ -54,11 +54,8 @@ class RequestMatcher implements RequestMatcherInterface
private $schemes = [];
/**
* @param string|null $path
* @param string|null $host
* @param string|string[]|null $methods
* @param string|string[]|null $ips
* @param array $attributes
* @param string|string[]|null $schemes
*/
public function __construct(string $path = null, string $host = null, $methods = null, $ips = null, array $attributes = [], $schemes = null, int $port = null)

View File

@ -24,7 +24,6 @@ interface ArgumentResolverInterface
/**
* Returns the arguments to pass to the controller.
*
* @param Request $request
* @param callable $controller
*
* @return array An array of arguments to pass to the controller

View File

@ -24,9 +24,6 @@ interface ArgumentValueResolverInterface
/**
* Whether this resolver can resolve the value for the given ArgumentMetadata.
*
* @param Request $request
* @param ArgumentMetadata $argument
*
* @return bool
*/
public function supports(Request $request, ArgumentMetadata $argument);
@ -34,9 +31,6 @@ interface ArgumentValueResolverInterface
/**
* Returns the possible value(s).
*
* @param Request $request
* @param ArgumentMetadata $argument
*
* @return \Generator
*/
public function resolve(Request $request, ArgumentMetadata $argument);

View File

@ -43,8 +43,6 @@ final class ArgumentMetadataFactory implements ArgumentMetadataFactoryInterface
/**
* Returns an associated type to the given parameter if available.
*
* @param \ReflectionParameter $parameter
*
* @return string|null
*/
private function getType(\ReflectionParameter $parameter, \ReflectionFunctionAbstract $function)

View File

@ -99,8 +99,6 @@ class EventDataCollector extends DataCollector implements LateDataCollectorInter
/**
* Sets the not called listeners.
*
* @param array $listeners
*
* @see TraceableEventDispatcher
*/
public function setNotCalledListeners(array $listeners)

View File

@ -48,10 +48,6 @@ class ExceptionListener implements EventSubscriberInterface
$this->logException($event->getException(), sprintf('Uncaught PHP Exception %s: "%s" at %s line %s', $e->getClass(), $e->getMessage(), $e->getFile(), $e->getLine()));
}
/**
* @param string $eventName
* @param EventDispatcherInterface $eventDispatcher
*/
public function onKernelException(GetResponseForExceptionEvent $event)
{
if (null === $this->controller) {

View File

@ -55,7 +55,6 @@ class RouterListener implements EventSubscriberInterface
* @param RequestContext|null $context The RequestContext (can be null when $matcher implements RequestContextAwareInterface)
* @param LoggerInterface|null $logger The logger
* @param string $projectDir
* @param bool $debug
*
* @throws \InvalidArgumentException
*/
@ -91,8 +90,6 @@ class RouterListener implements EventSubscriberInterface
/**
* After a sub-request is done, we need to reset the routing context to the parent request so that the URL generator
* operates on the correct context again.
*
* @param FinishRequestEvent $event
*/
public function onKernelFinishRequest(FinishRequestEvent $event)
{

View File

@ -21,7 +21,6 @@ class AccessDeniedHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(string $message = null, \Throwable $previous = null, int $code = 0, array $headers = [])
{

View File

@ -20,7 +20,6 @@ class BadRequestHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(string $message = null, \Throwable $previous = null, int $code = 0, array $headers = [])
{

View File

@ -20,7 +20,6 @@ class ConflictHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(string $message = null, \Throwable $previous = null, int $code = 0, array $headers = [])
{

View File

@ -20,7 +20,6 @@ class GoneHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(string $message = null, \Throwable $previous = null, int $code = 0, array $headers = [])
{

View File

@ -20,7 +20,6 @@ class LengthRequiredHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(string $message = null, \Throwable $previous = null, int $code = 0, array $headers = [])
{

View File

@ -21,7 +21,6 @@ class MethodNotAllowedHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(array $allow, string $message = null, \Throwable $previous = null, ?int $code = 0, array $headers = [])
{

View File

@ -20,7 +20,6 @@ class NotAcceptableHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(string $message = null, \Throwable $previous = null, int $code = 0, array $headers = [])
{

View File

@ -20,7 +20,6 @@ class NotFoundHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(string $message = null, \Throwable $previous = null, int $code = 0, array $headers = [])
{

View File

@ -20,7 +20,6 @@ class PreconditionFailedHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(string $message = null, \Throwable $previous = null, int $code = 0, array $headers = [])
{

View File

@ -22,7 +22,6 @@ class PreconditionRequiredHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(string $message = null, \Throwable $previous = null, int $code = 0, array $headers = [])
{

View File

@ -21,7 +21,6 @@ class ServiceUnavailableHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct($retryAfter = null, string $message = null, \Throwable $previous = null, ?int $code = 0, array $headers = [])
{

View File

@ -23,7 +23,6 @@ class TooManyRequestsHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct($retryAfter = null, string $message = null, \Throwable $previous = null, ?int $code = 0, array $headers = [])
{

View File

@ -21,7 +21,6 @@ class UnauthorizedHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(string $challenge, string $message = null, \Throwable $previous = null, ?int $code = 0, array $headers = [])
{

View File

@ -20,7 +20,6 @@ class UnprocessableEntityHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(string $message = null, \Throwable $previous = null, int $code = 0, array $headers = [])
{

View File

@ -20,7 +20,6 @@ class UnsupportedMediaTypeHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(string $message = null, \Throwable $previous = null, int $code = 0, array $headers = [])
{

View File

@ -36,7 +36,6 @@ class HIncludeFragmentRenderer extends RoutableFragmentRenderer
* @param EngineInterface|Environment $templating An EngineInterface or a Twig instance
* @param UriSigner $signer A UriSigner instance
* @param string $globalDefaultTemplate The global default content (it can be a template name or the content)
* @param string $charset
*/
public function __construct($templating = null, UriSigner $signer = null, string $globalDefaultTemplate = null, string $charset = 'utf-8')
{

View File

@ -91,8 +91,7 @@ abstract class AbstractDataGenerator
}
/**
* @param LocaleScanner $scanner
* @param string $sourceDir
* @param string $sourceDir
*
* @return string[]
*/

View File

@ -23,7 +23,6 @@ abstract class Transformer
/**
* Format a value using a configured DateTime as date/time source.
*
*
* @param \DateTime $dateTime A DateTime object to be used to generate the formatted value
* @param int $length The formatted value string length
*

View File

@ -28,7 +28,6 @@ interface AdapterInterface
*
* @param string $dn
* @param string $query
* @param array $options
*
* @return QueryInterface
*/

View File

@ -31,8 +31,6 @@ interface EntryManagerInterface
/**
* Adds a new entry in the Ldap server.
*
* @param Entry $entry
*
* @throws NotBoundException
* @throws LdapException
*/
@ -41,8 +39,6 @@ interface EntryManagerInterface
/**
* Updates an entry from the Ldap server.
*
* @param Entry $entry
*
* @throws NotBoundException
* @throws LdapException
*/
@ -51,7 +47,6 @@ interface EntryManagerInterface
/**
* Renames an entry on the Ldap server.
*
* @param Entry $entry
* @param string $newRdn
* @param bool $removeOldRdn
*/
@ -60,8 +55,6 @@ interface EntryManagerInterface
/**
* Removes an entry from the Ldap server.
*
* @param Entry $entry
*
* @throws NotBoundException
* @throws LdapException
*/

View File

@ -76,7 +76,6 @@ class Entry
* Sets a value for the given attribute.
*
* @param string $name
* @param array $value
*/
public function setAttribute($name, array $value)
{

View File

@ -40,7 +40,6 @@ interface LdapInterface
*
* @param string $dn
* @param string $query
* @param array $options
*
* @return QueryInterface
*/

View File

@ -37,8 +37,7 @@ class CombinedStore implements StoreInterface, LoggerAwareInterface
private $strategy;
/**
* @param StoreInterface[] $stores The list of synchronized stores
* @param StrategyInterface $strategy
* @param StoreInterface[] $stores The list of synchronized stores
*
* @throws InvalidArgumentException
*/

View File

@ -37,8 +37,7 @@ class MemcachedStore implements StoreInterface
}
/**
* @param \Memcached $memcached
* @param int $initialTtl the expiration delay of locks in seconds
* @param int $initialTtl the expiration delay of locks in seconds
*/
public function __construct(\Memcached $memcached, int $initialTtl = 300)
{

View File

@ -34,9 +34,6 @@ class InMemoryTransportFactoryTest extends TestCase
}
/**
* @param string $dsn
* @param bool $expected
*
* @dataProvider provideDSN
*/
public function testSupports(string $dsn, bool $expected = true)

View File

@ -61,9 +61,6 @@ final class MailboxHeader extends AbstractHeader
$this->address = $address;
}
/**
* @return Address
*/
public function getAddress(): Address
{
return $this->address;

View File

@ -218,7 +218,6 @@ class Process implements \IteratorAggregate
*
* @param callable|null $callback A PHP callback to run whenever there is some
* output available on STDOUT or STDERR
* @param array $env An array of additional env vars to set when running the process
*
* @return int The exit status code
*
@ -241,9 +240,6 @@ class Process implements \IteratorAggregate
* This is identical to run() except that an exception is thrown if the process
* exits with a non-zero exit code.
*
* @param callable|null $callback
* @param array $env An array of additional env vars to set when running the process
*
* @return self
*
* @throws ProcessFailedException if the process didn't terminate successfully
@ -273,7 +269,6 @@ class Process implements \IteratorAggregate
*
* @param callable|null $callback A PHP callback to run whenever there is some
* output available on STDOUT or STDERR
* @param array $env An array of additional env vars to set when running the process
*
* @throws RuntimeException When process can't be launched
* @throws RuntimeException When process is already running
@ -360,7 +355,6 @@ class Process implements \IteratorAggregate
*
* @param callable|null $callback A PHP callback to run whenever there is some
* output available on STDOUT or STDERR
* @param array $env An array of additional env vars to set when running the process
*
* @return $this
*

Some files were not shown because too many files have changed in this diff Show More