samdark / sitemap

Sitemap and sitemap index builder
BSD 3-Clause "New" or "Revised" License
530 stars 87 forks source link

A typo in a flush() function call #82

Open DarkSilence opened 2 years ago

DarkSilence commented 2 years ago

Since self::flush accepts an int as a parameter but a bool is provided here:

https://github.com/samdark/sitemap/blob/a7ba091766afeb5fad1ea3056b30f26c3a620962/Sitemap.php#L184

It seems that it's a typo of some kind. Probably

$this->flush(0);

should be there.

samdark commented 2 years ago

Yes, looks valid. Thanks.