fix(php) Fix ContextParser

Add 3rd argument back in
Add another callback  to remove the need for a closure