Skip to content

Commit f80b177

Browse files
Removed cast that's not needed anymore
Signed-off-by: Bastian Schwarz <bastian@codename-php.de>
1 parent 9ea2398 commit f80b177

2 files changed

Lines changed: 15 additions & 12 deletions

File tree

psalm.xml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,25 @@
1717

1818
<psalm
1919
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20-
totallyTyped="true"
2120
xmlns="https://getpsalm.org/schema/config"
2221
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
2322
cacheDirectory=".cache/psalm"
2423
errorLevel="1"
2524
autoloader="./test/bootstrap.php"
2625
>
27-
<projectFiles>
28-
<directory name="src"/>
29-
<ignoreFiles>
30-
<directory name="vendor"/>
31-
</ignoreFiles>
32-
</projectFiles>
26+
<projectFiles>
27+
<directory name="src"/>
28+
<ignoreFiles>
29+
<directory name="vendor"/>
30+
</ignoreFiles>
31+
</projectFiles>
3332

34-
<issueHandlers>
35-
<MissingConstructor errorLevel="suppress"/>
36-
<PropertyNotSetInConstructor errorLevel="suppress"/>
37-
</issueHandlers>
33+
<extraFiles>
34+
<file name="./deployer.phar"/>
35+
</extraFiles>
36+
37+
<issueHandlers>
38+
<MissingConstructor errorLevel="suppress"/>
39+
<PropertyNotSetInConstructor errorLevel="suppress"/>
40+
</issueHandlers>
3841
</psalm>

src/taskMatcher/ByRegexTaskName.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ final class ByRegexTaskName implements iTaskMatcher {
2727
public function __construct(public string $regex) {}
2828

2929
public function matches(Task $task) : bool {
30-
return preg_match($this->regex, (string) $task->getName()) === 1;
30+
return preg_match($this->regex, $task->getName()) === 1;
3131
}
3232
}

0 commit comments

Comments
 (0)