add return type on closure
add return type on closure

Co-Authored-By: Grégoire Paris <97607be36098a11ebbd418e8cb692e80c46220f1@greg0ire.fr>
doctrine/migrations,cassiosantos/migrations,doctrine/migrations