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

Since version 20.0 is_callable no longer works #32438

Open
atm-lucasmantegari opened this issue Dec 20, 2024 · 0 comments
Open

Since version 20.0 is_callable no longer works #32438

atm-lucasmantegari opened this issue Dec 20, 2024 · 0 comments
Labels
Bug This is a bug (something does not work as expected)

Comments

@atm-lucasmantegari
Copy link
Contributor

Bug

Since version 20.0, a magic method has been added, in the file = 'doldeprecationhandler.class.php', method = '__call'.

I have the impression that the is_callable method always calls this new method, which is a problem because the conditions linked to is_callable still apply, even if the function can't be called on the object. To solve this problem,

I'm currently using the method = 'method_exists', but I don't know exactly how to fix it.

Dolibarr Version

20.0

Environment PHP

8.2

Environment Database

No response

Steps to reproduce the behavior and expected behavior

No response

Attached files

No response

@atm-lucasmantegari atm-lucasmantegari added the Bug This is a bug (something does not work as expected) label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected)
Projects
None yet
Development

No branches or pull requests

1 participant