Skip to content

Commit 899a151

Browse files
committed
Prepare new release
1 parent 04c5834 commit 899a151

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@
22

33
All Notable changes to `bakame/http-strucured-fields` will be documented in this file.
44

5-
## [Next] - TBD
5+
## [1.2.0](https://github.com/bakame-php/http-structured-fields/compare/1.1.0...1.2.0) - 2023-12-30
66

77
### Added
88

99
- Support for the `DisplayString` type
1010
- `ByteSequence::tryFromEncoded`
1111
- `Token::tryFromString`
1212
- `OuterList::fromPairs`
13-
- `DataType` is now part of the public API
13+
- `DataType` enum
1414
- `Type::fromVariable`
1515
- `Type::tryFromVariable`
16-
- the `Type` enum is now a baked string Enum.
1716
- `Parser::new` to simplify parser usage.
1817

1918
### Fixed
2019

2120
- Tests file moved under the `/tests` directory
22-
- Fix `Type::tryFromValue` to correctly detect string type derivative.
21+
- Fix `Type::tryFromVariable` to correctly detect string type derivative.
22+
- the `Type` enum is now a baked string Enum.
2323

2424
### Deprecated
2525

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ use Bakame\Http\StructuredFields\Type;
250250
echo Type::fromVariable(42)->value; // returns 'integer'
251251
echo Type::fromVariable(42.0)->name; // returns 'Decimal'
252252
echo Type::fromVariable(new SplTempFileObject()); // throws InvalidArgument
253-
echo Type::tryFromValue(new SplTempFileObject()); // returns null
253+
echo Type::tryFromVariable(new SplTempFileObject()); // returns null
254254
```
255255

256256
To ease validation a `Type::equals` method is exposed to check if the `Item` has

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
"ext-json": "*"
2929
},
3030
"require-dev": {
31-
"friendsofphp/php-cs-fixer": "^v3.15.1",
31+
"friendsofphp/php-cs-fixer": "^v3.45.0",
3232
"httpwg/structured-field-tests": "*@dev",
3333
"phpstan/phpstan": "^1.10.50",
3434
"phpstan/phpstan-strict-rules": "^1.5.2",
3535
"phpstan/phpstan-phpunit": "^1.3.15",
3636
"phpstan/phpstan-deprecation-rules": "^1.1.4",
37-
"phpunit/phpunit": "^10.5.3",
37+
"phpunit/phpunit": "^10.5.5",
3838
"phpbench/phpbench": "^1.2.15",
3939
"symfony/var-dumper": "^6.4.0"
4040
},

0 commit comments

Comments
 (0)