TheNetworg / oauth2-azure

Azure AD provider for the OAuth 2.0 Client.
https://packagist.org/packages/thenetworg/oauth2-azure
MIT License
230 stars 108 forks source link

Support PHP8 #130

Closed Qrious closed 2 years ago

Qrious commented 3 years ago

Hi,

Currently this library can't be used together with PHP8. PHP8 has been officially released, so it would be nice to add PHP8 support. This would require league/oauth2-client 2.6 release, as that is their first php8 compatible release.

Current error message:

Loading composer repositories with package information
 Updating dependencies
 Your requirements could not be resolved to an installable set of packages.
 
   Problem 1
     - Root composer.json requires thenetworg/oauth2-azure ^2.0 -> satisfiable by thenetworg/oauth2-azure[v2.0.0].
     - thenetworg/oauth2-azure v2.0.0 requires php ^5.6|^7.0 -> your php version (8.0.0) does not satisfy that requirement.
hajekj commented 3 years ago

Hey there, could you please test it with oauth2-client v2.6 and report back if anything is not working? I will be happy to bump the supported PHP version if everything works fine.

Qrious commented 3 years ago

I will test it, however i'd like to note that my use case of your plugin is limited, as I only use it for authentication.

After a quick glance of the source code I don't expect any issues with an upgrade, but i'll let you know the results of my tests 👍.

Qrious commented 3 years ago

I can confirm that my use-case works with oauth2-client v2.6 :), it should be safe to bump the supported PHP version.

hajekj commented 3 years ago

I have just added it to master, https://github.com/TheNetworg/oauth2-azure/commit/fc059d1c50b0301c745a430273f1492b192e1f15 currently available under dev-master via Composer (https://packagist.org/packages/thenetworg/oauth2-azure#dev-master). I will probably release it as v2.0.1 once I finish checking on League's changelog, to make sure we didn't do anything breaking here.