Skip to content

Commit 42eb8af

Browse files
committed
Restore safe typed property checks
1 parent 681db9d commit 42eb8af

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Model/Behavior/JsonableBehavior.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ protected function _getMappedFields() {
174174
public function _encode($val) {
175175
if (!empty($this->_config['fields']) && $this->_config['input'] === 'json') {
176176
if (!is_string($val)) {
177-
throw new InvalidArgumentException('Only accepts JSON string for input type `json`');
177+
throw new InvalidArgumentException('Only accepts JSON string for input type `json`');
178178
}
179179
$val = $this->_fromJson($val);
180180
}

src/Queue/Task.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function __construct(?Io $io = null, ?LoggerInterface $logger = null) {
9898
$QueuedJobs = $tableLocator->get($this->queueModelClass);
9999
$this->QueuedJobs = $QueuedJobs;
100100

101-
if (property_exists($this, 'defaultTable') && $this->defaultTable !== null) {
101+
if (isset($this->defaultTable)) {
102102
$this->fetchTable();
103103
}
104104
}

0 commit comments

Comments
 (0)