Skip to content

Commit 27312f6

Browse files
Fixed psalm errors
Signed-off-by: Bastian Schwarz <bastian@codename-php.de>
1 parent f80b177 commit 27312f6

3 files changed

Lines changed: 5 additions & 10 deletions

File tree

psalm.xml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,7 @@
3030
</ignoreFiles>
3131
</projectFiles>
3232

33-
<extraFiles>
34-
<file name="./deployer.phar"/>
35-
</extraFiles>
36-
37-
<issueHandlers>
38-
<MissingConstructor errorLevel="suppress"/>
39-
<PropertyNotSetInConstructor errorLevel="suppress"/>
40-
</issueHandlers>
33+
<stubs>
34+
<file name="vendor/deployer/deployer/src/functions.php"/>
35+
</stubs>
4136
</psalm>

src/functions/iAfter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ interface iAfter {
2828
* Call that task after specified task runs.
2929
*
3030
* @param string $task The task after $do should be run.
31-
* @param \de\codenamephp\deployer\base\task\iTask|string|callable $do The task to be run.
31+
* @param \de\codenamephp\deployer\base\task\iTask|string|callable():void $do The task to be run.
3232
*
3333
* @return Task|null
3434
*/

src/functions/iTask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface iTask {
3131
* Alternatively get a defined task.
3232
*
3333
* @param string $name Name of current task.
34-
* @param \de\codenamephp\deployer\base\task\iTask|callable|array|null $body Callable task, array of other tasks names or nothing to get a defined tasks
34+
* @param \de\codenamephp\deployer\base\task\iTask|callable():void|array|null $body Callable task, array of other tasks names or nothing to get a defined tasks
3535
*/
3636
public function task(string $name, \de\codenamephp\deployer\base\task\iTask|callable|array|null $body = null) : Task;
3737

0 commit comments

Comments
 (0)