File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 11<?xml version =" 1.0" ?>
22<psalm
3- errorLevel =" 7 "
3+ errorLevel =" 3 "
44 resolveFromConfigFile =" true"
55 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
66 xmlns =" https://getpsalm.org/schema/config"
Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ public function getName() : string
3636 return $ this ->name ;
3737 }
3838
39+ /**
40+ * @param mixed $data
41+ */
3942 public function put ($ data , array $ options = []) : Task
4043 {
4144 return Task::fromTuple (
@@ -125,6 +128,9 @@ public function stats(?string $path = null)
125128 return $ stats ;
126129 }
127130
131+ /**
132+ * @param mixed ...$args
133+ */
128134 public function call (string $ methodName , ...$ args ) : array
129135 {
130136 return $ this ->client ->call ("queue.tube. $ this ->name : $ methodName " , ...$ args );
Original file line number Diff line number Diff line change @@ -17,8 +17,13 @@ final class Task
1717{
1818 private $ id ;
1919 private $ state ;
20+
21+ /** @var mixed $data */
2022 private $ data ;
2123
24+ /**
25+ * @param mixed $data
26+ */
2227 private function __construct (int $ id , string $ state , $ data )
2328 {
2429 $ this ->id = $ id ;
@@ -43,6 +48,9 @@ public function getState() : string
4348 return $ this ->state ;
4449 }
4550
51+ /**
52+ * @return mixed
53+ */
4654 public function getData ()
4755 {
4856 return $ this ->data ;
You can’t perform that action at this time.
0 commit comments