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 support for thecodingmachine/safe 2.4 #948 #961

Merged
merged 3 commits into from
Jan 13, 2023
Merged

Conversation

tranvantri
Copy link
Contributor

@tranvantri tranvantri commented Dec 29, 2022

#948
Hi @mfn,

Could you please review this PR ?

Many thanks.

@mfn
Copy link
Collaborator

mfn commented Jan 4, 2023

I had to remove it some time ago, see 0c52f7c

AFAICS, this still persists? Please check this failed workflow; there are a LOT of errors/noise so I'm talking specifically about this one https://github.com/rebing/graphql-laravel/actions/runs/3801830745/jobs/6537599565#step:8:11

Error: Function Safe\uksort not found.

Do you have any idea how to handle this?

@tranvantri
Copy link
Contributor Author

Hi @mfn,

I added a function to check the compatible ability to use thecodingmachine/safe and checked it on PHP 7.4 and 8.1.

Could you please review this PR?

Many thanks.

@mfn
Copy link
Collaborator

mfn commented Jan 6, 2023

@tranvantri tranvantri force-pushed the master branch 6 times, most recently from 35bad12 to 14497f5 Compare January 7, 2023 14:08
@tranvantri tranvantri changed the title Add support for thecodingmachine/safe 2.0 #948 Add support for thecodingmachine/safe 2.4 #948 Jan 7, 2023
Copy link
Collaborator

@mfn mfn left a comment

Choose a reason for hiding this comment

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

Nice, seems to work: all tests are green now!


Not fond of the change itself, but I guess there's no other way than a runtime check?

@tranvantri
Copy link
Contributor Author

Hi @mfn,

I apologize for my inconvenience. Could you please review this PR?

Many thanks.

@tranvantri
Copy link
Contributor Author

Nice, seems to work: all tests are green now!

Not fond of the change itself, but I guess there's no other way than a runtime check?

If we support both php version 7 and 8, then I think we can only check it on runtime. Another way is we will copy the \Safe\uksort into our Helpers and let us handle ourself.

Copy link
Collaborator

@mfn mfn left a comment

Choose a reason for hiding this comment

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

Copying code over doesn't sound that much better 😔

Let's do it as suggested; we can remove it in the future once we drop 7.4 (no TTL yet)

@mfn mfn merged commit 9810d2f into rebing:master Jan 13, 2023
@mfn
Copy link
Collaborator

mfn commented Jan 13, 2023

Released as 8.5.0

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