Issue #3444020 by andypost, smustgrave: [8.4] Fix implicitly nullable type declarations in composer plugin (cherry picked from commit 031b4907)