szemul / not-set-value
Simple package to represent a value that has not been set
Installs: 2 352
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^8.0
- ext-json: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0.0
- phpstan/phpstan: ^1.4.0
README
This class/interface is useful in case for example in objects representing API requests, where a null
value means something different from when a value is not sent. For example a null
value can mean that something should be set to null
, while a not sent value means the consumer does not want to change the current value.