thecodingmachine / safe

All PHP functions, rewritten to throw exceptions instead of returning false
MIT License
2.35k stars 140 forks source link

Add function Safe\hash_file #410

Open Jamesking56 opened 1 year ago

Jamesking56 commented 1 year ago

hash_file can return string or false. It would be nice if we had a safer version of this function which would throw an exception if it returned false.

frederic100 commented 11 months ago

Perhaps you could try to use https://github.com/phariscope/SafePHP until the official Safe PHP take a decision. I have just added this function.