Skip to content

Commit b7bb13f

Browse files
committed
Add missing @return void docblocks for Command::configure methods
1 parent a28e2d8 commit b7bb13f

File tree

3 files changed

+2
-68
lines changed

3 files changed

+2
-68
lines changed

lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@
3737
*/
3838
class ConvertMappingCommand extends AbstractEntityManagerCommand
3939
{
40-
/**
41-
* {@inheritdoc}
42-
*/
40+
/** @return void */
4341
protected function configure()
4442
{
4543
$this->setName('orm:convert-mapping')

lib/Doctrine/ORM/Tools/Console/Command/EnsureProductionSettingsCommand.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
*/
2020
class EnsureProductionSettingsCommand extends AbstractEntityManagerCommand
2121
{
22-
/**
23-
* {@inheritdoc}
24-
*/
22+
/** @return void */
2523
protected function configure()
2624
{
2725
$this->setName('orm:ensure-production-settings')

psalm-baseline.xml

-62
Original file line numberDiff line numberDiff line change
@@ -2541,43 +2541,19 @@
25412541
</UnsafeInstantiation>
25422542
</file>
25432543
<file src="lib/Doctrine/ORM/Tools/Console/Command/ClearCache/CollectionRegionCommand.php">
2544-
<MissingReturnType>
2545-
<code>configure</code>
2546-
</MissingReturnType>
25472544
<PossiblyNullReference>
25482545
<code>evictAll</code>
25492546
</PossiblyNullReference>
25502547
</file>
25512548
<file src="lib/Doctrine/ORM/Tools/Console/Command/ClearCache/EntityRegionCommand.php">
2552-
<MissingReturnType>
2553-
<code>configure</code>
2554-
</MissingReturnType>
25552549
<PossiblyNullReference>
25562550
<code>evictAll</code>
25572551
</PossiblyNullReference>
25582552
</file>
2559-
<file src="lib/Doctrine/ORM/Tools/Console/Command/ClearCache/MetadataCommand.php">
2560-
<MissingReturnType>
2561-
<code>configure</code>
2562-
</MissingReturnType>
2563-
</file>
25642553
<file src="lib/Doctrine/ORM/Tools/Console/Command/ClearCache/QueryCommand.php">
25652554
<DeprecatedMethod>
25662555
<code>getQueryCacheImpl</code>
25672556
</DeprecatedMethod>
2568-
<MissingReturnType>
2569-
<code>configure</code>
2570-
</MissingReturnType>
2571-
</file>
2572-
<file src="lib/Doctrine/ORM/Tools/Console/Command/ClearCache/QueryRegionCommand.php">
2573-
<MissingReturnType>
2574-
<code>configure</code>
2575-
</MissingReturnType>
2576-
</file>
2577-
<file src="lib/Doctrine/ORM/Tools/Console/Command/ClearCache/ResultCommand.php">
2578-
<MissingReturnType>
2579-
<code>configure</code>
2580-
</MissingReturnType>
25812557
</file>
25822558
<file src="lib/Doctrine/ORM/Tools/Console/Command/ConvertDoctrine1SchemaCommand.php">
25832559
<ArgumentTypeCoercion>
@@ -2599,9 +2575,6 @@
25992575
<InvalidArgument>
26002576
<code>$metadata</code>
26012577
</InvalidArgument>
2602-
<MissingReturnType>
2603-
<code>configure</code>
2604-
</MissingReturnType>
26052578
</file>
26062579
<file src="lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php">
26072580
<ArgumentTypeCoercion>
@@ -2613,9 +2586,6 @@
26132586
<code>new DisconnectedClassMetadataFactory()</code>
26142587
<code>new EntityGenerator()</code>
26152588
</DeprecatedClass>
2616-
<MissingReturnType>
2617-
<code>configure</code>
2618-
</MissingReturnType>
26192589
<NoInterfaceProperties>
26202590
<code><![CDATA[$class->name]]></code>
26212591
</NoInterfaceProperties>
@@ -2624,9 +2594,6 @@
26242594
<InvalidDocblock>
26252595
<code>connect</code>
26262596
</InvalidDocblock>
2627-
<MissingReturnType>
2628-
<code>configure</code>
2629-
</MissingReturnType>
26302597
</file>
26312598
<file src="lib/Doctrine/ORM/Tools/Console/Command/GenerateEntitiesCommand.php">
26322599
<ArgumentTypeCoercion>
@@ -2636,17 +2603,11 @@
26362603
<code>new DisconnectedClassMetadataFactory()</code>
26372604
<code>new EntityGenerator()</code>
26382605
</DeprecatedClass>
2639-
<MissingReturnType>
2640-
<code>configure</code>
2641-
</MissingReturnType>
26422606
<NoInterfaceProperties>
26432607
<code><![CDATA[$metadata->name]]></code>
26442608
</NoInterfaceProperties>
26452609
</file>
26462610
<file src="lib/Doctrine/ORM/Tools/Console/Command/GenerateProxiesCommand.php">
2647-
<MissingReturnType>
2648-
<code>configure</code>
2649-
</MissingReturnType>
26502611
<NoInterfaceProperties>
26512612
<code><![CDATA[$metadata->name]]></code>
26522613
</NoInterfaceProperties>
@@ -2658,17 +2619,11 @@
26582619
<DeprecatedClass>
26592620
<code>new EntityRepositoryGenerator()</code>
26602621
</DeprecatedClass>
2661-
<MissingReturnType>
2662-
<code>configure</code>
2663-
</MissingReturnType>
26642622
<NoInterfaceProperties>
26652623
<code><![CDATA[$metadata->customRepositoryClassName]]></code>
26662624
</NoInterfaceProperties>
26672625
</file>
26682626
<file src="lib/Doctrine/ORM/Tools/Console/Command/InfoCommand.php">
2669-
<MissingReturnType>
2670-
<code>configure</code>
2671-
</MissingReturnType>
26722627
<PossiblyNullReference>
26732628
<code>getAllClassNames</code>
26742629
</PossiblyNullReference>
@@ -2685,9 +2640,6 @@
26852640
<DeprecatedClass>
26862641
<code><![CDATA[Debug::dump($resultSet, (int) $input->getOption('depth'), true, false)]]></code>
26872642
</DeprecatedClass>
2688-
<MissingReturnType>
2689-
<code>configure</code>
2690-
</MissingReturnType>
26912643
</file>
26922644
<file src="lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php">
26932645
<InvalidNullableReturnType>
@@ -2702,19 +2654,13 @@
27022654
<code>$metadatas</code>
27032655
<code>$metadatas</code>
27042656
</ArgumentTypeCoercion>
2705-
<MissingReturnType>
2706-
<code>configure</code>
2707-
</MissingReturnType>
27082657
</file>
27092658
<file src="lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/DropCommand.php">
27102659
<ArgumentTypeCoercion>
27112660
<code>$metadatas</code>
27122661
<code>$metadatas</code>
27132662
<code>$metadatas</code>
27142663
</ArgumentTypeCoercion>
2715-
<MissingReturnType>
2716-
<code>configure</code>
2717-
</MissingReturnType>
27182664
<PossiblyNullArgument>
27192665
<code><![CDATA[$this->getName()]]></code>
27202666
<code><![CDATA[$this->getName()]]></code>
@@ -2724,19 +2670,11 @@
27242670
<ArgumentTypeCoercion>
27252671
<code>$metadatas</code>
27262672
</ArgumentTypeCoercion>
2727-
<MissingReturnType>
2728-
<code>configure</code>
2729-
</MissingReturnType>
27302673
<PossiblyNullArgument>
27312674
<code><![CDATA[$this->getName()]]></code>
27322675
<code><![CDATA[$this->getName()]]></code>
27332676
</PossiblyNullArgument>
27342677
</file>
2735-
<file src="lib/Doctrine/ORM/Tools/Console/Command/ValidateSchemaCommand.php">
2736-
<MissingReturnType>
2737-
<code>configure</code>
2738-
</MissingReturnType>
2739-
</file>
27402678
<file src="lib/Doctrine/ORM/Tools/Console/MetadataFilter.php">
27412679
<InvalidArgument>
27422680
<code>new ArrayIterator($metadatas)</code>

0 commit comments

Comments
 (0)