diff --git a/README.md b/README.md index a273b5c..971d126 100644 --- a/README.md +++ b/README.md @@ -32,12 +32,125 @@ -This package contains an utility class casting safely mixed values to bool, float, int, or string. +This package contains a strong typed utility class safely testing and casting mixed values to bool, float, int, or +string values. +# Rationale -# License +What is the purpose of this package and why is it necessary? +PHP is a great language, however is has some quirks. One of them is that PHP will convert any string to an integer even +when strict type is set. -This project is licensed under the MIT license. +The following code will not cause any error or warning (tested with PHP 7.2.12): +```php +