Skip to content

Commit 89702be

Browse files
committedMar 2, 2024··
Do not use implicitly nullable parameters and prepare release
1 parent 5e238e4 commit 89702be

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed
 

‎ChangeLog-11.0.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+
## [11.0.1] - 2024-03-02
6+
7+
### Changed
8+
9+
* Do not use implicitly nullable parameters
10+
511
## [11.0.0] - 2024-02-02
612

713
### Removed
@@ -10,4 +16,5 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
1016
* This component now requires PHP-Parser 5
1117
* This component is no longer supported on PHP 8.1
1218

19+
[11.0.1]: https://github.com/sebastianbergmann/php-code-coverage/compare/11.0.0...11.0.1
1320
[11.0.0]: https://github.com/sebastianbergmann/php-code-coverage/compare/10.1...11.0.0

‎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('11.0.0', dirname(__DIR__)))->asString();
22+
self::$version = (new VersionId('11.0.1', dirname(__DIR__)))->asString();
2323
}
2424

2525
return self::$version;

0 commit comments

Comments
 (0)
Please sign in to comment.