Describe the bug
The plugin currently composer-requires mlocati/ip-lib which is loaded via require_once __DIR__ . '/vendor/autoload.php' in the plugin bootstrap file.
When using this plugin on projects with other dependencies that also rely on mlocati/ip-lib (at different version), there is a PHP error due to the duplicate loading of IPLib\Factory class.
Steps to Reproduce
-
Create an empty WP project with a minimal plugin that requires and loads mlocati/ip-lib via /vendor/autoload.php of that plugin.
-
Install and activate this plugin and note the fatal error due to duplicate definition of IPLib\Factory class.
Screenshots, screen recording, code snippet
No response
Environment information
- n/a: any server capable or running WP and this plugin.
WordPress information
Latest WP 7.1.
Code of Conduct
Describe the bug
The plugin currently composer-requires
mlocati/ip-libwhich is loaded viarequire_once __DIR__ . '/vendor/autoload.php'in the plugin bootstrap file.When using this plugin on projects with other dependencies that also rely on
mlocati/ip-lib(at different version), there is a PHP error due to the duplicate loading ofIPLib\Factoryclass.Steps to Reproduce
Create an empty WP project with a minimal plugin that requires and loads
mlocati/ip-libvia/vendor/autoload.phpof that plugin.Install and activate this plugin and note the fatal error due to duplicate definition of
IPLib\Factoryclass.Screenshots, screen recording, code snippet
No response
Environment information
WordPress information
Latest WP 7.1.
Code of Conduct