Skip to content
Snippets Groups Projects
Unverified Commit df05b1be authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #17506 from mattwire/propertybagremovewarning

Payment Propertybag remove warning
parents 49b2c76f cda69f2f
No related branches found
No related tags found
No related merge requests found
......@@ -296,7 +296,6 @@ class PropertyBag implements \ArrayAccess {
* @param array $data
*/
public function mergeLegacyInputParams($data) {
$this->legacyWarning('We have merged input params into the property bag for now but please rewrite code to not use this.');
foreach ($data as $key => $value) {
if ($value !== NULL && $value !== '') {
$this->offsetSet($key, $value);
......
......@@ -103,7 +103,6 @@ class PropertyBagTest extends \PHPUnit\Framework\TestCase implements HeadlessInt
'contactID' => 123,
'contributionRecurID' => 456,
]);
$this->assertEquals('We have merged input params into the property bag for now but please rewrite code to not use this.', $propertyBag->lastWarning);
$this->assertEquals(123, $propertyBag->getContactID());
$this->assertEquals(456, $propertyBag->getContributionRecurID());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment