We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Integration with @beberlei's assert library can give a nice tool for writing DbC conditions and assertions, see https://github.com/beberlei/assert#list-of-assertions. For example,
/** * Deposits fixed amount of money to the account * * @param float $amount * * @Contract\Ensure("Assert\Assertion::integer($this->balance)") */ public function deposit($amount) { $this->balance += $amount; }
The text was updated successfully, but these errors were encountered:
@lisachenko
Good idea, I will create pull request with integration soon.
Sorry, something went wrong.
83ac96f
@pdaw Thanks for contribution! Released tag 0.3.0 with minor changes in your code.
No branches or pull requests
Integration with @beberlei's assert library can give a nice tool for writing DbC conditions and assertions, see https://github.com/beberlei/assert#list-of-assertions. For example,
The text was updated successfully, but these errors were encountered: