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.

1.1 2020-12-27 16:54 UTC

This package is auto-updated.

Last update: 2025-05-28 03:36:19 UTC