Skip to content

Commit

Permalink
Fix type name to comply with the test suite and the RFC
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Jan 1, 2024
1 parent af2fe4e commit 68c520b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@

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

## [1.2.2](https://github.com/bakame-php/http-structured-fields/compare/1.2.1...1.2.2) - 2024-01-01

### Added

- None

### Fixed

- `Type::ByteSequence` value is renamed from `bytesequence` to `binary` to comply with the RFC.

### Deprecated

- None

### Removed

- None

## [1.2.1](https://github.com/bakame-php/http-structured-fields/compare/1.2.0...1.2.1) - 2024-01-01

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ The table below summarizes the item value type.
| String | `string` | `Type::String` | `string` |
| Boolean | `bool` | `Type::Boolean` | `boolean` |
| Token | class `Token` | `Type::Token` | `token` |
| Byte Sequence | class `ByteSequence` | `Type::ByteSequence` | `bytesequence` |
| Byte Sequence | class `ByteSequence` | `Type::ByteSequence` | `binary` |
| Date (*) | class `DateTimeImmutable` | `Type::Date` | `date` |
| DisplayString (*) | class `DisplayString` | `Type::DisplayString` | `displaystring` |

Expand Down
2 changes: 1 addition & 1 deletion src/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ enum Type: string
case Decimal = 'decimal';
case String = 'string';
case Token = 'token';
case ByteSequence = 'bytesequence';
case ByteSequence = 'binary';
case DisplayString = 'displaystring';
case Boolean = 'boolean';
case Date = 'date';
Expand Down

0 comments on commit 68c520b

Please sign in to comment.