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) {