PHP7.4 compatibility and cleanup

@bgm Can you merge and release 1.2?

Merge request reports

Loading