-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Improved PHPDoc comments #440
Conversation
Progress checklist for PHPDoc comments on public API entities: Methods
Class Constants
Class Properties
Data Formats
Exceptions
|
src/JsonSchema/Validator.php
Outdated
* | ||
* Both the value object and the schema are supposed to be the result of a json_decode call, | ||
* or an equivalent value. The validation logic used is a non-compliant superset of the spec | ||
* available at http://json-schema.org/ (versions prior to draft-06). | ||
* | ||
* Note that the first argument is passwd by reference, so you must pass in a variable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May as well fix the typo while you're in here ("passwd")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
src/JsonSchema/Validator.php
Outdated
* @param mixed $value The value that should be validated against the schema - *not* a reference | ||
* @param mixed $schema The schema to validate against | ||
* | ||
* @return int Bitwise list of error categories encountered during validation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe convey a little more information about the return, eg, tell us what value means no errors...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
I have opened a PR this branch - erayd#1 So far I have taken a stab at commenting Class Constants and Exceptions. Should we rebase this branch now or after more of the work is done? |
What
Improve PHPDoc comments as per #438.
Why
As per #438.