codepress / admin-columns-issues

Issues for Admin Columns Pro
https://www.admincolumns.com/
11 stars 0 forks source link

Incorrect namespace in use statement in ACF Addon #1330

Open thunderdw opened 1 year ago

thunderdw commented 1 year ago

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;