Skip to content

Commit efe7d0f

Browse files
committed
Fixes issues with type check.
1 parent ebbd7c7 commit efe7d0f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Blueprint.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,16 @@ public function validate() {
6969
}
7070

7171
public function setProp($prop_key, $prop_value) {
72-
if (gettype($new_value) !== 'object') {
73-
return null;
72+
if (gettype($this->value) !== 'object') {
73+
return $this;
7474
}
7575

7676
$this->value->setProp($prop_key, $prop_value);
7777
return $this;
7878
}
7979

8080
public function getProp($prop_key) {
81-
if (gettype($new_value) !== 'object') {
81+
if (gettype($this->value) !== 'object') {
8282
return null;
8383
}
8484

0 commit comments

Comments
 (0)