-
-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
array_multisort does not sort #104
Comments
Hey @dmecke ! I just wrote a unit test to try to reproduce your problem, but I fail reproducing it. The code you give seems to work OK with Safe and without Safe. Are you sure there is an issue? Could it be dependent on the PHP version (I'm testing with PHP 7.2) |
Hm, yes, I just reproced it on my machine with php 7.2. I'd like to open a pull request, but I am not sure where this test should go. Is the |
A PR with a test would be nice! You can add a test in https://github.com/thecodingmachine/safe/blob/master/generator/tests/GeneratedFilesTest.php The Contributing guide explains how to run the tests. |
I've created a pull request. I think travis fails because of this (so the reproduction works), but I am not sure if the error below is related to a misconfiguration on my side. |
this function was removed in #167 |
This functiun was removed in the v1.0.0 release |
Given the following phpunit test case:
it passes with php's native
array_mulitsort
. UsingSafe\array_multisort
it fails, though. The array$integers
is left unchanged. In the documentation (and therefore in safe) the third parameter is not a reference while php actually treats it as one.The text was updated successfully, but these errors were encountered: