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

TypeError when using Swot::isAcademic() #22

Open
jmecahansen opened this issue May 28, 2022 · 1 comment
Open

TypeError when using Swot::isAcademic() #22

jmecahansen opened this issue May 28, 2022 · 1 comment

Comments

@jmecahansen
Copy link

Hi,

I want to integrate your library in a small framework I'm building with PHP 8.1 but, when using the isAcademic() method it gives me the following error:

TypeError : array_key_exists(): Argument #2 ($array) must be of type array, Pdp\PublicSuffixList given

I suppose this is connected to #21 as it's related to the same package but I don't know if it's a matter of upgrading the package dependency for jeremykendall/php-domain-parser or upgrading your library (or maybe both). In any case, could you take a look? :)

Kind regards,
Julio

@xTermy
Copy link

xTermy commented Jan 15, 2023

That problem is caused by changes in array_key_exists() function. jeremykendall/php-domain-parser is not good for php 8.1. Instead i suggest use my fork of Swot - prepared for php 8.1 https://github.com/xTermy/studentMailVerifier

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

2 participants