calmohallag/nullable-casting

PHP supports expression casting to primitive type (like int) by using “( type ) expression”, but it currently doesn't allow to use a nullable type as introduced by PHP 7.1 (e.g. ?int). This library provide functions that extend native php casting, adding nullable casting.

Maintainers

Package info

github.com/calmohallag/nullable-casting

pkg:composer/calmohallag/nullable-casting

Statistics

Installs: 13 436

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.1 2020-12-27 16:54 UTC

This package is auto-updated.

Last update: 2026-02-28 05:19:52 UTC