DaveChild / Text-Statistics

Generate information about text including syllable counts and Flesch-Kincaid, Gunning-Fog, Coleman-Liau, SMOG and Automated Readability scores.
https://readable.com/
BSD 2-Clause "Simplified" License
446 stars 107 forks source link

Fix Undefined offset #52

Closed tompec closed 8 months ago

tompec commented 4 years ago

When using the 'fleschKincaidReadingEase' function, I ran into this issue: ErrorException: Undefined offset: 1809 in ../vendor/davechild/textstatistics/src/DaveChild/TextStatistics/Syllables.php:361

This PR fixes that issue (also mentioned here).

marclaporte commented 2 years ago

@DaveChild Please, I hope you can find the time to assess MRs such as this. Thank you!