Skip to content

Commit 4bbc1a4

Browse files
authored
Merge pull request #1265 from phpDocumentor/task/update-phpunit-baseline
Ignore php 8.5 deprecations
2 parents d9d3357 + abfaff9 commit 4bbc1a4

File tree

3 files changed

+57
-48
lines changed

3 files changed

+57
-48
lines changed

packages/guides-restructured-text/src/RestructuredText/Parser/DocumentParserContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function setLink(string $name, string $url): void
127127
$name = array_shift($this->anonymous);
128128
}
129129

130-
$this->links[$name] = trim($url);
130+
$this->links[$name ?? ''] = trim($url);
131131
}
132132

133133
public function resetAnonymousStack(): void

packages/guides-restructured-text/src/RestructuredText/Parser/InlineLexer.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
use function substr;
3030

3131
use const PHP_URL_SCHEME;
32+
use const PHP_VERSION_ID;
3233

3334
/** @extends AbstractLexer<int, string> */
3435
final class InlineLexer extends AbstractLexer
@@ -99,7 +100,11 @@ protected function scan($input): void
99100

100101
$class = new ReflectionClass(AbstractLexer::class);
101102
$property = $class->getProperty('tokens');
102-
$property->setAccessible(true);
103+
//phpcs:ignore SlevomatCodingStandard.Numbers.RequireNumericLiteralSeparator.RequiredNumericLiteralSeparator
104+
if (PHP_VERSION_ID < 80500) {
105+
$property->setAccessible(true);
106+
}
107+
103108
/** @var array<int, string> $tokens */
104109
$tokens = $property->getValue($this);
105110

phpunit-baseline.xml

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

0 commit comments

Comments
 (0)