The only solution I see here is using static code analyzer tools or so. So scan the files after they push their branch modificatons, and make sure no PHP code is present.
But as usual - lecture from the team lead will suffice - asking politely FE devs not to use raw PHP but only Volt syntax.