Ardent
Ardent copied to clipboard
Should Ardent have a TypeException?
I would throw an EngineException (PHP7) for consistency with PHP's own type hinting. Or, better, I'd use trigger_error() for PHP5 compatibility (which would presumably result in a EngineException in PHP7)
PHP 7 is likely adding a TypeException
class. I'll wait to see how that all pans out.
As an update PHP 7 will have TypeError
which does not descend from \Exception
but is a sibling class instead. I will need to re-evaluate what I do in this repository for all exceptions because of this.