From c3a307e832f2e69c7ef869e31fc644fde0e7cb3e Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Sat, 2 Mar 2024 08:32:10 +0100 Subject: [PATCH] Do not use implicitly nullable parameters and prepare release --- ChangeLog.md | 7 +++++++ src/Snapshot.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog.md b/ChangeLog.md index 805682e..619ec8f 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -2,6 +2,12 @@ All notable changes in `sebastian/global-state` are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles. +## [7.0.1] - 2024-03-02 + +### Changed + +* Do not use implicitly nullable parameters + ## [7.0.0] - 2024-02-02 ### Removed @@ -92,6 +98,7 @@ All notable changes in `sebastian/global-state` are documented in this file usin * This component is no longer supported on PHP 7.0 and PHP 7.1 +[7.0.1]: https://github.com/sebastianbergmann/global-state/compare/7.0.0...7.0.1 [7.0.0]: https://github.com/sebastianbergmann/global-state/compare/6.0...7.0.0 [6.0.1]: https://github.com/sebastianbergmann/global-state/compare/6.0.0...6.0.1 [6.0.0]: https://github.com/sebastianbergmann/global-state/compare/5.0.5...6.0.0 diff --git a/src/Snapshot.php b/src/Snapshot.php index 43e2730..7e828dd 100644 --- a/src/Snapshot.php +++ b/src/Snapshot.php @@ -49,7 +49,7 @@ final class Snapshot private array $classes = []; private array $traits = []; - public function __construct(ExcludeList $excludeList = null, bool $includeGlobalVariables = true, bool $includeStaticProperties = true, bool $includeConstants = true, bool $includeFunctions = true, bool $includeClasses = true, bool $includeInterfaces = true, bool $includeTraits = true, bool $includeIniSettings = true, bool $includeIncludedFiles = true) + public function __construct(?ExcludeList $excludeList = null, bool $includeGlobalVariables = true, bool $includeStaticProperties = true, bool $includeConstants = true, bool $includeFunctions = true, bool $includeClasses = true, bool $includeInterfaces = true, bool $includeTraits = true, bool $includeIniSettings = true, bool $includeIncludedFiles = true) { $this->excludeList = $excludeList ?: new ExcludeList;