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: fix FFI deprecation warnings #12

Merged
merged 6 commits into from
Jan 23, 2024
Merged

fix: fix FFI deprecation warnings #12

merged 6 commits into from
Jan 23, 2024

Conversation

mhmd-azeez
Copy link
Contributor

@mhmd-azeez mhmd-azeez commented Jan 23, 2024

Related to #8

Calling FFI::cast(), FFI::new(), and FFI::type() statically is now deprecated.

-- PHP 8.3 Migration docs

We are only calling FFI::new statically (versus calling it on an instance of FFI) in a couple of places, this PR fixes that. I have also added --display-deprecations to phpunit and it shows no warnings now

@mhmd-azeez mhmd-azeez changed the title fix: don't call FFI::new statically fix: fix FFI deprecation warnings Jan 23, 2024
@mhmd-azeez mhmd-azeez merged commit b7a60b9 into main Jan 23, 2024
2 checks passed
@mhmd-azeez mhmd-azeez deleted the fix/ffi-deprecation branch January 23, 2024 19:14
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