Skip to content

Commit 3cbf631

Browse files
Instructed psalm to find unused code
1 parent 756b8db commit 3cbf631

7 files changed

Lines changed: 9 additions & 0 deletions

File tree

psalm.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
xmlns="https://getpsalm.org/schema/config"
2222
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
2323
cacheDirectory=".cache/psalm"
24+
findUnusedCode="true"
25+
findUnusedBaselineEntry="true"
2426
>
2527
<projectFiles>
2628
<directory name="src"/>

src/task/Generic.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
/**
1111
* A generic task that takes the command and arguments as constructor parameters. Can be used for custom commands or for testing. For commands that used
1212
* regularly you should create actual task classes
13+
*
14+
* @psalm-api
1315
*/
1416
final class Generic extends AbstractFlowTask {
1517

src/task/cache/Flush.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* Task to flush the cache
1313
*
1414
* @see https://neos.readthedocs.io/en/stable/References/CommandReference.html#neos-flow-cache-flush
15+
* @psalm-api
1516
*/
1617
final class Flush extends AbstractFlowTask {
1718

src/task/cache/Warmup.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* Flow command to warmup caches
99
*
1010
* @see https://neos.readthedocs.io/en/stable/References/CommandReference.html#neos-flow-cache-warmup
11+
* @psalm-api
1112
*/
1213
final class Warmup extends AbstractFlowTask {
1314

src/task/doctrine/Migrate.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* Runs the doctrine migrations
99
*
1010
* @see https://neos.readthedocs.io/en/stable/References/CommandReference.html#neos-flow-doctrine-migrate
11+
* @psalm-api
1112
*/
1213
final class Migrate extends AbstractFlowTask {
1314

src/task/node/Repair.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* Command that runs the repair command to bring nodes up to date (add new properties, set defaults, ...), fix structure, remove orphans etc.
1313
*
1414
* @see https://neos.readthedocs.io/en/stable/References/CommandReference.html#neos-contentrepository-node-repair
15+
* @psalm-api
1516
*/
1617
final class Repair extends AbstractFlowTask {
1718

src/task/resource/Publish.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* Task to publish the resources to the public directory
99
*
1010
* @see https://neos.readthedocs.io/en/stable/References/CommandReference.html#neos-flow-resource-publish
11+
* @psalm-api
1112
*/
1213
final class Publish extends AbstractFlowTask {
1314

0 commit comments

Comments
 (0)