Browse Source

refactor(RequestHeader): Make parameter types stricter

Signed-off-by: provokateurin <kate@provokateurin.de>
pull/53283/head
provokateurin 5 months ago
parent
commit
727b0c853c
Failed to extract signature
  1. 4
      lib/public/AppFramework/Http/Attribute/RequestHeader.php

4
lib/public/AppFramework/Http/Attribute/RequestHeader.php

@ -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,

Loading…
Cancel
Save