Skip to content

Commit 4e40d4e

Browse files
correct docblock type-hint and return value for __unserialize method (#36342)
1 parent 75b1e9e commit 4e40d4e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Illuminate/Queue/SerializesModels.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function __serialize()
9191
* Restore the model after serialization.
9292
*
9393
* @param array $values
94-
* @return array
94+
* @return void
9595
*/
9696
public function __unserialize(array $values)
9797
{
@@ -122,8 +122,6 @@ public function __unserialize(array $values)
122122
$this, $this->getRestoredPropertyValue($values[$name])
123123
);
124124
}
125-
126-
return $values;
127125
}
128126

129127
/**

0 commit comments

Comments
 (0)