It seems like array('message' => '', '...ck', 'list' => array()) of type array<string,string|arra...tring","list":"array"}> is incompatible with the declared type string of property $content.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
It seems like array('message' => '', '...lse, 'primary' => true) of type array<string,string|null...","primary":"boolean"}> is incompatible with the declared type string of property $cta.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Loading history...
50
'message' => '',
51
'hook' => null,
52
'newWindow' => false,
53
'primary' => true,
54
);
55
}
56
57
/**
58
* Renders the internal state to a simple object
59
*
60
* @return \stdClass|bool The simple object
61
*/
62
public function render() {
63
64
$obj = new \stdClass();
65
$obj->content = $this->content;
66
$obj->cta = $this->cta;
67
$obj->id = $this->id;
68
$obj->is_dismissible = true;
69
70
return $obj;
71
}
72
73
/**
74
* Show the specified message to the user
75
*
76
* @param string $message The message.
77
* @param string $description A longer description that shows up under the message.
78
*
79
* @return $this
80
*/
81
public function show( $message, $description = '' ) {
82
$this->content['message'] = $message;
83
$this->content['description'] = $description;
84
85
return $this;
86
}
87
88
/**
89
* The message path that needs to match before showing
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..