I know the code doesn't seem to make a lot of sense, and I cannot figure out what the bug is, but with PHP 7.1 (after the Mojave update) this very simple function
public function getClient($group, $name)
{
return isset($this[$group][$name]) ? $this[$group][$name] : null;
}
... will return null even though the ArrayObject $this should have populated properties in it's storage. If you access those properties (e.g. with a print_r, or var_dump, or even assign them to a variable) before the isset is called, it all just works as expected.
@magtak what's blocking this from getting it merged? All the ops are having to do manual steps do get governor working now. It would be great for governor.phar users if this PR can be merged and get the issue fixed
I know the code doesn't seem to make a lot of sense, and I cannot figure out what the bug is, but with PHP 7.1 (after the Mojave update) this very simple function
... will return null even though the ArrayObject $this should have populated properties in it's storage. If you access those properties (e.g. with a print_r, or var_dump, or even assign them to a variable) before the isset is called, it all just works as expected.