Skip to content

Commit

Permalink
Add missing @return void docblocks for Command::configure methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrolucky committed Mar 5, 2023
1 parent a28e2d8 commit b7bb13f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 68 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@
*/
class ConvertMappingCommand extends AbstractEntityManagerCommand
{
/**
* {@inheritdoc}
*/
/** @return void */
protected function configure()
{
$this->setName('orm:convert-mapping')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
*/
class EnsureProductionSettingsCommand extends AbstractEntityManagerCommand
{
/**
* {@inheritdoc}
*/
/** @return void */
protected function configure()
{
$this->setName('orm:ensure-production-settings')
Expand Down
62 changes: 0 additions & 62 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2541,43 +2541,19 @@
</UnsafeInstantiation>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/ClearCache/CollectionRegionCommand.php">
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
<PossiblyNullReference>
<code>evictAll</code>
</PossiblyNullReference>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/ClearCache/EntityRegionCommand.php">
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
<PossiblyNullReference>
<code>evictAll</code>
</PossiblyNullReference>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/ClearCache/MetadataCommand.php">
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/ClearCache/QueryCommand.php">
<DeprecatedMethod>
<code>getQueryCacheImpl</code>
</DeprecatedMethod>
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/ClearCache/QueryRegionCommand.php">
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/ClearCache/ResultCommand.php">
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/ConvertDoctrine1SchemaCommand.php">
<ArgumentTypeCoercion>
Expand All @@ -2599,9 +2575,6 @@
<InvalidArgument>
<code>$metadata</code>
</InvalidArgument>
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php">
<ArgumentTypeCoercion>
Expand All @@ -2613,9 +2586,6 @@
<code>new DisconnectedClassMetadataFactory()</code>
<code>new EntityGenerator()</code>
</DeprecatedClass>
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
<NoInterfaceProperties>
<code><![CDATA[$class->name]]></code>
</NoInterfaceProperties>
Expand All @@ -2624,9 +2594,6 @@
<InvalidDocblock>
<code>connect</code>
</InvalidDocblock>
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/GenerateEntitiesCommand.php">
<ArgumentTypeCoercion>
Expand All @@ -2636,17 +2603,11 @@
<code>new DisconnectedClassMetadataFactory()</code>
<code>new EntityGenerator()</code>
</DeprecatedClass>
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
<NoInterfaceProperties>
<code><![CDATA[$metadata->name]]></code>
</NoInterfaceProperties>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/GenerateProxiesCommand.php">
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
<NoInterfaceProperties>
<code><![CDATA[$metadata->name]]></code>
</NoInterfaceProperties>
Expand All @@ -2658,17 +2619,11 @@
<DeprecatedClass>
<code>new EntityRepositoryGenerator()</code>
</DeprecatedClass>
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
<NoInterfaceProperties>
<code><![CDATA[$metadata->customRepositoryClassName]]></code>
</NoInterfaceProperties>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/InfoCommand.php">
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
<PossiblyNullReference>
<code>getAllClassNames</code>
</PossiblyNullReference>
Expand All @@ -2685,9 +2640,6 @@
<DeprecatedClass>
<code><![CDATA[Debug::dump($resultSet, (int) $input->getOption('depth'), true, false)]]></code>
</DeprecatedClass>
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php">
<InvalidNullableReturnType>
Expand All @@ -2702,19 +2654,13 @@
<code>$metadatas</code>
<code>$metadatas</code>
</ArgumentTypeCoercion>
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/DropCommand.php">
<ArgumentTypeCoercion>
<code>$metadatas</code>
<code>$metadatas</code>
<code>$metadatas</code>
</ArgumentTypeCoercion>
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
<PossiblyNullArgument>
<code><![CDATA[$this->getName()]]></code>
<code><![CDATA[$this->getName()]]></code>
Expand All @@ -2724,19 +2670,11 @@
<ArgumentTypeCoercion>
<code>$metadatas</code>
</ArgumentTypeCoercion>
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
<PossiblyNullArgument>
<code><![CDATA[$this->getName()]]></code>
<code><![CDATA[$this->getName()]]></code>
</PossiblyNullArgument>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/ValidateSchemaCommand.php">
<MissingReturnType>
<code>configure</code>
</MissingReturnType>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/MetadataFilter.php">
<InvalidArgument>
<code>new ArrayIterator($metadatas)</code>
Expand Down

0 comments on commit b7bb13f

Please sign in to comment.