Skip to content

Commit

Permalink
Too eager validation, fails common uses.
Browse files Browse the repository at this point in the history
  • Loading branch information
stratease committed Aug 25, 2023
1 parent b0f25e4 commit 79f1c09
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Models/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ public static function propertyKeys() : array {
*/
public function setAttribute( string $key, $value ) : ModelInterface {
$this->validatePropertyExists( $key );
$this->validatePropertyType( $key, $value );

$validation_method = 'validate_' . $key;
if ( method_exists( $this, $validation_method ) ) {
Expand Down

0 comments on commit 79f1c09

Please sign in to comment.