Skip to content

Commit 090b2fb

Browse files
committed
Merge 3.4
2 parents 08b1d1b + 7926dc6 commit 090b2fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Metadata/Parameter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
namespace ApiPlatform\Metadata;
1515

1616
use ApiPlatform\OpenApi;
17+
use ApiPlatform\State\ParameterNotFound;
1718
use ApiPlatform\State\ParameterProviderInterface;
1819
use Symfony\Component\Validator\Constraint;
1920

@@ -119,7 +120,7 @@ public function getSecurityMessage(): ?string
119120
*/
120121
public function getValue(): mixed
121122
{
122-
return $this->extraProperties['_api_values'] ?? null;
123+
return $this->extraProperties['_api_values'] ?? new ParameterNotFound();
123124
}
124125

125126
/**

0 commit comments

Comments
 (0)