Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
df05b1be
Unverified
Commit
df05b1be
authored
4 years ago
by
Eileen McNaughton
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Civi/Payment/PropertyBag.php
+0
-1
0 additions, 1 deletion
Civi/Payment/PropertyBag.php
tests/phpunit/Civi/Payment/PropertyBagTest.php
+0
-1
0 additions, 1 deletion
tests/phpunit/Civi/Payment/PropertyBagTest.php
with
0 additions
and
2 deletions
Civi/Payment/PropertyBag.php
+
0
−
1
View file @
df05b1be
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
tests/phpunit/Civi/Payment/PropertyBagTest.php
+
0
−
1
View file @
df05b1be
...
...
@@ -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
());
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment