Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
fab2s committed Apr 28, 2024
1 parent b295469 commit 7f31584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ As php does not implement the `Nil` concept (_never set_ as opposed to being `nu

This implementation detail result in allowing `any` value except the `null byte` as a default property value from `Caster`.

Should you find yourself in the rather uncommon situation where you would actually want a `null byte` as a defaults property value, you would then need to either une a `non readonly` property with this hard default, but this would break immutability, or set this property as a promoted one in your constructor to preserve `readonly` and thus immutability of your `Dt0`.
Should you find yourself in the rather uncommon situation where you would actually want a `null byte` as a defaults property value, you would then need to either use a `non readonly` property with this hard default, but this would break immutability, or to set this property as a promoted one in your constructor to preserve `readonly` and thus immutability of your `Dt0`.

All considered, this extra attention for a very particular case seems entirely neglectable compared to the burden of one extra argument in every other case.

Expand Down

0 comments on commit 7f31584

Please sign in to comment.