diff --git a/composer.json b/composer.json index cc74ee1..e09cc3b 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ ], "require": { "php": "^8.3", - "phpdocumentor/reflection-docblock": "^5.4", + "phpdocumentor/reflection-docblock": "^5.6", "psr/container": "^2.0" }, "require-dev": { diff --git a/src/Manifests/ContainerMixinManifest.php b/src/Manifests/ContainerMixinManifest.php index b082e88..965f8c1 100644 --- a/src/Manifests/ContainerMixinManifest.php +++ b/src/Manifests/ContainerMixinManifest.php @@ -114,7 +114,7 @@ public function build(array $extensionMethods, array $extensions) $parameters[] = new DocBlock\Tags\MethodParameter( name: $parameter->getName(), type: $type, - defaultValue: $parameter->isDefaultValueAvailable() ? $parameter->getDefaultValue() : null + defaultValue: $parameter->isDefaultValueAvailable() ? $parameter->getDefaultValue() : DocBlock\Tags\MethodParameter::NO_DEFAULT_VALUE ); } diff --git a/tests/Unit/ContainerMixinManifestTest.php b/tests/Unit/ContainerMixinManifestTest.php index e281ec1..45c0bca 100644 --- a/tests/Unit/ContainerMixinManifestTest.php +++ b/tests/Unit/ContainerMixinManifestTest.php @@ -54,7 +54,7 @@ public function testContainerMixinBuild() ); $this->assertStringContainsString( - '@method string withNullableParameter(?string $one)', + '@method string withNullableParameter(?string $one = \'default value\')', $containerMixinContent ); diff --git a/tests/Unit/Extensions/FinancialExtensionTest.php b/tests/Unit/Extensions/FinancialExtensionTest.php index 8f94576..d3669d6 100644 --- a/tests/Unit/Extensions/FinancialExtensionTest.php +++ b/tests/Unit/Extensions/FinancialExtensionTest.php @@ -1,9 +1,8 @@