Fix issue with multiple class declarations. See https://github.com/bav-php/bav-symfony/issues/1