diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 8ef6022..0c593a7 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -112,7 +112,6 @@ 'php_unit_no_expectation_annotation' => true, 'php_unit_set_up_tear_down_visibility' => true, 'php_unit_strict' => true, - 'phpdoc_align' => true, // @Symfony] 'phpdoc_annotation_without_dot' => true, // @Symfony] 'phpdoc_indent' => true, // @Symfony] 'phpdoc_inline_tag_normalizer' => true, // @Symfony] diff --git a/src/AutoSoapServer/Documentation/DocumentedService.php b/src/AutoSoapServer/Documentation/DocumentedService.php index 7b39e2f..9663603 100644 --- a/src/AutoSoapServer/Documentation/DocumentedService.php +++ b/src/AutoSoapServer/Documentation/DocumentedService.php @@ -21,6 +21,7 @@ public function __construct( } /** + * @param ClassReflection $class * @param class-string[] $complexTypeNames */ public static function fromClassReflection(string $name, ClassReflection $class, array $complexTypeNames): self diff --git a/src/AutoSoapServer/Documentation/DocumentedType.php b/src/AutoSoapServer/Documentation/DocumentedType.php index 569a671..5d51d06 100644 --- a/src/AutoSoapServer/Documentation/DocumentedType.php +++ b/src/AutoSoapServer/Documentation/DocumentedType.php @@ -34,6 +34,9 @@ public static function fromClassName(string $className): self ); } + /** + * @param ClassReflection $reflection + */ private static function getTypeDescription(ClassReflection $reflection): ?string { $descriptions = []; diff --git a/src/AutoSoapServer/RoutingConfiguration.php b/src/AutoSoapServer/RoutingConfiguration.php index f015ad7..d57d2b9 100644 --- a/src/AutoSoapServer/RoutingConfiguration.php +++ b/src/AutoSoapServer/RoutingConfiguration.php @@ -9,6 +9,7 @@ use AutoSoapServer\Controllers\HomeController; use AutoSoapServer\Controllers\WsdlController; use AutoSoapServer\SoapService\SoapServiceRegistry; +use DI\Container; use Slim\App; use Slim\Handlers\Strategies\RequestResponseArgs; @@ -21,6 +22,11 @@ public function __construct(SoapServiceRegistry $soapServiceRegistry) $this->soapServiceRegistry = $soapServiceRegistry; } + /** + * @param App $app + * + * @return App + */ public function apply(App $app): App { $strategy = new RequestResponseArgs(); diff --git a/tests/RoutingConfigurationTest.php b/tests/RoutingConfigurationTest.php index 92ce967..f21d3b1 100644 --- a/tests/RoutingConfigurationTest.php +++ b/tests/RoutingConfigurationTest.php @@ -18,6 +18,9 @@ */ class RoutingConfigurationTest extends TestCase { + /** + * @var App + */ private App $app; private SoapServiceRegistry&MockObject $soapServiceRegistry; @@ -68,6 +71,9 @@ public function testNamedFromRegistry(string $routeName): void $this->assertFalse($exceptionThrown); } + /** + * @return array + */ public static function namedFromRegistryDataProvider(): array { return [ diff --git a/tests/Type.php b/tests/Type.php index fafeff5..e19f7fa 100644 --- a/tests/Type.php +++ b/tests/Type.php @@ -21,6 +21,7 @@ class Type */ public $baz; + // @phpstan-ignore missingType.property (purposefully untyped for DocumentedProperty tests) public $xuz; /**