CRM-19813 - CRM_Utils_Hook - Don't allow conflicts in property names
authorTim Otten <totten@civicrm.org>
Fri, 31 Mar 2017 03:24:20 +0000 (20:24 -0700)
committerTim Otten <totten@civicrm.org>
Fri, 31 Mar 2017 03:24:20 +0000 (20:24 -0700)
commit0fcad3574693440a6109f55a417f8df172b186b8
tree670898e23ce594d5bec02761001a7a840b928dd4
parent0d6813954451aff8a99f3736cc07e8127d1c03bd
CRM-19813 - CRM_Utils_Hook - Don't allow conflicts in property names

Traditionally, the names of the hook parameters were advisory/aesthetic.
With the introduction of GenericHookEvent, they become first class symbols
-- and they can theoretically conflict with properties of `GenericHookEvent`
or `Event`.  In particular, the parameter `$name` conflicts with
`Event::$name` in Symfony 2.x.
CRM/Utils/Hook.php
Civi/Core/Event/GenericHookEvent.php