Skip to content

Commit 0e6207d

Browse files
committed
Fix ParameterAccess method signature
1 parent 5f8bcf1 commit 0e6207d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ All Notable changes to `bakame/http-strucured-fields` will be documented in this
1212

1313
- Migrate to PHPUnit 10
1414
- **[BC Break]** `OrderedList` is renamed `OuterList`.
15+
- **[BC Break]** `ParameterAccess` interface signature updated to use the `Value` interface instead of the `Item` implementation.
1516

1617
### Deprecated
1718

src/ParameterAccess.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function parameters(): Parameters;
1919
*
2020
* @throws SyntaxError If the string key is not a valid
2121
*/
22-
public function addParameter(string $key, Item $member): static;
22+
public function addParameter(string $key, Value $member): static;
2323

2424
/**
2525
* Adds a member at the start of the associated parameter instance and deletes any previous reference to the key if present.
@@ -29,7 +29,7 @@ public function addParameter(string $key, Item $member): static;
2929
*
3030
* @throws SyntaxError If the string key is not a valid
3131
*/
32-
public function prependParameter(string $key, Item $member): static;
32+
public function prependParameter(string $key, Value $member): static;
3333

3434
/**
3535
* Adds a member at the end of the associated parameter instance and deletes any previous reference to the key if present.
@@ -39,7 +39,7 @@ public function prependParameter(string $key, Item $member): static;
3939
*
4040
* @throws SyntaxError If the string key is not a valid
4141
*/
42-
public function appendParameter(string $key, Item $member): static;
42+
public function appendParameter(string $key, Value $member): static;
4343

4444
/**
4545
* Deletes members associated with the list of submitted keys in the associated parameter intance.

0 commit comments

Comments
 (0)