thephpleague / oauth2-server

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

Update the Param Type on the Validate Scopes Method #1313

Closed chrisguitarguy closed 1 year ago

chrisguitarguy commented 1 year ago

validateScopes does accept and handle null values.

Hit this while writing a new grant type and PHPStan complained. Since validateScopes does handle null appropriately, just updating the type in PHPDoc

Sephster commented 1 year ago

Thanks for this. I've fixed it in the PHP 8 compat branch but happy to merge in early here. Thanks for spotting this and submitting a PR