Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Oct 9, 2023
1 parent e98abad commit 1e08e85
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/ServiceMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function getComponentClassById(string $id): ?string

/**
* @param string $id
* @param array|string|Closure|int $service
* @param array|Closure|int|string $service
*
* @throws ReflectionException
*
Expand All @@ -105,12 +105,12 @@ private function addServiceDefinition(string $id, array|string|Closure|int $serv

/**
* @param string $id
* @param string|Closure|array|int $service
*
* @return string
* @param array|Closure|int|string $service
*
* @throws ReflectionException
*
* @return string
*
* @phpstan-param string|Closure|array<mixed>|int $service
*/
private function guessServiceDefinition(string $id, array|string|Closure|int $service): string
Expand Down
5 changes: 4 additions & 1 deletion src/Type/ActiveQueryDynamicMethodReturnTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ public function getTypeFromMethodCall(
throw new ShouldNotHappenException(
sprintf(
'Unexpected type %s during method call %s at line %d',
get_class($calledOnType), $methodReflection->getName(), $methodCall->getLine()),
get_class($calledOnType),
$methodReflection->getName(),
$methodCall->getLine()
),
);

Check warning on line 68 in src/Type/ActiveQueryDynamicMethodReturnTypeExtension.php

View check run for this annotation

Codecov / codecov/patch

src/Type/ActiveQueryDynamicMethodReturnTypeExtension.php#L61-L68

Added lines #L61 - L68 were not covered by tests
}

Expand Down
2 changes: 1 addition & 1 deletion src/Type/ActiveQueryObjectType.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ final class ActiveQueryObjectType extends ObjectType
public function __construct(private readonly string $modelClass, private readonly bool $asArray)

Check warning on line 13 in src/Type/ActiveQueryObjectType.php

View check run for this annotation

Codecov / codecov/patch

src/Type/ActiveQueryObjectType.php#L13

Added line #L13 was not covered by tests
{
parent::__construct(ActiveQuery::class);
}
}

public function getModelClass(): string
{
Expand Down
3 changes: 2 additions & 1 deletion src/Type/ActiveRecordDynamicMethodReturnTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public function getTypeFromMethodCall(
'Unexpected arg %s during method call %s at line %d',
get_class($arg),
$methodReflection->getName(),
$methodCall->getLine()),
$methodCall->getLine()
),
);

Check warning on line 50 in src/Type/ActiveRecordDynamicMethodReturnTypeExtension.php

View check run for this annotation

Codecov / codecov/patch

src/Type/ActiveRecordDynamicMethodReturnTypeExtension.php#L43-L50

Added lines #L43 - L50 were not covered by tests
}

Expand Down

0 comments on commit 1e08e85

Please sign in to comment.