minor #33151 Remove superfluous phpdoc tags (Philippe Segatori)
This PR was submitted for the master branch but it was merged into the 3.4 branch instead (closes #33151).
Discussion
----------
Remove superfluous phpdoc tags
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | ...
| License | MIT
As Symfony is moving towards type hinted code, this PR is attempting to remove the now superfluous annotations
See #33150 to make this cleaning as an automatic process
Commits
-------
608e23c09a
Remove superfluous phpdoc tags
This commit is contained in:
commit
6a1382637b
13
.php_cs.dist
13
.php_cs.dist
@ -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,16 +27,11 @@ return PhpCsFixer\Config::create()
|
||||
PhpCsFixer\Finder::create()
|
||||
->in(__DIR__.'/src')
|
||||
->append([__FILE__])
|
||||
->notPath('#/Fixtures/#')
|
||||
->exclude([
|
||||
// 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',
|
||||
// resource templates
|
||||
'Symfony/Bundle/FrameworkBundle/Resources/views/Form',
|
||||
// explicit trigger_error tests
|
||||
@ -42,12 +39,12 @@ 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')
|
||||
)
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -44,9 +44,8 @@ class DoctrineValidationPass implements CompilerPassInterface
|
||||
* Gets the validation mapping files for the format and extends them with
|
||||
* files matching a doctrine search pattern (Resources/config/validation.orm.xml).
|
||||
*
|
||||
* @param ContainerBuilder $container
|
||||
* @param string $mapping
|
||||
* @param string $extension
|
||||
* @param string $mapping
|
||||
* @param string $extension
|
||||
*/
|
||||
private function updateValidatorMappingFiles(ContainerBuilder $container, $mapping, $extension)
|
||||
{
|
||||
|
@ -123,8 +123,7 @@ class RegisterEventListenersAndSubscribersPass implements CompilerPassInterface
|
||||
* @see https://bugs.php.net/53710
|
||||
* @see https://bugs.php.net/60926
|
||||
*
|
||||
* @param string $tagName
|
||||
* @param ContainerBuilder $container
|
||||
* @param string $tagName
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
|
@ -264,9 +264,8 @@ abstract class DoctrineType extends AbstractType
|
||||
/**
|
||||
* Return the default loader object.
|
||||
*
|
||||
* @param ObjectManager $manager
|
||||
* @param mixed $queryBuilder
|
||||
* @param string $class
|
||||
* @param mixed $queryBuilder
|
||||
* @param string $class
|
||||
*
|
||||
* @return EntityLoaderInterface
|
||||
*/
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -167,8 +167,6 @@ class DoctrineExtractor implements PropertyListExtractorInterface, PropertyTypeE
|
||||
/**
|
||||
* Determines whether an association is nullable.
|
||||
*
|
||||
* @param array $associationMapping
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @see https://github.com/doctrine/doctrine2/blob/v2.5.4/lib/Doctrine/ORM/Tools/EntityGenerator.php#L1221-L1246
|
||||
|
@ -28,8 +28,6 @@ class DoctrineTestHelper
|
||||
/**
|
||||
* Returns an entity manager for testing.
|
||||
*
|
||||
* @param Configuration|null $config
|
||||
*
|
||||
* @return EntityManager
|
||||
*/
|
||||
public static function createTestEntityManager(Configuration $config = null)
|
||||
|
@ -186,7 +186,6 @@ class DoctrineExtensionTest extends TestCase
|
||||
|
||||
/**
|
||||
* @param string $class
|
||||
* @param array $config
|
||||
*
|
||||
* @dataProvider providerBasicDrivers
|
||||
*/
|
||||
|
@ -34,8 +34,7 @@ class UniqueEntityValidator extends ConstraintValidator
|
||||
}
|
||||
|
||||
/**
|
||||
* @param object $entity
|
||||
* @param Constraint $constraint
|
||||
* @param object $entity
|
||||
*
|
||||
* @throws UnexpectedTypeException
|
||||
* @throws ConstraintDefinitionException
|
||||
|
@ -41,8 +41,7 @@ class ProxyDumperTest extends TestCase
|
||||
/**
|
||||
* @dataProvider getProxyCandidates
|
||||
*
|
||||
* @param Definition $definition
|
||||
* @param bool $expected
|
||||
* @param bool $expected
|
||||
*/
|
||||
public function testIsProxyCandidate(Definition $definition, $expected)
|
||||
{
|
||||
|
@ -104,8 +104,7 @@ class TranslationNodeVisitor extends AbstractNodeVisitor
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Node $arguments
|
||||
* @param int $index
|
||||
* @param int $index
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -95,8 +95,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
|
||||
*/
|
||||
|
@ -31,10 +31,9 @@ class AnnotationsCacheWarmer extends AbstractPhpFileCacheWarmer
|
||||
private $debug;
|
||||
|
||||
/**
|
||||
* @param Reader $annotationReader
|
||||
* @param string $phpArrayFile The PHP file where annotations are cached
|
||||
* @param CacheItemPoolInterface $fallbackPool The pool where runtime-discovered annotations are cached
|
||||
* @param bool $debug Run in debug mode
|
||||
* @param string $phpArrayFile The PHP file where annotations are cached
|
||||
* @param CacheItemPoolInterface $fallbackPool The pool where runtime-discovered annotations are cached
|
||||
* @param bool $debug Run in debug mode
|
||||
*/
|
||||
public function __construct(Reader $annotationReader, $phpArrayFile, CacheItemPoolInterface $fallbackPool, $excludeRegexp = null, $debug = false)
|
||||
{
|
||||
|
@ -33,9 +33,8 @@ class ValidatorCacheWarmer extends AbstractPhpFileCacheWarmer
|
||||
private $validatorBuilder;
|
||||
|
||||
/**
|
||||
* @param ValidatorBuilderInterface $validatorBuilder
|
||||
* @param string $phpArrayFile The PHP file where metadata are cached
|
||||
* @param CacheItemPoolInterface $fallbackPool The pool where runtime-discovered metadata are cached
|
||||
* @param string $phpArrayFile The PHP file where metadata are cached
|
||||
* @param CacheItemPoolInterface $fallbackPool The pool where runtime-discovered metadata are cached
|
||||
*/
|
||||
public function __construct(ValidatorBuilderInterface $validatorBuilder, $phpArrayFile, CacheItemPoolInterface $fallbackPool)
|
||||
{
|
||||
|
@ -42,7 +42,6 @@ class CacheClearCommand extends ContainerAwareCommand
|
||||
|
||||
/**
|
||||
* @param CacheClearerInterface $cacheClearer
|
||||
* @param Filesystem|null $filesystem
|
||||
*/
|
||||
public function __construct($cacheClearer = null, Filesystem $filesystem = null)
|
||||
{
|
||||
@ -267,10 +266,9 @@ EOF
|
||||
}
|
||||
|
||||
/**
|
||||
* @param KernelInterface $parent
|
||||
* @param string $namespace
|
||||
* @param string $parentClass
|
||||
* @param string $warmupDir
|
||||
* @param string $namespace
|
||||
* @param string $parentClass
|
||||
* @param string $warmupDir
|
||||
*
|
||||
* @return KernelInterface
|
||||
*/
|
||||
|
@ -127,8 +127,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);
|
||||
|
||||
@ -167,7 +165,6 @@ abstract class Descriptor implements DescriptorInterface
|
||||
* Describes a callable.
|
||||
*
|
||||
* @param callable $callable
|
||||
* @param array $options
|
||||
*/
|
||||
abstract protected function describeCallable($callable, array $options = []);
|
||||
|
||||
@ -214,8 +211,7 @@ abstract class Descriptor implements DescriptorInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ContainerBuilder $builder
|
||||
* @param string $serviceId
|
||||
* @param string $serviceId
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
@ -235,8 +231,7 @@ abstract class Descriptor implements DescriptorInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ContainerBuilder $builder
|
||||
* @param bool $showPrivate
|
||||
* @param bool $showPrivate
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
|
@ -207,8 +207,7 @@ class JsonDescriptor extends Descriptor
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Definition $definition
|
||||
* @param bool $omitTags
|
||||
* @param bool $omitTags
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
@ -285,8 +284,7 @@ class JsonDescriptor extends Descriptor
|
||||
}
|
||||
|
||||
/**
|
||||
* @param EventDispatcherInterface $eventDispatcher
|
||||
* @param string|null $event
|
||||
* @param string|null $event
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
@ -318,7 +316,6 @@ class JsonDescriptor extends Descriptor
|
||||
|
||||
/**
|
||||
* @param callable $callable
|
||||
* @param array $options
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
|
@ -434,8 +434,6 @@ class TextDescriptor extends Descriptor
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $config
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private function formatRouterConfig(array $config)
|
||||
@ -494,7 +492,6 @@ class TextDescriptor extends Descriptor
|
||||
|
||||
/**
|
||||
* @param string $content
|
||||
* @param array $options
|
||||
*/
|
||||
private function writeText($content, array $options = [])
|
||||
{
|
||||
|
@ -156,7 +156,6 @@ class XmlDescriptor extends Descriptor
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Route $route
|
||||
* @param string|null $name
|
||||
*
|
||||
* @return \DOMDocument
|
||||
@ -242,8 +241,7 @@ class XmlDescriptor extends Descriptor
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ContainerBuilder $builder
|
||||
* @param bool $showPrivate
|
||||
* @param bool $showPrivate
|
||||
*
|
||||
* @return \DOMDocument
|
||||
*/
|
||||
@ -266,10 +264,9 @@ class XmlDescriptor extends Descriptor
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $service
|
||||
* @param string $id
|
||||
* @param ContainerBuilder|null $builder
|
||||
* @param bool $showArguments
|
||||
* @param mixed $service
|
||||
* @param string $id
|
||||
* @param bool $showArguments
|
||||
*
|
||||
* @return \DOMDocument
|
||||
*/
|
||||
@ -294,11 +291,10 @@ class XmlDescriptor extends Descriptor
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ContainerBuilder $builder
|
||||
* @param string|null $tag
|
||||
* @param bool $showPrivate
|
||||
* @param bool $showArguments
|
||||
* @param callable $filter
|
||||
* @param string|null $tag
|
||||
* @param bool $showPrivate
|
||||
* @param bool $showArguments
|
||||
* @param callable $filter
|
||||
*
|
||||
* @return \DOMDocument
|
||||
*/
|
||||
@ -328,7 +324,6 @@ class XmlDescriptor extends Descriptor
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Definition $definition
|
||||
* @param string|null $id
|
||||
* @param bool $omitTags
|
||||
*
|
||||
@ -452,7 +447,6 @@ class XmlDescriptor extends Descriptor
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Alias $alias
|
||||
* @param string|null $id
|
||||
*
|
||||
* @return \DOMDocument
|
||||
@ -490,8 +484,7 @@ class XmlDescriptor extends Descriptor
|
||||
}
|
||||
|
||||
/**
|
||||
* @param EventDispatcherInterface $eventDispatcher
|
||||
* @param string|null $event
|
||||
* @param string|null $event
|
||||
*
|
||||
* @return \DOMDocument
|
||||
*/
|
||||
|
@ -29,8 +29,6 @@ trait MicroKernelTrait
|
||||
*
|
||||
* $routes->import('config/routing.yml');
|
||||
* $routes->add('/admin', 'AppBundle:Admin: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);
|
||||
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -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
|
||||
|
@ -32,7 +32,6 @@ class TemplateCacheWarmer implements CacheWarmerInterface, ServiceSubscriberInte
|
||||
* TemplateCacheWarmer constructor.
|
||||
*
|
||||
* @param ContainerInterface $container
|
||||
* @param \Traversable $iterator
|
||||
*/
|
||||
public function __construct($container, \Traversable $iterator)
|
||||
{
|
||||
|
@ -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, $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
|
||||
*/
|
||||
|
@ -78,8 +78,7 @@ class RouterController
|
||||
/**
|
||||
* Returns the routing traces associated to the given request.
|
||||
*
|
||||
* @param RequestDataCollector $request
|
||||
* @param string $method
|
||||
* @param string $method
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
|
@ -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
|
||||
*
|
||||
|
@ -25,9 +25,8 @@ class RequestStackContext implements ContextInterface
|
||||
private $secure;
|
||||
|
||||
/**
|
||||
* @param RequestStack $requestStack
|
||||
* @param string $basePath
|
||||
* @param bool $secure
|
||||
* @param string $basePath
|
||||
* @param bool $secure
|
||||
*/
|
||||
public function __construct(RequestStack $requestStack, $basePath = '', $secure = false)
|
||||
{
|
||||
|
@ -86,11 +86,10 @@ abstract class AbstractAdapter implements AdapterInterface, LoggerAwareInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @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
|
||||
*/
|
||||
|
@ -19,9 +19,8 @@ class DoctrineAdapter extends AbstractAdapter
|
||||
use DoctrineTrait;
|
||||
|
||||
/**
|
||||
* @param CacheProvider $provider
|
||||
* @param string $namespace
|
||||
* @param int $defaultLifetime
|
||||
* @param string $namespace
|
||||
* @param int $defaultLifetime
|
||||
*/
|
||||
public function __construct(CacheProvider $provider, $namespace = '', $defaultLifetime = 0)
|
||||
{
|
||||
|
@ -31,9 +31,8 @@ class ProxyAdapter implements AdapterInterface, PruneableInterface, ResettableIn
|
||||
private $poolHash;
|
||||
|
||||
/**
|
||||
* @param CacheItemPoolInterface $pool
|
||||
* @param string $namespace
|
||||
* @param int $defaultLifetime
|
||||
* @param string $namespace
|
||||
* @param int $defaultLifetime
|
||||
*/
|
||||
public function __construct(CacheItemPoolInterface $pool, $namespace = '', $defaultLifetime = 0)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -19,9 +19,8 @@ class DoctrineCache extends AbstractCache
|
||||
use DoctrineTrait;
|
||||
|
||||
/**
|
||||
* @param CacheProvider $provider
|
||||
* @param string $namespace
|
||||
* @param int $defaultLifetime
|
||||
* @param string $namespace
|
||||
* @param int $defaultLifetime
|
||||
*/
|
||||
public function __construct(CacheProvider $provider, $namespace = '', $defaultLifetime = 0)
|
||||
{
|
||||
|
@ -20,9 +20,8 @@ class MemcachedCache extends AbstractCache
|
||||
protected $maxIdLength = 250;
|
||||
|
||||
/**
|
||||
* @param \Memcached $client
|
||||
* @param string $namespace
|
||||
* @param int $defaultLifetime
|
||||
* @param string $namespace
|
||||
* @param int $defaultLifetime
|
||||
*/
|
||||
public function __construct(\Memcached $client, $namespace = '', $defaultLifetime = 0)
|
||||
{
|
||||
|
@ -42,10 +42,9 @@ class XmlReferenceDumper
|
||||
}
|
||||
|
||||
/**
|
||||
* @param NodeInterface $node
|
||||
* @param int $depth
|
||||
* @param bool $root If the node is the root node
|
||||
* @param string $namespace The namespace of the 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)
|
||||
{
|
||||
|
@ -70,10 +70,8 @@ class YamlReferenceDumper
|
||||
}
|
||||
|
||||
/**
|
||||
* @param NodeInterface $node
|
||||
* @param NodeInterface|null $parentNode
|
||||
* @param int $depth
|
||||
* @param bool $prototypedArray
|
||||
* @param int $depth
|
||||
* @param bool $prototypedArray
|
||||
*/
|
||||
private function writeNode(NodeInterface $node, NodeInterface $parentNode = null, $depth = 0, $prototypedArray = false)
|
||||
{
|
||||
@ -215,8 +213,6 @@ class YamlReferenceDumper
|
||||
}
|
||||
|
||||
/**
|
||||
* @param PrototypedArrayNode $node
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
private function getPrototypeChildren(PrototypedArrayNode $node)
|
||||
|
@ -262,7 +262,6 @@ class PrototypedArrayNodeTest extends TestCase
|
||||
* ]
|
||||
* ]
|
||||
*
|
||||
*
|
||||
* @dataProvider getDataForKeyRemovedLeftValueOnly
|
||||
*/
|
||||
public function testMappedAttributeKeyIsRemovedLeftValueOnly($value, $children, $expected)
|
||||
|
@ -44,7 +44,6 @@ class ApplicationDescription
|
||||
private $aliases;
|
||||
|
||||
/**
|
||||
* @param Application $application
|
||||
* @param string|null $namespace
|
||||
* @param bool $showHidden
|
||||
*/
|
||||
|
@ -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 = []);
|
||||
}
|
||||
|
@ -81,7 +81,6 @@ class XmlDescriptor extends Descriptor
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Application $application
|
||||
* @param string|null $namespace
|
||||
*
|
||||
* @return \DOMDocument
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -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, $format = null, $indicatorChangeInterval = 100, $indicatorValues = null)
|
||||
{
|
||||
|
@ -230,10 +230,7 @@ class QuestionHelper extends Helper
|
||||
/**
|
||||
* Autocompletes a question.
|
||||
*
|
||||
* @param OutputInterface $output
|
||||
* @param Question $question
|
||||
* @param resource $inputStream
|
||||
* @param array $autocomplete
|
||||
* @param resource $inputStream
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
@ -193,8 +193,6 @@ class Table
|
||||
/**
|
||||
* Sets the minimum width of all columns.
|
||||
*
|
||||
* @param array $widths
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setColumnWidths(array $widths)
|
||||
@ -341,7 +339,6 @@ class Table
|
||||
*
|
||||
* | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |
|
||||
*
|
||||
* @param array $row
|
||||
* @param string $cellFormat
|
||||
*/
|
||||
private function renderRow(array $row, $cellFormat)
|
||||
@ -361,7 +358,6 @@ class Table
|
||||
/**
|
||||
* Renders table cell with padding.
|
||||
*
|
||||
* @param array $row
|
||||
* @param int $column
|
||||
* @param string $cellFormat
|
||||
*/
|
||||
@ -453,8 +449,7 @@ class Table
|
||||
/**
|
||||
* fill rows that contains rowspan > 1.
|
||||
*
|
||||
* @param array $rows
|
||||
* @param int $line
|
||||
* @param int $line
|
||||
*
|
||||
* @return array
|
||||
*
|
||||
@ -533,8 +528,7 @@ class Table
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $rows
|
||||
* @param int $line
|
||||
* @param int $line
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
@ -629,8 +623,7 @@ class Table
|
||||
/**
|
||||
* Gets cell width.
|
||||
*
|
||||
* @param array $row
|
||||
* @param int $column
|
||||
* @param int $column
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
|
@ -26,7 +26,6 @@ class TableCell
|
||||
|
||||
/**
|
||||
* @param string $value
|
||||
* @param array $options
|
||||
*/
|
||||
public function __construct($value = '', array $options = [])
|
||||
{
|
||||
|
@ -101,7 +101,6 @@ class ConsoleLogger extends AbstractLogger
|
||||
* @author PHP Framework Interoperability Group
|
||||
*
|
||||
* @param string $message
|
||||
* @param array $context
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
@ -156,8 +156,6 @@ class Question
|
||||
/**
|
||||
* Sets a validator for the question.
|
||||
*
|
||||
* @param callable|null $validator
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setValidator(callable $validator = null)
|
||||
@ -216,8 +214,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)
|
||||
|
@ -119,7 +119,6 @@ interface StyleInterface
|
||||
* Asks a choice question.
|
||||
*
|
||||
* @param string $question
|
||||
* @param array $choices
|
||||
* @param string|int|null $default
|
||||
*
|
||||
* @return mixed
|
||||
|
@ -25,7 +25,6 @@ class SyntaxErrorException extends ParseException
|
||||
{
|
||||
/**
|
||||
* @param string $expectedValue
|
||||
* @param Token $foundToken
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
|
@ -30,11 +30,10 @@ class AttributeNode extends AbstractNode
|
||||
private $value;
|
||||
|
||||
/**
|
||||
* @param NodeInterface $selector
|
||||
* @param string $namespace
|
||||
* @param string $attribute
|
||||
* @param string $operator
|
||||
* @param string $value
|
||||
* @param string $namespace
|
||||
* @param string $attribute
|
||||
* @param string $operator
|
||||
* @param string $value
|
||||
*/
|
||||
public function __construct(NodeInterface $selector, $namespace, $attribute, $operator, $value)
|
||||
{
|
||||
|
@ -27,8 +27,7 @@ class ClassNode extends AbstractNode
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @param NodeInterface $selector
|
||||
* @param string $name
|
||||
* @param string $name
|
||||
*/
|
||||
public function __construct(NodeInterface $selector, $name)
|
||||
{
|
||||
|
@ -28,9 +28,7 @@ class CombinedSelectorNode extends AbstractNode
|
||||
private $subSelector;
|
||||
|
||||
/**
|
||||
* @param NodeInterface $selector
|
||||
* @param string $combinator
|
||||
* @param NodeInterface $subSelector
|
||||
* @param string $combinator
|
||||
*/
|
||||
public function __construct(NodeInterface $selector, $combinator, NodeInterface $subSelector)
|
||||
{
|
||||
|
@ -30,9 +30,8 @@ class FunctionNode extends AbstractNode
|
||||
private $arguments;
|
||||
|
||||
/**
|
||||
* @param NodeInterface $selector
|
||||
* @param string $name
|
||||
* @param Token[] $arguments
|
||||
* @param string $name
|
||||
* @param Token[] $arguments
|
||||
*/
|
||||
public function __construct(NodeInterface $selector, $name, array $arguments = [])
|
||||
{
|
||||
|
@ -27,8 +27,7 @@ class HashNode extends AbstractNode
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @param NodeInterface $selector
|
||||
* @param string $id
|
||||
* @param string $id
|
||||
*/
|
||||
public function __construct(NodeInterface $selector, $id)
|
||||
{
|
||||
|
@ -27,8 +27,7 @@ class PseudoNode extends AbstractNode
|
||||
private $identifier;
|
||||
|
||||
/**
|
||||
* @param NodeInterface $selector
|
||||
* @param string $identifier
|
||||
* @param string $identifier
|
||||
*/
|
||||
public function __construct(NodeInterface $selector, $identifier)
|
||||
{
|
||||
|
@ -27,8 +27,7 @@ class SelectorNode extends AbstractNode
|
||||
private $pseudoElement;
|
||||
|
||||
/**
|
||||
* @param NodeInterface $tree
|
||||
* @param string|null $pseudoElement
|
||||
* @param string|null $pseudoElement
|
||||
*/
|
||||
public function __construct(NodeInterface $tree, $pseudoElement = null)
|
||||
{
|
||||
|
@ -158,8 +158,7 @@ class Parser implements ParserInterface
|
||||
/**
|
||||
* Parses next simple node (hash, class, pseudo, negation).
|
||||
*
|
||||
* @param TokenStream $stream
|
||||
* @param bool $insideNegation
|
||||
* @param bool $insideNegation
|
||||
*
|
||||
* @return array
|
||||
*
|
||||
|
@ -44,9 +44,8 @@ class AttributeMatchingExtension extends AbstractExtension
|
||||
}
|
||||
|
||||
/**
|
||||
* @param XPathExpr $xpath
|
||||
* @param string $attribute
|
||||
* @param string $value
|
||||
* @param string $attribute
|
||||
* @param string $value
|
||||
*
|
||||
* @return XPathExpr
|
||||
*/
|
||||
@ -56,9 +55,8 @@ class AttributeMatchingExtension extends AbstractExtension
|
||||
}
|
||||
|
||||
/**
|
||||
* @param XPathExpr $xpath
|
||||
* @param string $attribute
|
||||
* @param string $value
|
||||
* @param string $attribute
|
||||
* @param string $value
|
||||
*
|
||||
* @return XPathExpr
|
||||
*/
|
||||
@ -68,9 +66,8 @@ class AttributeMatchingExtension extends AbstractExtension
|
||||
}
|
||||
|
||||
/**
|
||||
* @param XPathExpr $xpath
|
||||
* @param string $attribute
|
||||
* @param string $value
|
||||
* @param string $attribute
|
||||
* @param string $value
|
||||
*
|
||||
* @return XPathExpr
|
||||
*/
|
||||
@ -84,9 +81,8 @@ class AttributeMatchingExtension extends AbstractExtension
|
||||
}
|
||||
|
||||
/**
|
||||
* @param XPathExpr $xpath
|
||||
* @param string $attribute
|
||||
* @param string $value
|
||||
* @param string $attribute
|
||||
* @param string $value
|
||||
*
|
||||
* @return XPathExpr
|
||||
*/
|
||||
@ -101,9 +97,8 @@ class AttributeMatchingExtension extends AbstractExtension
|
||||
}
|
||||
|
||||
/**
|
||||
* @param XPathExpr $xpath
|
||||
* @param string $attribute
|
||||
* @param string $value
|
||||
* @param string $attribute
|
||||
* @param string $value
|
||||
*
|
||||
* @return XPathExpr
|
||||
*/
|
||||
@ -117,9 +112,8 @@ class AttributeMatchingExtension extends AbstractExtension
|
||||
}
|
||||
|
||||
/**
|
||||
* @param XPathExpr $xpath
|
||||
* @param string $attribute
|
||||
* @param string $value
|
||||
* @param string $attribute
|
||||
* @param string $value
|
||||
*
|
||||
* @return XPathExpr
|
||||
*/
|
||||
@ -134,9 +128,8 @@ class AttributeMatchingExtension extends AbstractExtension
|
||||
}
|
||||
|
||||
/**
|
||||
* @param XPathExpr $xpath
|
||||
* @param string $attribute
|
||||
* @param string $value
|
||||
* @param string $attribute
|
||||
* @param string $value
|
||||
*
|
||||
* @return XPathExpr
|
||||
*/
|
||||
@ -150,9 +143,8 @@ class AttributeMatchingExtension extends AbstractExtension
|
||||
}
|
||||
|
||||
/**
|
||||
* @param XPathExpr $xpath
|
||||
* @param string $attribute
|
||||
* @param string $value
|
||||
* @param string $attribute
|
||||
* @param string $value
|
||||
*
|
||||
* @return XPathExpr
|
||||
*/
|
||||
|
@ -46,10 +46,8 @@ class FunctionExtension extends AbstractExtension
|
||||
}
|
||||
|
||||
/**
|
||||
* @param XPathExpr $xpath
|
||||
* @param FunctionNode $function
|
||||
* @param bool $last
|
||||
* @param bool $addNameTest
|
||||
* @param bool $last
|
||||
* @param bool $addNameTest
|
||||
*
|
||||
* @return XPathExpr
|
||||
*
|
||||
|
@ -180,9 +180,7 @@ class Translator implements TranslatorInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $combiner
|
||||
* @param NodeInterface $xpath
|
||||
* @param NodeInterface $combinedXpath
|
||||
* @param string $combiner
|
||||
*
|
||||
* @return XPathExpr
|
||||
*
|
||||
@ -212,8 +210,7 @@ class Translator implements TranslatorInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @param XPathExpr $xpath
|
||||
* @param string $pseudoClass
|
||||
* @param string $pseudoClass
|
||||
*
|
||||
* @return XPathExpr
|
||||
*
|
||||
@ -229,10 +226,9 @@ class Translator implements TranslatorInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @param XPathExpr $xpath
|
||||
* @param string $operator
|
||||
* @param string $attribute
|
||||
* @param string $value
|
||||
* @param string $operator
|
||||
* @param string $attribute
|
||||
* @param string $value
|
||||
*
|
||||
* @return XPathExpr
|
||||
*
|
||||
|
@ -38,8 +38,7 @@ interface TranslatorInterface
|
||||
/**
|
||||
* Translates a parsed selector node to an XPath expression.
|
||||
*
|
||||
* @param SelectorNode $selector
|
||||
* @param string $prefix
|
||||
* @param string $prefix
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
@ -20,7 +20,6 @@ class RewindableGenerator implements \IteratorAggregate, \Countable
|
||||
private $count;
|
||||
|
||||
/**
|
||||
* @param callable $generator
|
||||
* @param int|callable $count
|
||||
*/
|
||||
public function __construct(callable $generator, $count)
|
||||
|
@ -81,8 +81,7 @@ abstract class AbstractRecursivePass implements CompilerPassInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Definition $definition
|
||||
* @param bool $required
|
||||
* @param bool $required
|
||||
*
|
||||
* @return \ReflectionFunctionAbstract|null
|
||||
*
|
||||
@ -137,8 +136,7 @@ abstract class AbstractRecursivePass implements CompilerPassInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Definition $definition
|
||||
* @param string $method
|
||||
* @param string $method
|
||||
*
|
||||
* @throws RuntimeException
|
||||
*
|
||||
|
@ -79,8 +79,6 @@ class AutowirePass extends AbstractRecursivePass
|
||||
/**
|
||||
* Creates a resource to help know if this service has changed.
|
||||
*
|
||||
* @param \ReflectionClass $reflectionClass
|
||||
*
|
||||
* @return AutowireServiceResource
|
||||
*
|
||||
* @deprecated since version 3.3, to be removed in 4.0. Use ContainerBuilder::getReflectionClass() instead.
|
||||
@ -168,9 +166,6 @@ class AutowirePass extends AbstractRecursivePass
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \ReflectionClass $reflectionClass
|
||||
* @param array $methodCalls
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
private function autowireCalls(\ReflectionClass $reflectionClass, array $methodCalls)
|
||||
@ -205,9 +200,6 @@ class AutowirePass extends AbstractRecursivePass
|
||||
/**
|
||||
* Autowires the constructor or a method.
|
||||
*
|
||||
* @param \ReflectionFunctionAbstract $reflectionMethod
|
||||
* @param array $arguments
|
||||
*
|
||||
* @return array The autowired arguments
|
||||
*
|
||||
* @throws AutowiringFailedException
|
||||
@ -350,8 +342,7 @@ class AutowirePass extends AbstractRecursivePass
|
||||
/**
|
||||
* Populates the list of available types for a given definition.
|
||||
*
|
||||
* @param string $id
|
||||
* @param Definition $definition
|
||||
* @param string $id
|
||||
*/
|
||||
private function populateAvailableType($id, Definition $definition, $onlyAutowiringTypes)
|
||||
{
|
||||
|
@ -73,9 +73,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*/)
|
||||
{
|
||||
|
@ -113,9 +113,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
|
||||
*/
|
||||
|
@ -31,8 +31,7 @@ trait PriorityTaggedServiceTrait
|
||||
* @see https://bugs.php.net/53710
|
||||
* @see https://bugs.php.net/60926
|
||||
*
|
||||
* @param string $tagName
|
||||
* @param ContainerBuilder $container
|
||||
* @param string $tagName
|
||||
*
|
||||
* @return Reference[]
|
||||
*/
|
||||
|
@ -56,8 +56,7 @@ class ResolveReferencesToAliasesPass extends AbstractRecursivePass
|
||||
/**
|
||||
* Resolves an alias into a definition id.
|
||||
*
|
||||
* @param string $id The definition or alias id to resolve
|
||||
* @param ContainerBuilder $container
|
||||
* @param string $id The definition or alias id to resolve
|
||||
*
|
||||
* @return string The definition id with aliases resolved
|
||||
*/
|
||||
|
@ -76,9 +76,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
|
||||
*/
|
||||
|
@ -89,9 +89,6 @@ class ServiceReferenceGraph
|
||||
* @param string $destId
|
||||
* @param mixed $destValue
|
||||
* @param string $reference
|
||||
* @param bool $lazy
|
||||
* @param bool $weak
|
||||
* @param bool $byConstructor
|
||||
*/
|
||||
public function connect($sourceId, $sourceValue, $destId, $destValue = null, $reference = null/*, bool $lazy = false, bool $weak = false, bool $byConstructor = false*/)
|
||||
{
|
||||
|
@ -28,12 +28,10 @@ class ServiceReferenceGraphEdge
|
||||
private $byConstructor;
|
||||
|
||||
/**
|
||||
* @param ServiceReferenceGraphNode $sourceNode
|
||||
* @param ServiceReferenceGraphNode $destNode
|
||||
* @param mixed $value
|
||||
* @param bool $lazy
|
||||
* @param bool $weak
|
||||
* @param bool $byConstructor
|
||||
* @param mixed $value
|
||||
* @param bool $lazy
|
||||
* @param bool $weak
|
||||
* @param bool $byConstructor
|
||||
*/
|
||||
public function __construct(ServiceReferenceGraphNode $sourceNode, ServiceReferenceGraphNode $destNode, $value = null, $lazy = false, $weak = false, $byConstructor = false)
|
||||
{
|
||||
|
@ -1650,7 +1650,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
||||
/**
|
||||
* Shares a given service in the container.
|
||||
*
|
||||
* @param Definition $definition
|
||||
* @param mixed $service
|
||||
* @param string|null $id
|
||||
*/
|
||||
|
@ -936,8 +936,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)
|
||||
|
@ -470,9 +470,8 @@ EOF;
|
||||
/**
|
||||
* Generates the service instance.
|
||||
*
|
||||
* @param string $id
|
||||
* @param Definition $definition
|
||||
* @param bool $isSimpleInstance
|
||||
* @param string $id
|
||||
* @param bool $isSimpleInstance
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
@ -509,8 +508,6 @@ EOF;
|
||||
/**
|
||||
* Checks if the definition is a trivial instance.
|
||||
*
|
||||
* @param Definition $definition
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
private function isTrivialInstance(Definition $definition)
|
||||
@ -554,8 +551,7 @@ EOF;
|
||||
/**
|
||||
* Adds method calls to a service definition.
|
||||
*
|
||||
* @param Definition $definition
|
||||
* @param string $variableName
|
||||
* @param string $variableName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@ -587,8 +583,7 @@ EOF;
|
||||
/**
|
||||
* Adds configurator definition.
|
||||
*
|
||||
* @param Definition $definition
|
||||
* @param string $variableName
|
||||
* @param string $variableName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@ -624,9 +619,8 @@ EOF;
|
||||
/**
|
||||
* Adds a service.
|
||||
*
|
||||
* @param string $id
|
||||
* @param Definition $definition
|
||||
* @param string &$file
|
||||
* @param string $id
|
||||
* @param string &$file
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@ -1471,7 +1465,6 @@ EOF;
|
||||
/**
|
||||
* Exports parameters.
|
||||
*
|
||||
* @param array $parameters
|
||||
* @param string $path
|
||||
* @param int $indent
|
||||
*
|
||||
|
@ -90,9 +90,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)
|
||||
{
|
||||
@ -221,9 +220,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)
|
||||
{
|
||||
@ -261,10 +258,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')
|
||||
{
|
||||
|
@ -57,8 +57,7 @@ class YamlDumper extends Dumper
|
||||
/**
|
||||
* Adds a service.
|
||||
*
|
||||
* @param string $id
|
||||
* @param Definition $definition
|
||||
* @param string $id
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@ -171,7 +170,6 @@ class YamlDumper extends Dumper
|
||||
* Adds a service alias.
|
||||
*
|
||||
* @param string $alias
|
||||
* @param Alias $id
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@ -337,8 +335,7 @@ class YamlDumper extends Dumper
|
||||
/**
|
||||
* Prepares parameters.
|
||||
*
|
||||
* @param array $parameters
|
||||
* @param bool $escape
|
||||
* @param bool $escape
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
|
@ -30,9 +30,7 @@ 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, will be added to the interface in 4.0
|
||||
* @param string $id Service identifier
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -86,8 +86,7 @@ class XmlFileLoader extends FileLoader
|
||||
/**
|
||||
* Parses parameters.
|
||||
*
|
||||
* @param \DOMDocument $xml
|
||||
* @param string $file
|
||||
* @param string $file
|
||||
*/
|
||||
private function parseParameters(\DOMDocument $xml, $file)
|
||||
{
|
||||
@ -99,8 +98,7 @@ class XmlFileLoader extends FileLoader
|
||||
/**
|
||||
* Parses imports.
|
||||
*
|
||||
* @param \DOMDocument $xml
|
||||
* @param string $file
|
||||
* @param string $file
|
||||
*/
|
||||
private function parseImports(\DOMDocument $xml, $file)
|
||||
{
|
||||
@ -121,8 +119,7 @@ class XmlFileLoader extends FileLoader
|
||||
/**
|
||||
* Parses multiple definitions.
|
||||
*
|
||||
* @param \DOMDocument $xml
|
||||
* @param string $file
|
||||
* @param string $file
|
||||
*/
|
||||
private function parseDefinitions(\DOMDocument $xml, $file, $defaults)
|
||||
{
|
||||
@ -193,9 +190,7 @@ class XmlFileLoader extends FileLoader
|
||||
/**
|
||||
* Parses an individual Definition.
|
||||
*
|
||||
* @param \DOMElement $service
|
||||
* @param string $file
|
||||
* @param array $defaults
|
||||
* @param string $file
|
||||
*
|
||||
* @return Definition|null
|
||||
*/
|
||||
@ -394,9 +389,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)
|
||||
{
|
||||
@ -456,10 +450,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
|
||||
*/
|
||||
@ -546,8 +539,7 @@ class XmlFileLoader extends FileLoader
|
||||
/**
|
||||
* Get child elements by name.
|
||||
*
|
||||
* @param \DOMNode $node
|
||||
* @param mixed $name
|
||||
* @param mixed $name
|
||||
*
|
||||
* @return \DOMElement[]
|
||||
*/
|
||||
@ -566,8 +558,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
|
||||
@ -645,8 +635,7 @@ EOF
|
||||
/**
|
||||
* Validates an alias.
|
||||
*
|
||||
* @param \DOMElement $alias
|
||||
* @param string $file
|
||||
* @param string $file
|
||||
*/
|
||||
private function validateAlias(\DOMElement $alias, $file)
|
||||
{
|
||||
@ -666,8 +655,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
|
||||
*/
|
||||
@ -688,8 +676,6 @@ EOF
|
||||
|
||||
/**
|
||||
* Loads from an extension.
|
||||
*
|
||||
* @param \DOMDocument $xml
|
||||
*/
|
||||
private function loadFromExtensions(\DOMDocument $xml)
|
||||
{
|
||||
|
@ -170,7 +170,6 @@ class YamlFileLoader extends FileLoader
|
||||
/**
|
||||
* Parses all imports.
|
||||
*
|
||||
* @param array $content
|
||||
* @param string $file
|
||||
*/
|
||||
private function parseImports(array $content, $file)
|
||||
@ -200,7 +199,6 @@ class YamlFileLoader extends FileLoader
|
||||
/**
|
||||
* Parses definitions.
|
||||
*
|
||||
* @param array $content
|
||||
* @param string $file
|
||||
*/
|
||||
private function parseDefinitions(array $content, $file)
|
||||
@ -241,7 +239,6 @@ class YamlFileLoader extends FileLoader
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $content
|
||||
* @param string $file
|
||||
*
|
||||
* @return array
|
||||
@ -306,8 +303,6 @@ class YamlFileLoader extends FileLoader
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $service
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
private function isUsingShortSyntax(array $service)
|
||||
@ -327,7 +322,6 @@ class YamlFileLoader extends FileLoader
|
||||
* @param string $id
|
||||
* @param array|string $service
|
||||
* @param string $file
|
||||
* @param array $defaults
|
||||
*
|
||||
* @throws InvalidArgumentException When tags are invalid
|
||||
*/
|
||||
|
@ -899,7 +899,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
|
||||
@ -1095,9 +1094,6 @@ class Crawler implements \Countable, \IteratorAggregate
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DOMDocument $document
|
||||
* @param array $prefixes
|
||||
*
|
||||
* @return \DOMXPath
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
@ -1117,8 +1113,7 @@ class Crawler implements \Countable, \IteratorAggregate
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DOMXPath $domxpath
|
||||
* @param string $prefix
|
||||
* @param string $prefix
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
|
@ -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
|
||||
@ -255,8 +253,6 @@ class ChoiceFormField extends FormField
|
||||
/**
|
||||
* Returns option value with associated disabled flag.
|
||||
*
|
||||
* @param \DOMElement $node
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
private function buildOptionValue(\DOMElement $node)
|
||||
|
@ -38,8 +38,7 @@ final class Dotenv
|
||||
/**
|
||||
* Loads one or several .env files.
|
||||
*
|
||||
* @param string $path A file to load
|
||||
* @param ...string $paths A list of additional files to load
|
||||
* @param string $path A file to load
|
||||
*
|
||||
* @throws FormatException when a file has a syntax error
|
||||
* @throws PathException when a file does not exist or is not readable
|
||||
|
@ -88,7 +88,6 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
|
||||
*
|
||||
* @param string $name
|
||||
* @param string|FormTypeInterface $type
|
||||
* @param array $options
|
||||
*
|
||||
* @throws BadMethodCallException
|
||||
*/
|
||||
@ -190,8 +189,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
|
||||
*
|
||||
* This method should not be invoked.
|
||||
*
|
||||
* @param DataTransformerInterface $viewTransformer
|
||||
* @param bool $forcePrepend
|
||||
* @param bool $forcePrepend
|
||||
*
|
||||
* @throws BadMethodCallException
|
||||
*/
|
||||
@ -217,8 +215,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
|
||||
*
|
||||
* This method should not be invoked.
|
||||
*
|
||||
* @param DataTransformerInterface $modelTransformer
|
||||
* @param bool $forceAppend
|
||||
* @param bool $forceAppend
|
||||
*
|
||||
* @throws BadMethodCallException
|
||||
*/
|
||||
|
@ -33,7 +33,6 @@ class ResizeFormListener implements EventSubscriberInterface
|
||||
|
||||
/**
|
||||
* @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
|
||||
|
@ -34,12 +34,11 @@ class FormTypeCsrfExtension extends AbstractTypeExtension
|
||||
private $serverParams;
|
||||
|
||||
/**
|
||||
* @param CsrfTokenManagerInterface $defaultTokenManager
|
||||
* @param bool $defaultEnabled
|
||||
* @param string $defaultFieldName
|
||||
* @param TranslatorInterface $translator
|
||||
* @param string|null $translationDomain
|
||||
* @param ServerParams $serverParams
|
||||
* @param bool $defaultEnabled
|
||||
* @param string $defaultFieldName
|
||||
* @param TranslatorInterface $translator
|
||||
* @param string|null $translationDomain
|
||||
* @param ServerParams $serverParams
|
||||
*/
|
||||
public function __construct(CsrfTokenManagerInterface $defaultTokenManager, $defaultEnabled = true, $defaultFieldName = '_token', TranslatorInterface $translator = null, $translationDomain = null, ServerParams $serverParams = null)
|
||||
{
|
||||
|
@ -29,9 +29,8 @@ class DependencyInjectionExtension implements FormExtensionInterface
|
||||
private $guesserServiceIds;
|
||||
|
||||
/**
|
||||
* @param ContainerInterface $typeContainer
|
||||
* @param iterable[] $typeExtensionServices
|
||||
* @param iterable $guesserServices
|
||||
* @param iterable[] $typeExtensionServices
|
||||
* @param iterable $guesserServices
|
||||
*/
|
||||
public function __construct(ContainerInterface $typeContainer, array $typeExtensionServices, $guesserServices, array $guesserServiceIds = null)
|
||||
{
|
||||
|
@ -24,9 +24,8 @@ class MappingRule
|
||||
private $targetPath;
|
||||
|
||||
/**
|
||||
* @param FormInterface $origin
|
||||
* @param string $propertyPath
|
||||
* @param string $targetPath
|
||||
* @param string $propertyPath
|
||||
* @param string $targetPath
|
||||
*/
|
||||
public function __construct(FormInterface $origin, $propertyPath, $targetPath)
|
||||
{
|
||||
|
@ -22,8 +22,7 @@ class RelativePath extends PropertyPath
|
||||
private $root;
|
||||
|
||||
/**
|
||||
* @param FormInterface $root
|
||||
* @param string $propertyPath
|
||||
* @param string $propertyPath
|
||||
*/
|
||||
public function __construct(FormInterface $root, $propertyPath)
|
||||
{
|
||||
|
@ -38,11 +38,8 @@ class FormBuilder extends FormConfigBuilder implements \IteratorAggregate, FormB
|
||||
private $unresolvedChildren = [];
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @param string|null $dataClass
|
||||
* @param EventDispatcherInterface $dispatcher
|
||||
* @param FormFactoryInterface $factory
|
||||
* @param array $options
|
||||
* @param string $name
|
||||
* @param string|null $dataClass
|
||||
*/
|
||||
public function __construct($name, $dataClass, EventDispatcherInterface $dispatcher, FormFactoryInterface $factory, array $options = [])
|
||||
{
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
*
|
||||
|
@ -57,7 +57,6 @@ abstract class AbstractFormTest extends TestCase
|
||||
* @param string $name
|
||||
* @param EventDispatcherInterface $dispatcher
|
||||
* @param string|null $dataClass
|
||||
* @param array $options
|
||||
*
|
||||
* @return FormBuilder
|
||||
*/
|
||||
|
@ -413,7 +413,6 @@ EODUMP
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @param array $options
|
||||
*
|
||||
* @return FormBuilder
|
||||
*/
|
||||
|
@ -739,7 +739,6 @@ class FormValidatorTest extends ConstraintValidatorTestCase
|
||||
/**
|
||||
* @param string $name
|
||||
* @param string $dataClass
|
||||
* @param array $options
|
||||
*
|
||||
* @return FormBuilder
|
||||
*/
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user