-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
Conversation
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
Do you have any idea how to handle this? |
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. |
|
35bad12
to
14497f5
Compare
There was a problem hiding this 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?
Hi @mfn, I apologize for my inconvenience. Could you please review this PR? Many thanks. |
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. |
There was a problem hiding this 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)
#948
Hi @mfn,
Could you please review this PR ?
Many thanks.