php-json-schema icon indicating copy to clipboard operation
php-json-schema copied to clipboard

Place exceptions into their own files

Open agwidarsito opened this issue 10 years ago • 1 comments

Placing the definitions of "ValidationException" and "SchemaException" inside the Validator file is no good for autoloading through Composer.

If one has not loaded instantiated the Validator class, Composer will believe it hasn't loaded the class "ValidationException" and it will attempt to find it by file. Ka boom.

Suggestion: Place the exception classes into their own files.

I can do a pull request if you want.

agwidarsito avatar Oct 01 '15 02:10 agwidarsito

Made a pull request with a fix.

agwidarsito avatar Oct 01 '15 03:10 agwidarsito