Skip to content

Commit

Permalink
Merge pull request #185 from yiisoft/form-model-interface-has-attribute
Browse files Browse the repository at this point in the history
* Fix Psalm - FormModelInterface::hasAttribute().
  • Loading branch information
terabytesoftw committed Mar 5, 2022
2 parents 7bf3852 + 61b56c1 commit 40cf151
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/FormModelInterface.php
Expand Up @@ -28,6 +28,15 @@ public function attributes(): array;
*/
public function getAttributeValue(string $attribute);

/**
* If there is such attribute in the set.
*
* @param string $attribute
*
* @return bool
*/
public function hasAttribute(string $attribute): bool;

/**
* @return FormErrorsInterface Validation errors.
*/
Expand Down

0 comments on commit 40cf151

Please sign in to comment.