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

fix: Remove PHP 8.0 syntax to maintain PHP 7.4 compatibility #19

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

oatmael
Copy link
Contributor

@oatmael oatmael commented Jun 30, 2024

Union return types are not supported in PHP 7.4. Thankfully, T|null is equivalent to ?T. See below:
https://www.php.net/manual/en/language.types.declarations.php#language.types.declarations.nullable

@oatmael oatmael changed the title Remove PHP 8.0 syntax to maintain PHP 7.4 compatibility fix: Remove PHP 8.0 syntax to maintain PHP 7.4 compatibility Jun 30, 2024
@mhmd-azeez mhmd-azeez self-requested a review June 30, 2024 12:45
Copy link
Contributor

@mhmd-azeez mhmd-azeez left a comment

Choose a reason for hiding this comment

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

Looks great, thanks! the CI is failing because of an unrelated issue. I have fixed the issue in #20. Will merge this PR once #20 is merged

@mhmd-azeez
Copy link
Contributor

Now that #20 is merged, @oatmael can you please rebase/merge the changes into your branch?

@oatmael
Copy link
Contributor Author

oatmael commented Jul 1, 2024

Now that #20 is merged, @oatmael can you please rebase/merge the changes into your branch?

Done 👍

@oatmael
Copy link
Contributor Author

oatmael commented Jul 3, 2024

@mhmd-azeez poking on this - looks like the CI failed from a rate limit 😅

@mhmd-azeez
Copy link
Contributor

Thanks a bunch, great work!

@mhmd-azeez mhmd-azeez merged commit 6ab7293 into extism:main Jul 3, 2024
2 checks passed
@oatmael oatmael deleted the bugfix/php-7.4 branch July 3, 2024 08:38
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