Skip to content

Conversation

@bjendres
Copy link
Member

Fixes a couple of naughty and hard to track down errors during CiviBankings' analysis phase.

@bjendres bjendres requested a review from dontub December 11, 2025 13:13
@bjendres bjendres added the incompatibility something that stopped working with a certain CiviCRM core version label Dec 11, 2025
@bjendres bjendres added this to the CiviBanking 1.4 milestone Dec 12, 2025
Copy link
Collaborator

@dontub dontub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also have a look at the phpcs and phpstan issues? I think most issues found by phpcs should be fixable with phpcbf.

'total' => $stmt->total,
'currency' => $stmt->currency,
'date' => strtotime($stmt->starting_date),
'date' => strtotime($stmt->starting_date ?? '2000-01-01 00:00:00'),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason for the chosen fallback? Could it also be 0000-00-00 or 01-01-1970?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I picked this default because it's more compatible, e.g. in the "seconds since 1970 notation.

}
#btx-details .btxheader {
background: url("{$base_url}/sites/all/modules/civicrm/i/TreePlus.gif") 4px 4px no-repeat;
/*background: url("{$base_url}/sites/all/modules/civicrm/i/TreePlus.gif") 4px 4px no-repeat;*/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this isn't needed I think it should be removed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It used to work, but the TreePlus.gif isn't part of CiviCRM any more.

@bjendres bjendres merged commit 8386aad into master Dec 17, 2025
0 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

incompatibility something that stopped working with a certain CiviCRM core version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants