Skip to content

Commit f94d36e

Browse files
Remove redundant type in @param occurrences
1 parent 44e4699 commit f94d36e

File tree

579 files changed

+1911
-1912
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

579 files changed

+1911
-1912
lines changed

src/Symfony/Bridge/Doctrine/Attribute/MapEntity.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ class MapEntity extends ValueResolver
2222
{
2323
/**
2424
* @param class-string|null $class The entity class
25-
* @param string|null $objectManager Specify the object manager used to retrieve the entity
26-
* @param string|null $expr An expression to fetch the entity using the {@see https://symfony.com/doc/current/components/expression_language.html ExpressionLanguage} syntax.
27-
* Any request attribute are available as a variable, and your entity repository in the 'repository' variable.
25+
* @param $objectManager Specify the object manager used to retrieve the entity
26+
* @param $expr An expression to fetch the entity using the {@see https://symfony.com/doc/current/components/expression_language.html ExpressionLanguage} syntax.
27+
* Any request attribute are available as a variable, and your entity repository in the 'repository' variable.
2828
* @param array<string, string>|null $mapping Configures the properties and values to use with the findOneBy() method
2929
* The key is the route placeholder name and the value is the Doctrine property name
3030
* @param string[]|null $exclude Configures the properties that should be used in the findOneBy() method by excluding
3131
* one or more properties so that not all are used
32-
* @param bool|null $stripNull Whether to prevent null values from being used as parameters in the query (defaults to false)
32+
* @param $stripNull Whether to prevent null values from being used as parameters in the query (defaults to false)
3333
* @param string[]|string|null $id If an id option is configured and matches a route parameter, then the resolver will find by the primary key
34-
* @param bool|null $evictCache If true, forces Doctrine to always fetch the entity from the database instead of cache (defaults to false)
34+
* @param $evictCache If true, forces Doctrine to always fetch the entity from the database instead of cache (defaults to false)
3535
*/
3636
public function __construct(
3737
public ?string $class = null,

src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ abstract class AbstractDoctrineExtension extends Extension
3535
protected array $drivers = [];
3636

3737
/**
38-
* @param array $objectManager A configured object manager
38+
* @param $objectManager A configured object manager
3939
*
4040
* @throws \InvalidArgumentException
4141
*/

src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPass.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ class RegisterEventListenersAndSubscribersPass implements CompilerPassInterface
3838
private array $eventManagers = [];
3939

4040
/**
41-
* @param string $managerTemplate sprintf() template for generating the event
42-
* manager's service ID for a connection name
43-
* @param string $tagPrefix Tag prefix for listeners
41+
* @param $managerTemplate sprintf() template for generating the event
42+
* manager's service ID for a connection name
43+
* @param $tagPrefix Tag prefix for listeners
4444
*/
4545
public function __construct(
4646
private readonly string $connectionsParameter,

src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,20 @@ abstract class RegisterMappingsPass implements CompilerPassInterface
7575
* The $aliasMap parameter can be used to define bundle namespace shortcuts like the
7676
* DoctrineBundle provides automatically for objects in the default Entity/Document folder.
7777
*
78-
* @param Definition|Reference $driver Driver DI definition or reference
79-
* @param string[] $namespaces List of namespaces handled by $driver
80-
* @param string[] $managerParameters list of container parameters that could
81-
* hold the manager name
82-
* @param string $driverPattern Pattern for the metadata driver service name
83-
* @param string|false $enabledParameter Service container parameter that must be
84-
* present to enable the mapping. Set to false
85-
* to not do any check, optional.
86-
* @param string $configurationPattern Pattern for the Configuration service name,
87-
* for example 'doctrine.orm.%s_configuration'.
88-
* @param string $registerAliasMethodName Method name to call on the configuration service. This
89-
* depends on the Doctrine implementation.
90-
* For example addEntityNamespace.
91-
* @param string[] $aliasMap Map of alias to namespace
78+
* @param $driver Driver DI definition or reference
79+
* @param string[] $namespaces List of namespaces handled by $driver
80+
* @param string[] $managerParameters list of container parameters that could
81+
* hold the manager name
82+
* @param $driverPattern Pattern for the metadata driver service name
83+
* @param $enabledParameter Service container parameter that must be
84+
* present to enable the mapping. Set to false
85+
* to not do any check, optional.
86+
* @param $configurationPattern Pattern for the Configuration service name,
87+
* for example 'doctrine.orm.%s_configuration'.
88+
* @param $registerAliasMethodName Method name to call on the configuration service. This
89+
* depends on the Doctrine implementation.
90+
* For example addEntityNamespace.
91+
* @param string[] $aliasMap Map of alias to namespace
9292
*/
9393
public function __construct(
9494
Definition|Reference $driver,
@@ -155,8 +155,8 @@ protected function getChainDriverServiceName(ContainerBuilder $container): strin
155155
/**
156156
* Create the service definition for the metadata driver.
157157
*
158-
* @param ContainerBuilder $container Passed on in case an extending class
159-
* needs access to the container
158+
* @param $container Passed on in case an extending class
159+
* needs access to the container
160160
*/
161161
protected function getDriver(ContainerBuilder $container): Definition|Reference
162162
{

src/Symfony/Bridge/Doctrine/Form/ChoiceList/DoctrineChoiceLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class DoctrineChoiceLoader extends AbstractChoiceLoader
3232
* passed which optimizes the object loading for one of the Doctrine
3333
* mapper implementations.
3434
*
35-
* @param string $class The class name of the loaded objects
35+
* @param $class The class name of the loaded objects
3636
*/
3737
public function __construct(
3838
private readonly ObjectManager $manager,

src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static function createChoiceLabel(object $choice): string
6363
* a single-column integer ID. In that case, the value of the field is
6464
* the ID of the object. That ID is also used as field name.
6565
*
66-
* @param string $value The choice value. Corresponds to the object's ID here.
66+
* @param $value The choice value. Corresponds to the object's ID here.
6767
*
6868
* @internal This method is public to be usable as callback. It should not
6969
* be used in user code.
@@ -78,8 +78,8 @@ public static function createChoiceName(object $choice, int|string $key, string
7878
* For instance in ORM two query builders with an equal SQL string and
7979
* equal parameters are considered to be equal.
8080
*
81-
* @param object $queryBuilder A query builder, type declaration is not present here as there
82-
* is no common base class for the different implementations
81+
* @param $queryBuilder A query builder, type declaration is not present here as there
82+
* is no common base class for the different implementations
8383
*
8484
* @internal This method is public to be usable as callback. It should not
8585
* be used in user code.

src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntity.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ class UniqueEntity extends Constraint
3737
public bool|array|string $ignoreNull = true;
3838

3939
/**
40-
* @param array|string $fields The combination of fields that must contain unique values or a set of options
40+
* @param $fields The combination of fields that must contain unique values or a set of options
4141
* @param bool|string[]|string $ignoreNull The combination of fields that ignore null values
42-
* @param string|null $em The entity manager used to query for uniqueness instead of the manager of this class
43-
* @param string|null $entityClass The entity class to enforce uniqueness on instead of the current class
44-
* @param string|null $repositoryMethod The repository method to check uniqueness instead of findBy. The method will receive as its argument
45-
* a fieldName => value associative array according to the fields option configuration
46-
* @param string|null $errorPath Bind the constraint violation to this field instead of the first one in the fields option configuration
42+
* @param $em The entity manager used to query for uniqueness instead of the manager of this class
43+
* @param $entityClass The entity class to enforce uniqueness on instead of the current class
44+
* @param $repositoryMethod The repository method to check uniqueness instead of findBy. The method will receive as its argument
45+
* a fieldName => value associative array according to the fields option configuration
46+
* @param $errorPath Bind the constraint violation to this field instead of the first one in the fields option configuration
4747
*/
4848
public function __construct(
4949
array|string $fields,

src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ final class ConsoleHandler extends AbstractProcessingHandler implements EventSub
5555
private array $consoleFormatterOptions;
5656

5757
/**
58-
* @param OutputInterface|null $output The console output to use (the handler remains disabled when passing null
59-
* until the output is set, e.g. by using console events)
60-
* @param bool $bubble Whether the messages that are handled can bubble up the stack
61-
* @param array $verbosityLevelMap Array that maps the OutputInterface verbosity to a minimum logging
62-
* level (leave empty to use the default mapping)
58+
* @param $output The console output to use (the handler remains disabled when passing null
59+
* until the output is set, e.g. by using console events)
60+
* @param $bubble Whether the messages that are handled can bubble up the stack
61+
* @param $verbosityLevelMap Array that maps the OutputInterface verbosity to a minimum logging
62+
* level (leave empty to use the default mapping)
6363
*/
6464
public function __construct(?OutputInterface $output = null, bool $bubble = true, array $verbosityLevelMap = [], array $consoleFormatterOptions = [])
6565
{

src/Symfony/Bridge/Monolog/Handler/FingersCrossed/HttpCodeActivationStrategy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
final class HttpCodeActivationStrategy implements ActivationStrategyInterface
2626
{
2727
/**
28-
* @param array $exclusions each exclusion must have a "code" and "urls" keys
28+
* @param $exclusions each exclusion must have a "code" and "urls" keys
2929
*/
3030
public function __construct(
3131
private RequestStack $requestStack,

src/Symfony/Bridge/Monolog/Handler/MailerHandler.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ protected function write(LogRecord $record): void
6060
/**
6161
* Send a mail with the given content.
6262
*
63-
* @param string $content formatted email body to be sent
64-
* @param array $records the array of log records that formed this content
63+
* @param $content formatted email body to be sent
64+
* @param $records the array of log records that formed this content
6565
*/
6666
protected function send(string $content, array $records): void
6767
{
@@ -71,7 +71,7 @@ protected function send(string $content, array $records): void
7171
/**
7272
* Gets the formatter for the Message subject.
7373
*
74-
* @param string $format The format of the subject
74+
* @param $format The format of the subject
7575
*/
7676
protected function getSubjectFormatter(string $format): FormatterInterface
7777
{
@@ -81,8 +81,8 @@ protected function getSubjectFormatter(string $format): FormatterInterface
8181
/**
8282
* Creates instance of Message to be sent.
8383
*
84-
* @param string $content formatted email body to be sent
85-
* @param array $records Log records that formed the content
84+
* @param $content formatted email body to be sent
85+
* @param $records Log records that formed the content
8686
*/
8787
protected function buildMessage(string $content, array $records): Email
8888
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy