Skip to content

Commit d3d7fc5

Browse files
committed
Increase Psalm strictness
1 parent 9058a3b commit d3d7fc5

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

psalm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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"

src/Queue.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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);

src/Task.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)