Closes #3624257
Backports #3594984 to 7.x.
7.x
Changes:
?\Serializable
?Route
Validation:
php -l
git diff --check