Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHPLIB-951: Assert operation before argument validation (#999)
This prevents a potential PHP warning for accessing a nonexistent array key if the operation doesn't exist, which was responsible for some Astrolabe test failures. Since assertArgumentsBySchema() is called before the switch statement in Operation execute methods, we don't yet know that the operation exists. With this change, we should never hit default cases in those switch statements; however, they can remain in place for now.
- Loading branch information