Skip to content

Commit

Permalink
reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwire committed Jan 17, 2021
1 parent 212a01a commit a39a0eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ function wf_civicrm_api3_contribution_transact($params) {
// But note we still return a localized format
// $propertyBag->setAmount($params['total_amount']);

$reflectionClass = new ReflectionClass($propertyBag);
$reflectionClass = new \ReflectionClass($propertyBag);
$reflectionProperty = $reflectionClass->getProperty('props');
$reflectionProperty->setAccessible(TRUE);
$payParams = $reflectionProperty->getValue($propertyBag)['default'];
Expand Down

0 comments on commit a39a0eb

Please sign in to comment.