Closed andrewjmead closed 2 years ago
Would you be willing to test #195 to confirm that it resolves the issue for you?
Yup. I'll test it tomorrow 👍
I just installed the branch using composer require geoip2/geoip2:dev-greg/no-stringy-class-names
and it fixed the issue right away!
Great! Thanks for testing!
Thanks to you for addressing it!
I'm using this library in a WordPress plugin that uses PHP Scoper to scope all dependencies.
I noticed that this library does not support PHP Scoper out of the box due to its use of string class names as seen here, here, and here.
I was able to patch this in PHP Scoper using the following patcher, but it would be awesome to see built-in support. Keep in mind this just patches the two instances in
Reader.php
and doesn't attempt to patch the instance inClient.php
:I was encourage to open a separate issue by @oschwald in #170. Thanks!
😁