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

Codebase improvements with php 8.1 features #548

Merged
merged 39 commits into from
Feb 6, 2023
Merged

Codebase improvements with php 8.1 features #548

merged 39 commits into from
Feb 6, 2023

Conversation

l-you
Copy link
Contributor

@l-you l-you commented Jan 21, 2023

Commit 7953638 allows us to use all range of php 8.1 features.
I tried to improve some code.

There is list of changes:

  • convert switch to match syntax
  • final keyword for internal classes
  • add readonly modifier to private class properties
  • replace phpdoc intersection type (e.g. GraphQLType&OutputType ) with native. (Can be BREAKING for some specific external usage)
  • bump phpstan version. Version 1.9 contains fixes for php 8.1 such as PHP 8.1 Readonly property cannot have a default value phpstan/phpstan#5906

l-you and others added 30 commits October 21, 2022 16:49
Remove support for PHP 8.0 test matrix
…ection types (OutputType&Type), new functions (str_starts_with,str_ends_with)
@l-you
Copy link
Contributor Author

l-you commented Jan 21, 2023

@oojacoboo Is doc generation failed due to auto bumping @docusaurus/preset-classic in #539 ?

@oojacoboo
Copy link
Collaborator

@bladl I've updated docusaurus. Please try merging origin into your fork.

@l-you
Copy link
Contributor Author

l-you commented Jan 25, 2023

@oojacoboo now all checks are passed. Please, review a PR

@oojacoboo oojacoboo merged commit f4016bf into thecodingmachine:master Feb 6, 2023
@oojacoboo
Copy link
Collaborator

@bladl thanks for this - merged in!

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