refactor(RequestHeader): Make parameter types stricter

Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
provokateurin 2025-06-03 11:06:39 +02:00
parent 18e04e1c5a
commit 727b0c853c
No known key found for this signature in database

View file

@ -21,8 +21,8 @@ use Attribute;
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
class RequestHeader {
/**
* @param string $name The name of the request header
* @param string $description The description of the request header
* @param lowercase-string $name The name of the request header
* @param non-empty-string $description The description of the request header
*/
public function __construct(
protected string $name,