Skip to content
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

Fixed all parameters optional #325

Merged
merged 1 commit into from
Jul 10, 2017
Merged

Fixed all parameters optional #325

merged 1 commit into from
Jul 10, 2017

Conversation

LukeArthur
Copy link

Fixed all parameters optional in annotation definition for PARAMETERS_DEFINITION structure

@@ -108,18 +109,22 @@ public function checkAnnotationValueStructure($annotationValue) {
*/
private function checkNumberOfParametersForAnnotationValue($annotationValue) {
$parametersDefinition = static::parametersDefinition();
$definitionValue = $parametersDefinition[self::PARAMETERS_NUMBER_DEFINITION];
if (!\is_numeric($definitionValue) AND $definitionValue !== self::ZERO_OR_ONE_PARAMETER) {
throw new \obo\Exceptions\BadAnnotationException("Bad '" . self::PARAMETERS_NUMBER_DEFINITION . "' definition");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls add expects to message

@LukeArthur LukeArthur force-pushed the lk-37456 branch 2 times, most recently from 65fefec to c05d626 Compare July 10, 2017 06:34
Fixed all parameters optional in annotation definition for PARAMETERS_DEFINITION structure
@obophp obophp merged commit 144ae3e into obophp:master Jul 10, 2017
@LukeArthur LukeArthur deleted the lk-37456 branch August 17, 2017 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants