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

Incorrect namespace in use statement in ACF Addon #1330

Open
thunderdw opened this issue Apr 1, 2023 · 0 comments
Open

Incorrect namespace in use statement in ACF Addon #1330

thunderdw opened this issue Apr 1, 2023 · 0 comments

Comments

@thunderdw
Copy link

This is happening in Admin Columns Pro version 6.1.3. Line 5 of addons/acf/classes/Field.php has the following use statement:

use http\Exception\InvalidArgumentException;

That class in that namespace doesn't exist, and if you trigger the exception in that file, instead of the intended error message this occurs:

Fatal error: Uncaught Error: Class "http\Exception\InvalidArgumentException" not found in /path/to/plugins/admin-columns-pro/addons/acf/classes/Field.php:22

I believe this use statement should be the same as the rest of the plugin:

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

No branches or pull requests

1 participant