Skip to content

Commit 729a370

Browse files
committed
fix: ensure properties are set only if they exist
1 parent 61edc8a commit 729a370

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ChildProcess.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ protected function fromRuntimeProcess($process)
149149
}
150150

151151
foreach ($process['settings'] as $key => $value) {
152-
$this->{$key} = $value;
152+
if (property_exists($this, $key)) {
153+
$this->{$key} = $value;
154+
}
153155
}
154156

155157
return $this;

0 commit comments

Comments
 (0)