Closed swissspidy closed 4 years ago
Fixes #186.
On PHP < 7.3, array_push emits a warning if the second param is an empty array. See https://3v4l.org/Pk7En and https://www.php.net/manual/en/function.array-push.php
array_push
This PR checks whether the sitemap entries array is empty before trying to array_push it.
Please select the relevant options:
Run tests on PHP < 7.3
Issue Number
Fixes #186.
Description
On PHP < 7.3,
array_push
emits a warning if the second param is an empty array. See https://3v4l.org/Pk7En and https://www.php.net/manual/en/function.array-push.phpThis PR checks whether the sitemap entries array is empty before trying to
array_push
it.Type of change
Please select the relevant options:
Steps to test
Run tests on PHP < 7.3
Acceptance criteria