The variable $this does not exist. Did you forget to declare it?
This check marks access to variables or properties that have not been declared yet. While PHP
has no explicit notion of declaring a variable, accessing it before a value is assigned
to it is most likely a bug.
Loading history...
41
$instance->form = $form;
42
43
return $instance;
44
}
45
46
public function getForm(): FormView
47
{
48
if (!$this->form) {
49
throw new \InvalidArgumentException(
50
'No form was set on row data.'
51
);
52
}
53
54
return $this->form;
55
}
56
57
public function getObject()
58
{
59
return $this->object;
60
}
61
62
private function getFormObject()
63
{
64
if (!isset($this->form->vars['data'])) {
65
throw new \RuntimeException(sprintf(
66
'Expected "data" to be set on the form view. Actual view variables: "%s"',
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.