From 0344773853315129ce5a7f4afb59e0891d81a030 Mon Sep 17 00:00:00 2001 From: Xymph Date: Sat, 21 Aug 2021 11:19:53 +0200 Subject: [PATCH] Fix object init warning; add changelog entry --- CHANGELOG.md | 2 ++ Wikimate.php | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b63bfca..db91f72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ Since v0.10.0 this project adheres to [Semantic Versioning](http://semver.org/) #### Fixed * Removed null returns from destructors & fixed PHPDoc comments ([#114]) +* Fixed sections object initialization warning in PHP 7.4+ ([#118]) ### Version 0.13.0 - 2021-07-05 @@ -130,3 +131,4 @@ Since v0.10.0 this project adheres to [Semantic Versioning](http://semver.org/) [#109]: https://github.com/hamstar/Wikimate/pull/109 [#111]: https://github.com/hamstar/Wikimate/pull/111 [#114]: https://github.com/hamstar/Wikimate/pull/114 +[#118]: https://github.com/hamstar/Wikimate/pull/118 diff --git a/Wikimate.php b/Wikimate.php index 158b43a..5ab7507 100644 --- a/Wikimate.php +++ b/Wikimate.php @@ -657,6 +657,7 @@ public function __construct($title, $wikimate) { $this->wikimate = $wikimate; $this->title = $title; + $this->sections = new stdClass(); $this->text = $this->getText(true); if ($this->invalid) {