Fix hookTokens to be clearable outside the class
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 14 Oct 2021 08:21:04 +0000 (21:21 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 14 Oct 2021 19:59:01 +0000 (08:59 +1300)
commit15ed06b415483bbd9bfe3e561fd0c9324d9952a4
treee3d2783b69d21c011577252c56512b41f8cd30cd
parentca09f9073ec01ba0a67e1c435213dea878069299
Fix hookTokens to be clearable outside the class

Tests can't unset the proerty in the class easily but just using the static makes it easier
CRM/Contact/Tokens.php
CRM/Utils/Hook/UnitTests.php