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]: array_map() expects parameter 1 to be a valid callback, class 'PO' not found #3

Closed
ldebrouwer-rmn opened this issue Jul 21, 2014 · 3 comments
Assignees
Labels

Comments

@ldebrouwer-rmn
Copy link

The following line (53) in PO.PHP:

return implode("\n\n", array_map(array('PO', 'export_entry'), $this->entries));

gives me the following error when I import the class via use POMO/PO; and call the export_to_file method:

array_map() expects parameter 1 to be a valid callback, class 'PO' not found

@LeoColomb LeoColomb added the bug label Jul 21, 2014
@LeoColomb LeoColomb self-assigned this Jul 21, 2014
@LeoColomb
Copy link
Owner

Thanks for reporting.

  • First be careful about use statement: not use POMO/PO; but use POMO\PO;.
  • About the error, I'm looking into it.

@LeoColomb
Copy link
Owner

Seems to be fixed! Let me know if it works on your side.

🏇

@ldebrouwer-rmn
Copy link
Author

Oops, sorry about that typo :/

That has indeed fixed the issue. Thank you very much.

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