Fatal error: Uncaught TypeError: ksort(): Argument #2 ($flags) must be of type int, string given in /in/Iv0Rg:6
Stack trace:
#0 /in/Iv0Rg(6): ksort(Array, 'SORT_LOCALE_STR...')
#1 {main}
thrown in /in/Iv0Rg on line 6
Process exited with code 255.
Output for 7.3.16 - 7.3.33, 7.4.0 - 7.4.33
Warning: ksort() expects parameter 2 to be int, string given in /in/Iv0Rg on line 6
Warning: ksort() expects parameter 2 to be int, string given in /in/Iv0Rg on line 7
array(3) {
["a"]=>
int(1)
["aaa"]=>
int(2)
["aa"]=>
int(3)
}
bool(true)
Warning: ksort() expects parameter 2 to be integer, string given in /in/Iv0Rg on line 6
Warning: ksort() expects parameter 2 to be integer, string given in /in/Iv0Rg on line 7
array(3) {
["a"]=>
int(1)
["aaa"]=>
int(2)
["aa"]=>
int(3)
}
bool(true)
Warning: ksort() expects parameter 2 to be long, string given in /in/Iv0Rg on line 6
Warning: ksort() expects parameter 2 to be long, string given in /in/Iv0Rg on line 7
array(3) {
["a"]=>
int(1)
["aaa"]=>
int(2)
["aa"]=>
int(3)
}
bool(true)