thephpleague / oauth2-server

A spec compliant, secure by default PHP OAuth 2.0 Server
https://oauth2.thephpleague.com
MIT License
6.51k stars 1.12k forks source link

PHP version requirement (docs) #1269

Closed reindert-vetter closed 2 years ago

reindert-vetter commented 2 years ago

It is unclear which PHP versions are supported.

https://oauth2.thephpleague.com/requirements/:

The following versions of PHP are supported: PHP 7.2 PHP 7.3 PHP 7.4

https://github.com/thephpleague/oauth2-server/blob/master/README.md:

The latest version of this package supports the following versions of PHP: PHP 7.2 PHP 7.3 PHP 7.4 PHP 8.0

https://github.com/thephpleague/oauth2-server/blob/master/composer.json:

"require": { "php": "^7.2 || ^8.0",

I assume we support both PHP 8.0 and 8.1. Maybe it would be a good idea to update that.

Sephster commented 2 years ago

PHP 8.0 should be added to the docs. Thanks for spotting this. 8.1 is not fully supported yet as I'm aware of some issues but for the most part, it should work

reindert-vetter commented 2 years ago

Okay. What issues are known with php 8.1? I use that now.

Sephster commented 2 years ago

The scope trait has a deprecation error thrown because we don't have a return type for jsonSerialize. That is the only thing I'm aware of at present so it is minor