File tree Expand file tree Collapse file tree 4 files changed +23
-12
lines changed Expand file tree Collapse file tree 4 files changed +23
-12
lines changed Original file line number Diff line number Diff line change @@ -6,17 +6,26 @@ All Notable changes to `bakame/http-strucured-fields` will be documented in this
6
6
7
7
### Added
8
8
9
- - Public API around accessing parameters using their index instead of their key.
9
+ - ` OrederedMap::push `
10
+ - ` OrederedMap::unshift `
11
+ - ` OrederedMap::insert `
12
+ - ` OrederedMap::replace `
13
+ - ` ParameterAccess::pushParanmeters `
14
+ - ` ParameterAccess::unshiftParamaters `
15
+ - ` ParameterAccess::insertParamaters `
16
+ - ` ParameterAccess::replaceParamater `
17
+ - ` ParameterAccess::withoutParametersByKeys `
18
+ - ` ParameterAccess::withoutParametersByIndices `
10
19
11
20
### Fixed
12
21
13
- - ` Parameters::remove ` also removes parameters per indexes
22
+ - ` Parameters::remove ` also removes parameters per indices
14
23
- ` Type::fromValue ` throws an ` InvalidArgument ` exception.
15
24
- ` Type::fromValue ` and ` Type::tryFromValue ` should only check the PHP variable type and not take into account the variable value.
16
25
17
26
### Deprecated
18
27
19
- - None
28
+ - ` ParameterAccess::withoutParameters ` replaced by ` ParameterAccess::withoutParametersBykeys `
20
29
21
30
### Removed
22
31
Original file line number Diff line number Diff line change @@ -560,7 +560,7 @@ You can attach and update the associated `Parameters` instance using the followi
560
560
$field->addParameter(string $key, mixed $value): static;
561
561
$field->appendParameter(string $key, mixed $value): static;
562
562
$field->prependParameter(string $key, mixed $value): static;
563
- $field->withoutParameters(string ...$keys): static;
563
+ $field->withoutParameters(string ...$keys): static; // this method is deprecated as of version 1.1 use withoutParametersByKeys instead
564
564
$field->withoutAnyParameter(): static;
565
565
$field->withParameters(Parameters $parameters): static;
566
566
```
@@ -572,6 +572,8 @@ $field->pushParameters(array ...$pairs): static
572
572
$field->unshiftParameters(array ...$pairs): static
573
573
$field->insertParameters(int $index, array ...$pairs): static
574
574
$field->replaceParameter(int $index, array $pair): static
575
+ $field->withoutParametersByKeys(string ...$keys): static
576
+ $field->withoutParametersByIndices(int ...$indices): static
575
577
```
576
578
577
579
The ` $pair ` parameter is a tuple (ie: an array as list with exactly two members) where:
Original file line number Diff line number Diff line change 30
30
"require-dev" : {
31
31
"friendsofphp/php-cs-fixer" : " ^v3.15.1" ,
32
32
"httpwg/structured-field-tests" : " *@dev" ,
33
- "phpstan/phpstan" : " ^1.10.13 " ,
33
+ "phpstan/phpstan" : " ^1.10.14 " ,
34
34
"phpstan/phpstan-strict-rules" : " ^1.5.1" ,
35
35
"phpstan/phpstan-phpunit" : " ^1.3.11" ,
36
36
"phpstan/phpstan-deprecation-rules" : " ^1.1.3" ,
37
- "phpunit/phpunit" : " ^10.1.0 " ,
37
+ "phpunit/phpunit" : " ^10.1.2 " ,
38
38
"phpbench/phpbench" : " ^1.2.10" ,
39
- "symfony/var-dumper" : " ^6.2.8 "
39
+ "symfony/var-dumper" : " ^6.2.10 "
40
40
},
41
41
"autoload" : {
42
42
"psr-4" : {
Original file line number Diff line number Diff line change 22
22
*
23
23
* @see https://www.rfc-editor.org/rfc/rfc8941.html#section-4.2
24
24
*
25
- * @see Dictionary::fromHttpValue(),
26
- * @see Parameters::fromHttpValue(),
27
- * @see OuterList::fromHttpValue(),
28
- * @see InnerList::fromHttpValue()
29
- * @see Item::fromHttpValue() instead
25
+ * @internal Use Dictionary::fromHttpValue(),
26
+ * Parameters::fromHttpValue(),
27
+ * OuterList::fromHttpValue(),
28
+ * InnerList::fromHttpValue()
29
+ * or Item::fromHttpValue() instead
30
30
*
31
31
* @phpstan-import-type SfType from StructuredField
32
32
*/
You can’t perform that action at this time.
0 commit comments