Skip to content

Commit f1b9e27

Browse files
committed
Fix PHPDoc type violations on PAMI\Message\Message class
1 parent be09d49 commit f1b9e27

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/PAMI/Message/Message.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ abstract class Message
6262

6363
/**
6464
* Metadata. Message variables (key/value).
65-
* @var string[]
65+
* @var array
6666
*/
6767
protected $variables;
6868

6969
/**
7070
* Metadata. Message "keys" i.e: Action: login
71-
* @var string[]
71+
* @var array
7272
*/
7373
protected $keys;
7474

@@ -102,7 +102,7 @@ public function getCreatedDate()
102102
* Adds a variable to this message.
103103
*
104104
* @param string $key Variable name.
105-
* @param string $value Variable value.
105+
* @param mixed $value Variable value.
106106
*
107107
* @return void
108108
*/
@@ -116,7 +116,7 @@ public function setVariable($key, $value)
116116
*
117117
* @param string $key Variable name.
118118
*
119-
* @return string
119+
* @return mixed
120120
*/
121121
public function getVariable($key)
122122
{
@@ -131,7 +131,7 @@ public function getVariable($key)
131131
*
132132
* @param string $value Key value.
133133
*
134-
* @return typed and sanitized value
134+
* @return mixed typed and sanitized value
135135
*/
136136
protected function sanitizeInput($value)
137137
{
@@ -175,7 +175,7 @@ protected function sanitizeInput($value)
175175
* Adds a variable to this message.
176176
*
177177
* @param string $key Key name (i.e: Action).
178-
* @param string $value Key value.
178+
* @param mixed $value Key value.
179179
*
180180
* @return void
181181
*/
@@ -208,7 +208,7 @@ protected function setSanitizedKey($key, $value)
208208
*
209209
* @param string $key Key name (i.e: Action).
210210
*
211-
* @return string
211+
* @return mixed
212212
*/
213213
public function getKey($key)
214214
{
@@ -225,7 +225,7 @@ public function getKey($key)
225225
*
226226
* @param string $key Key name (i.e: Action).
227227
*
228-
* @return string
228+
* @return bool|null
229229
*/
230230
public function getBoolKey($key)
231231
{
@@ -239,7 +239,7 @@ public function getBoolKey($key)
239239
/**
240240
* Returns all keys for this message.
241241
*
242-
* @return string[]
242+
* @return array
243243
*/
244244
public function getKeys()
245245
{
@@ -249,7 +249,7 @@ public function getKeys()
249249
/**
250250
* Returns all variabels for this message.
251251
*
252-
* @return string[]
252+
* @return array
253253
*/
254254
public function getVariables()
255255
{

0 commit comments

Comments
 (0)