Skip to content

Commit

Permalink
Merge pull request #5 from sj-i/update_readme
Browse files Browse the repository at this point in the history
A minor fix for the documentation
  • Loading branch information
sj-i committed Aug 17, 2020
2 parents df0a2a8 + 88924fb commit d5a5a21
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 @@ -54,7 +54,7 @@ $null_value = NullableCast::toInt(null);

## HOW IT WORKS
- Return type declarations in weak mode files do the job.
- `PhpCast\Cast` and `PhpCast\NullableCast` are defined in files declared as `strict_types=0`
- `PhpCast\Cast` is defined in a file declared as `strict_types=0`
- Though `strict_types=0` is the current default of PHP, it is explicitly declared to assert the intent.
- The type checks for parameters are done in the caller mode, but the type checks for return values are always done in the callee mode.

Expand Down

0 comments on commit d5a5a21

Please sign in to comment.