Skip to content

Commit 68c520b

Browse files
committed
Fix type name to comply with the test suite and the RFC
1 parent af2fe4e commit 68c520b

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

CHANGELOG.md

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

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

5+
## [1.2.2](https://github.com/bakame-php/http-structured-fields/compare/1.2.1...1.2.2) - 2024-01-01
6+
7+
### Added
8+
9+
- None
10+
11+
### Fixed
12+
13+
- `Type::ByteSequence` value is renamed from `bytesequence` to `binary` to comply with the RFC.
14+
15+
### Deprecated
16+
17+
- None
18+
19+
### Removed
20+
21+
- None
22+
523
## [1.2.1](https://github.com/bakame-php/http-structured-fields/compare/1.2.0...1.2.1) - 2024-01-01
624

725
### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ The table below summarizes the item value type.
225225
| String | `string` | `Type::String` | `string` |
226226
| Boolean | `bool` | `Type::Boolean` | `boolean` |
227227
| Token | class `Token` | `Type::Token` | `token` |
228-
| Byte Sequence | class `ByteSequence` | `Type::ByteSequence` | `bytesequence` |
228+
| Byte Sequence | class `ByteSequence` | `Type::ByteSequence` | `binary` |
229229
| Date (*) | class `DateTimeImmutable` | `Type::Date` | `date` |
230230
| DisplayString (*) | class `DisplayString` | `Type::DisplayString` | `displaystring` |
231231

src/Type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ enum Type: string
1515
case Decimal = 'decimal';
1616
case String = 'string';
1717
case Token = 'token';
18-
case ByteSequence = 'bytesequence';
18+
case ByteSequence = 'binary';
1919
case DisplayString = 'displaystring';
2020
case Boolean = 'boolean';
2121
case Date = 'date';

0 commit comments

Comments
 (0)