Skip to content

Commit 40a4ed1

Browse files
Do not use implicitly nullable parameters and prepare release
1 parent 486f046 commit 40a4ed1

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

ChangeLog.md

Lines changed: 7 additions & 0 deletions
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+
## [7.0.17] - 2024-03-02
6+
7+
### Changed
8+
9+
* Do not use implicitly nullable parameters
10+
511
## [7.0.16] - 2024-03-01
612

713
* No code changes, only updated `.gitattributes` to not export non-essential files.
@@ -146,6 +152,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
146152
* Class names are now abbreviated (unqualified name shown, fully qualified name shown on hover) in the file view of the HTML report
147153
* Update HTML report to Bootstrap 4
148154

155+
[7.0.17]: https://github.com/sebastianbergmann/php-code-coverage/compare/7.0.16...7.0.17
149156
[7.0.16]: https://github.com/sebastianbergmann/php-code-coverage/compare/7.0.15...7.0.16
150157
[7.0.15]: https://github.com/sebastianbergmann/php-code-coverage/compare/7.0.14...7.0.15
151158
[7.0.14]: https://github.com/sebastianbergmann/php-code-coverage/compare/7.0.13...7.0.14

src/CodeCoverage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ final class CodeCoverage
137137
/**
138138
* @throws RuntimeException
139139
*/
140-
public function __construct(Driver $driver = null, Filter $filter = null)
140+
public function __construct(?Driver $driver = null, ?Filter $filter = null)
141141
{
142142
if ($filter === null) {
143143
$filter = new Filter;

src/Driver/Xdebug.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class Xdebug implements Driver
3232
/**
3333
* @throws RuntimeException
3434
*/
35-
public function __construct(Filter $filter = null)
35+
public function __construct(?Filter $filter = null)
3636
{
3737
if (!\extension_loaded('xdebug')) {
3838
throw new RuntimeException('This driver requires Xdebug');

src/Node/AbstractNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ abstract class AbstractNode implements \Countable
4141
*/
4242
private $id;
4343

44-
public function __construct(string $name, self $parent = null)
44+
public function __construct(string $name, ?self $parent = null)
4545
{
4646
if (\substr($name, -1) == \DIRECTORY_SEPARATOR) {
4747
$name = \substr($name, 0, -1);

src/Version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class Version
2121
public static function id(): string
2222
{
2323
if (self::$version === null) {
24-
$version = new VersionId('7.0.16', \dirname(__DIR__));
24+
$version = new VersionId('7.0.17', \dirname(__DIR__));
2525
self::$version = $version->getVersion();
2626
}
2727

0 commit comments

Comments
 (0)