Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit cd691f9

Browse files
remicolletmichalbundyra
authored andcommitted
fix Using array_key_exists() on objects
1 parent 372773e commit cd691f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model/ViewModel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public function clearOptions()
239239
public function getVariable($name, $default = null)
240240
{
241241
$name = (string) $name;
242-
if (array_key_exists($name, $this->variables)) {
242+
if (isset($this->variables[$name])) {
243243
return $this->variables[$name];
244244
}
245245

0 commit comments

Comments
 (0)