Skip to content

Commit 7140fd9

Browse files
samdarkgithub-actions[bot]
authored andcommitted
Apply Rector changes (CI)
1 parent 18609be commit 7140fd9

File tree

4 files changed

+0
-12
lines changed

4 files changed

+0
-12
lines changed

src/Container.php

-6
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,8 @@ public function get(string $id)
199199
* Sets a definition to the container. Definition may be defined multiple ways.
200200
*
201201
* @param string $id ID to set definition for.
202-
* @param mixed $definition Definition to set.
203202
*
204203
* @throws InvalidConfigException
205-
*
206204
* @see DefinitionNormalizer::normalize()
207205
*/
208206
private function addDefinition(string $id, mixed $definition): void
@@ -288,9 +286,7 @@ private function setDelegates(array $delegates): void
288286
}
289287

290288
/**
291-
* @param mixed $definition Definition to validate.
292289
* @param string|null $id ID of the definition to validate.
293-
*
294290
* @throws InvalidConfigException
295291
*/
296292
private function validateDefinition(mixed $definition, ?string $id = null): void
@@ -583,10 +579,8 @@ private function addProviders(array $providers): void
583579
/**
584580
* Builds service provider by definition.
585581
*
586-
* @param mixed $provider Class name or instance of provider.
587582
*
588583
* @throws InvalidConfigException If provider argument is not valid.
589-
*
590584
* @return ServiceProviderInterface Instance of service provider.
591585
*/
592586
private function buildProvider(mixed $provider): ServiceProviderInterface

src/ExtensibleService.php

-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ final class ExtensibleService implements DefinitionInterface
2525
*/
2626
private array $extensions = [];
2727

28-
/**
29-
* @param mixed $definition Definition to allow registering extensions for.
30-
*/
3128
public function __construct(
3229
private mixed $definition,
3330
private string $id

src/Helpers/DefinitionNormalizer.php

-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
final class DefinitionNormalizer
1919
{
2020
/**
21-
* @param mixed $definition Definition to normalize.
2221
* @param string $id Service ID.
23-
*
2422
* @throws InvalidConfigException If configuration is not valid.
2523
*/
2624
public static function normalize(mixed $definition, string $id): DefinitionInterface

src/Helpers/DefinitionParser.php

-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ final class DefinitionParser
5151
public const IS_PREPARED_ARRAY_DEFINITION_DATA = 'isPreparedArrayDefinitionData';
5252

5353
/**
54-
* @param mixed $definition Definition to parse.
5554
*
5655
* @return array Definition parsed into array of a special structure.
5756
* @psalm-return array{mixed,array}

0 commit comments

Comments
 (0)