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

Feature/php84 compatible #62

Merged
merged 5 commits into from
Dec 9, 2024

Conversation

dmnlk
Copy link
Contributor

@dmnlk dmnlk commented Nov 26, 2024

What

add PHP 8.4 support

https://www.php.net/releases/8.4/en.php

Why

In PHP 8.4, when using default arguments set to null, you are required to specify a type hint that includes either nullable or a union type with null. If this is not specified, a deprecated error will be displayed starting in PHP 8.4. This change is being addressed.
https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated

Additionally, matrix build settings have been added to ensure the project is built across multiple PHP versions.

Closes #64

Type of change

Select multiple if applicable.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause a breaking change)
  • Tests (adds or updates tests)
  • Documentation (adds or updates documentation)
  • Refactor (style improvements, performance improvements, code refactoring)
  • Revert (reverts a commit)
  • CI/Build (adds or updates a script, change in external dependencies)

Dependency Change

If a new dependency is being added, please ensure that it adheres to the following guideline https://github.com/apimatic/apimatic-codegen/wiki/Policy-of-adding-new-dependencies-in-the-core-libraries

Breaking change

If the PR is introducing a breaking change, please ensure that it adheres to the following guideline https://github.com/apimatic/apimatic-codegen/wiki/Guidelines-for-maintaining-core-libraries

Testing

List the steps that were taken to test the changes

Checklist

  • My code follows the coding conventions
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added new unit tests

@dmnlk
Copy link
Contributor Author

dmnlk commented Dec 3, 2024

@asadali214

@asadali214
Copy link
Collaborator

@dmnlk Thanks for mentioning me here, the checks for php version 8.4 are failing, we will have to look into it

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

Copy link

sonarqubecloud bot commented Dec 5, 2024

@dmnlk
Copy link
Contributor Author

dmnlk commented Dec 5, 2024

@asadali214 i fixed lockfile and test code

@asadali214 asadali214 self-requested a review December 6, 2024 11:02
Copy link
Collaborator

@asadali214 asadali214 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes looks good to me!

@dmnlk thanks for contributing to apimatic/core-lib-php

@asadali214 asadali214 merged commit daa26e4 into apimatic:master Dec 9, 2024
14 checks passed
asadali214 added a commit that referenced this pull request Dec 9, 2024
This commit adds support for PHP 8.3 in CI/CD pipeline and PHP 8.4 support in all areas

Co-authored-by: Asad Ali <[email protected]>
@dmnlk dmnlk deleted the feature/php84-compatible branch December 9, 2024 06:50
asadali214 added a commit that referenced this pull request Dec 9, 2024
This commit adds support for PHP 8.3 in CI/CD pipeline and PHP 8.4 support in all areas

Co-authored-by: Asad Ali <[email protected]>
Signed-off-by: Asad Ali <[email protected]>
@asadali214
Copy link
Collaborator

Hey @dmnlk your changes are deployed to production: https://github.com/apimatic/core-lib-php/releases/tag/0.3.12

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.

Add support for PHP 8.3 and PHP 8.4
2 participants