Skip to content

Commit 842f726

Browse files
Do not use implicitly nullable parameters and prepare release
1 parent 68f0085 commit 842f726

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

ChangeLog-10.1.md

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
44

5+
## [10.1.12] - 2024-03-02
6+
7+
### Changed
8+
9+
* Do not use implicitly nullable parameters
10+
511
## [10.1.11] - 2023-12-21
612

713
### Changed
@@ -83,6 +89,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
8389

8490
* The `SebastianBergmann\CodeCoverage\Filter::includeDirectory()`, `SebastianBergmann\CodeCoverage\Filter::excludeDirectory()`, and `SebastianBergmann\CodeCoverage\Filter::excludeFile()` methods are now deprecated
8591

92+
[10.1.12]: https://github.com/sebastianbergmann/php-code-coverage/compare/10.1.11...10.1.12
8693
[10.1.11]: https://github.com/sebastianbergmann/php-code-coverage/compare/10.1.10...10.1.11
8794
[10.1.10]: https://github.com/sebastianbergmann/php-code-coverage/compare/10.1.9...10.1.10
8895
[10.1.9]: https://github.com/sebastianbergmann/php-code-coverage/compare/10.1.8...10.1.9

src/CodeCoverage.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function setTests(array $tests): void
160160
$this->tests = $tests;
161161
}
162162

163-
public function start(string $id, TestSize $size = null, bool $clear = false): void
163+
public function start(string $id, ?TestSize $size = null, bool $clear = false): void
164164
{
165165
if ($clear) {
166166
$this->clear();
@@ -177,7 +177,7 @@ public function start(string $id, TestSize $size = null, bool $clear = false): v
177177
/**
178178
* @psalm-param array<string,list<int>> $linesToBeIgnored
179179
*/
180-
public function stop(bool $append = true, TestStatus $status = null, array|false $linesToBeCovered = [], array $linesToBeUsed = [], array $linesToBeIgnored = []): RawCodeCoverageData
180+
public function stop(bool $append = true, ?TestStatus $status = null, array|false $linesToBeCovered = [], array $linesToBeUsed = [], array $linesToBeIgnored = []): RawCodeCoverageData
181181
{
182182
$data = $this->driver->stop();
183183

@@ -202,7 +202,7 @@ public function stop(bool $append = true, TestStatus $status = null, array|false
202202
* @throws TestIdMissingException
203203
* @throws UnintentionallyCoveredCodeException
204204
*/
205-
public function append(RawCodeCoverageData $rawData, string $id = null, bool $append = true, TestStatus $status = null, array|false $linesToBeCovered = [], array $linesToBeUsed = [], array $linesToBeIgnored = []): void
205+
public function append(RawCodeCoverageData $rawData, ?string $id = null, bool $append = true, ?TestStatus $status = null, array|false $linesToBeCovered = [], array $linesToBeUsed = [], array $linesToBeIgnored = []): void
206206
{
207207
if ($id === null) {
208208
$id = $this->currentId;

src/Node/AbstractNode.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ abstract class AbstractNode implements Countable
3333
private readonly ?AbstractNode $parent;
3434
private string $id;
3535

36-
public function __construct(string $name, self $parent = null)
36+
public function __construct(string $name, ?self $parent = null)
3737
{
3838
if (str_ends_with($name, DIRECTORY_SEPARATOR)) {
3939
$name = substr($name, 0, -1);

src/Version.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class Version
1919
public static function id(): string
2020
{
2121
if (self::$version === '') {
22-
self::$version = (new VersionId('10.1.11', dirname(__DIR__)))->asString();
22+
self::$version = (new VersionId('10.1.12', dirname(__DIR__)))->asString();
2323
}
2424

2525
return self::$version;

0 commit comments

Comments
 (0)