-
Notifications
You must be signed in to change notification settings - Fork 42
PHP8 compatibility #500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP8 compatibility #500
Conversation
dontub
left a comment
There was a problem hiding this 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'), |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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;*/ |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
f24116d to
e384027
Compare
Fixes a couple of naughty and hard to track down errors during CiviBankings' analysis phase.