Skip to content

Commit 3b2a3c7

Browse files
committed
Add baseline for indirect deprecations
We cannot fix these PHP deprecations, as these are happening in third party code (and fixing them requires a major version bump of Flysystem). PHPUnit 11 distinguishes direct and indirect deprecations, allowing us to automatically ignore all indirect deprecations. However, this version requires PHP 8.2, while this library still supports PHP 8.1.
1 parent 4b83571 commit 3b2a3c7

File tree

3 files changed

+68
-17
lines changed

3 files changed

+68
-17
lines changed

composer.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpunit-baseline.xml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?xml version="1.0"?>
2+
<files version="1">
3+
<file path="vendor/league/flysystem/src/FilesystemInterface.php">
4+
<line number="274" hash="974a66e314c847f29d4b178ad6b47395be68d98f">
5+
<issue><![CDATA[League\Flysystem\FilesystemInterface::get(): Implicitly marking parameter $handler as nullable is deprecated, the explicit nullable type must be used instead]]></issue>
6+
</line>
7+
</file>
8+
<file path="vendor/league/flysystem/src/Filesystem.php">
9+
<line number="363" hash="813ac25441e5e8e2323613ee4eee44ff5927e423">
10+
<issue><![CDATA[League\Flysystem\Filesystem::get(): Implicitly marking parameter $handler as nullable is deprecated, the explicit nullable type must be used instead]]></issue>
11+
</line>
12+
</file>
13+
<file path="vendor/nette/schema/src/Schema/Expect.php">
14+
<line number="98" hash="af1375155757440ebfd58e5dca925b96fb0841ac">
15+
<issue><![CDATA[Nette\Schema\Expect::arrayOf(): Implicitly marking parameter $keyType as nullable is deprecated, the explicit nullable type must be used instead]]></issue>
16+
</line>
17+
</file>
18+
<file path="vendor/nette/schema/src/Schema/Elements/Type.php">
19+
<line number="78" hash="6a2e76e00e49203f2c092ea7e12816644b8f8233">
20+
<issue><![CDATA[Nette\Schema\Elements\Type::items(): Implicitly marking parameter $keyType as nullable is deprecated, the explicit nullable type must be used instead]]></issue>
21+
</line>
22+
</file>
23+
<file path="vendor/league/flysystem-memory/src/MemoryAdapter.php">
24+
<line number="26" hash="f0bf740e14d85a52ca37e77741186b5c5b98f50c">
25+
<issue><![CDATA[League\Flysystem\Memory\MemoryAdapter::__construct(): Implicitly marking parameter $config as nullable is deprecated, the explicit nullable type must be used instead]]></issue>
26+
</line>
27+
</file>
28+
<file path="vendor/dflydev/dot-access-data/src/Exception/MissingPathException.php">
29+
<line number="26" hash="96f447834334c66936af737893284c52fb2092ce">
30+
<issue><![CDATA[Dflydev\DotAccessData\Exception\MissingPathException::__construct(): Implicitly marking parameter $previous as nullable is deprecated, the explicit nullable type must be used instead]]></issue>
31+
</line>
32+
</file>
33+
<file path="vendor/league/csv/src/AbstractCsv.php">
34+
<line number="249" hash="8d3a4a94318f60e69c3685de8cad0d3f4898c555">
35+
<issue><![CDATA[League\Csv\AbstractCsv::output(): Implicitly marking parameter $filename as nullable is deprecated, the explicit nullable type must be used instead]]></issue>
36+
</line>
37+
</file>
38+
<file path="vendor/league/csv/src/Stream.php">
39+
<line number="180" hash="c9814e34949edeb814f365664d2182da05fa0200">
40+
<issue><![CDATA[League\Csv\Stream::appendFilter(): Implicitly marking parameter $params as nullable is deprecated, the explicit nullable type must be used instead]]></issue>
41+
</line>
42+
<line number="487" hash="de0462b80d9195d51755e594cbed894d423b7838">
43+
<issue><![CDATA[League\Csv\Stream::fwrite(): Implicitly marking parameter $length as nullable is deprecated, the explicit nullable type must be used instead]]></issue>
44+
</line>
45+
</file>
46+
<file path="vendor/league/csv/src/ResultSet.php">
47+
<line number="205" hash="c380ab2e507d3be0492acc1cd022e4f6de1b851b">
48+
<issue><![CDATA[League\Csv\ResultSet::slice(): Implicitly marking parameter $length as nullable is deprecated, the explicit nullable type must be used instead]]></issue>
49+
</line>
50+
</file>
51+
</files>

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</testsuite>
3131
</testsuites>
3232
<coverage/>
33-
<source ignoreSuppressionOfDeprecations="true">
33+
<source ignoreSuppressionOfDeprecations="true" baseline="phpunit-baseline.xml">
3434
<include>
3535
<directory suffix=".php">packages/**/src</directory>
3636
</include>

0 commit comments

Comments
 (0)