Fix #66509 invalid required param by reflection

This update fixes the issue where Reflection is assuming the $context is required.