Skip to content

Commit

Permalink
atualizacao
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobmorais committed Feb 25, 2023
1 parent 604d6f6 commit a0251ee
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ModelAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,14 @@ function($p_0) use ($data)
* @return string|null
*/
public function __get($attribute) {
return $this->{$attribute} ;
return $this->{$attribute}??"" ;
}


/**
* @param $attribute
* @param $value
* @return void
*/
public function __set($attribute, $value): void {
$this->{$attribute} = $value ;
}
Expand Down

0 comments on commit a0251ee

Please sign in to comment.