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

add (return) type hints to overriden methods #26

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

RobertMe
Copy link
Contributor

Symfony logs deprecations for overriden methods when the signature doesn't match that of the parent (based on both actual typehints or PHPDoc). So this fixes these deprecations. This also makes the code "forward" compatible for when the base class (/package) does actually add these typehints.

Symfony logs deprecations for overriden methods when the signature
doesn't match that of the parent (based on both actual typehints or
PHPDoc). So this fixes these deprecations. This also makes the code
"forward" compatible for when the base class (/package) does actually
add these typehints.
@RobertMe
Copy link
Contributor Author

@arietimmerman could you please have a look at this? 😄 This is about the only thing which is still giving me deprecation messages using Symfony.

@arietimmerman arietimmerman merged commit ea20f8f into limosa-io:master Nov 27, 2023
1 check passed
@arietimmerman
Copy link
Collaborator

Looks good. Thanks

karlatascent added a commit to Ascent-Software-Group/openid-connect-server that referenced this pull request Jan 3, 2024
* Provide a default empty string value for nonce (limosa-io#11)

Recent PHP versions emit an error on the subsequent call to strlen() if
the nonce value is null.

* ImplicitGrant forgot to fill scopes (limosa-io#12)

* Emit event when id token is populated (limosa-io#16)

* Replace bogus identifier with configuration option (limosa-io#17)

* Replace bogus identifier with configuration option
* Fix emitting TOKEN_POPULATED event from AuthCodeGrant

* Fix unit tests (limosa-io#18)

* Fix failure after limosa-io#17
* Fix some PHP 8 deprecations because of missing values

* Use the Session service for the implicit grant (limosa-io#19)

* Enable CI workflow for pull requests (limosa-io#20)

Should prevent merging PRs with failing unit tests :)

* Improve ResponseHandler (limosa-io#24)

* Don't continue checking handler when one (/first) matches
* Fix "Undefined variable $response" error when no handler matched

* Harden AuthCodeGrant::canRespondToAccessTokenRequest (limosa-io#25)

* Skip (additional) checks when grant_type isn't even authorization_code
* Simplify check whether code request parameter is present
* Handle exception when code can't be decrypted (for example when
  sending empty value, or any value which isn't properly encrypted)
* Add check whether decoded token contains scopes (to prevent undefined
  variable error when it isn't)

* Store claims for implicit flow (limosa-io#23)

* Feat update packages (limosa-io#28)

Upgraded dependencies lcobucci/jwt and league/oauth2-server

* Formatting and warning fixes (limosa-io#29)

* documentation update (limosa-io#30)

* add (return) type hints to overriden methods (limosa-io#26)

---------

Co-authored-by: flh <[email protected]>
Co-authored-by: Robert Meijers <[email protected]>
Co-authored-by: Robert Meijers <[email protected]>
Co-authored-by: Oluwatobi Samuel Omisakin <[email protected]>
Co-authored-by: Arie Timmerman <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants