Skip to content

Commit

Permalink
Finish 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
i.badamshin committed Jan 21, 2022
2 parents 42626b7 + 8dc2920 commit 3bcf90f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/data_objects/BaseDataObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ abstract class BaseDataObject {
public function getParameters() {
$filledvars = array();
foreach (get_object_vars($this) as $name => $value) {
if ($value) {
if (!is_null($value)) {
if($value instanceof BaseDataObject){
$filledvars[$name] = $value->getParameters();
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/services/BaseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ abstract public function getRequestUrl();
public function getParameters() {
$filledvars = array();
foreach (get_object_vars($this) as $name => $value) {
if ($value) {
if (!is_null($value)) {
if($value instanceof BaseDataObject && !empty($value->getParameters())){
$filledvars[$name] = $value->getParameters();
} else {
Expand Down

0 comments on commit 3bcf90f

Please sign in to comment.