Skip to content

Commit

Permalink
Updated phpunit config + fixed phpstan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sebprt committed Nov 22, 2023
1 parent 87169db commit 19f6009
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 34 deletions.
45 changes: 15 additions & 30 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,33 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
backupGlobals="true"
colors="false"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
stopOnRisky="false"
timeoutForSmallTests="1"
timeoutForMediumTests="10"
timeoutForLargeTests="60"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false"
requireCoverageMetadata="false">
<testsuites>
<testsuite name="Functional tests">
<directory>tests/functional/</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<directory suffix=".php">src</directory>
</include>
</coverage>
<php>
<ini name="allow_url_include" value="1"/>
</php>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd" backupGlobals="true" colors="false" processIsolation="false" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" stopOnRisky="false" timeoutForSmallTests="1" timeoutForMediumTests="10" timeoutForLargeTests="60" cacheDirectory=".phpunit.cache" backupStaticProperties="false" requireCoverageMetadata="false">
<testsuites>
<testsuite name="Functional tests">
<directory>tests/functional/</directory>
</testsuite>
</testsuites>
<coverage/>
<php>
<ini name="allow_url_include" value="1"/>
</php>
<source>
<include>
<directory suffix=".php">src</directory>
</include>
</source>
</phpunit>
3 changes: 1 addition & 2 deletions src/FingersCrossed/Extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ public function __construct(
private string $escape = '\\',
private ?array $columns = null,
private LoggerInterface $logger = new NullLogger()
) {
}
) {}

/** @return iterable<AcceptanceResultBucket<array>|RejectionResultBucket<array|null>> */
public function extract(): iterable

Check failure on line 28 in src/FingersCrossed/Extractor.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Kiboko\Component\Flow\Csv\FingersCrossed\Extractor::extract() return type has no value type specified in iterable type array.

Check failure on line 28 in src/FingersCrossed/Extractor.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Kiboko\Component\Flow\Csv\FingersCrossed\Extractor::extract() return type has no value type specified in iterable type array.

Check failure on line 28 in src/FingersCrossed/Extractor.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Kiboko\Component\Flow\Csv\FingersCrossed\Extractor::extract() return type has no value type specified in iterable type array.

Check failure on line 28 in src/FingersCrossed/Extractor.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Kiboko\Component\Flow\Csv\FingersCrossed\Extractor::extract() return type has no value type specified in iterable type array.

Check failure on line 28 in src/FingersCrossed/Extractor.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Kiboko\Component\Flow\Csv\FingersCrossed\Extractor::extract() return type has no value type specified in iterable type array.

Check failure on line 28 in src/FingersCrossed/Extractor.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Kiboko\Component\Flow\Csv\FingersCrossed\Extractor::extract() return type has no value type specified in iterable type array.
Expand Down
3 changes: 1 addition & 2 deletions src/Safe/Extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public function __construct(
private string $escape = '\\',
private ?array $columns = null,
private LoggerInterface $logger = new NullLogger()
) {
}
) {}

/** @return ResultBucketInterface[] */
public function extract(): iterable

Check failure on line 29 in src/Safe/Extractor.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Kiboko\Component\Flow\Csv\Safe\Extractor::extract() return type with generic interface Kiboko\Contract\Bucket\ResultBucketInterface does not specify its types: Type

Check failure on line 29 in src/Safe/Extractor.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Kiboko\Component\Flow\Csv\Safe\Extractor::extract() return type with generic interface Kiboko\Contract\Bucket\ResultBucketInterface does not specify its types: Type
Expand Down

0 comments on commit 19f6009

Please sign in to comment.