Issue #2940108 by yo30, quietone, maxocub: getLegacyDrupalVersion() returns string not int as documented (cherry picked from commit 974d0f91)