Skip to content
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

Error Declaration of CRM_Banking_PluginImpl_Importer_CODA with Civibanking 1.0-alpha2 #9

Open
hansrossel opened this issue Feb 29, 2024 · 3 comments
Assignees
Labels
Milestone

Comments

@hansrossel
Copy link

with Civibanking 1.0-alpha2 there is a PHP Fatal error on /civicrm/banking/import: Declaration of CRM_Banking_PluginImpl_Importer_CODA::getValue($key, $btx, $line = null, $header = []) must be compatible with CRM_Banking_PluginImpl_Importer_CSV::getValue($key, $btx, $line = null, $header = [], $params = []) in org.project60.coda/CRM/Banking/PluginImpl/Importer/CODA.php on line 207

I suppose the function should have $params:
protected function getValue($key, $btx, $line = NULL, $header = array(), $params = []) {

@bjendres bjendres added the bug label Mar 1, 2024
@bjendres
Copy link
Member

bjendres commented Mar 1, 2024

Yes, unfortunately the signature of the method being overwritten (CRM_Banking_PluginImpl_Importer_CSV::getValue) has changed at some point.

It should be sufficient to replace the line 207 you mentioned with

protected function getValue($key, $btx, $line=NULL, $header=[], $params = []) {

Let me know if that fixes it. If so, let me know and I'll create a release.

@hansrossel
Copy link
Author

I can confirm the error on /civicrm/banking/import is fixed with this change.

bjendres added a commit that referenced this issue Mar 4, 2024
@bjendres bjendres added this to the 1.0 milestone Mar 4, 2024
bjendres added a commit that referenced this issue Mar 4, 2024
Adjusted getValue to recent CiviBanking versions [#9]
@bjendres
Copy link
Member

bjendres commented Mar 4, 2024

Hi @hansrossel, I created and attached a beta version, could you verify that it works, so I can finally release a 1.0.0 version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants