Issue #3252386 by alexpott, longwave, duadua, mondrake, mstrelan, andypost, Spokje, VladimirAus, catch, effulgentsia, Berdir, xjm, bircher, joachim, larowlan: Use PHP attributes instead of doctrine annotations (cherry picked from commit fe420423)