Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[5.4] Makes cache() throw exceoption when incorrect first argument
The cache() function will return nothing when the first argument is something else than a string or array. This PR fixes that by throwing an exception when that is the case. It also improves code styling by removing the nested ifs (so less indentation) and follows the 'golden path' guideline.
- Loading branch information