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

Deprecation : passing null to parameter #2 ($flags) of type int is deprecated for ksort #443

Open
monnardj opened this issue Dec 20, 2024 · 0 comments

Comments

@monnardj
Copy link

In php 8.1, the $flags argument for function ksort can no longer be null. In /local/kaltura/API/KalturaClientBase.php, line 442, this function is called with the $flags argument having the value null. This produces the following warning :

Deprecated: ksort(): Passing null to parameter #2 ($flags) of type int is deprecated in .../KalturaClientBase.php on line 442

In future versions of php, this warning might become a fatal error. The code should be modified so that $flags is never null. The $flags parameter could be removed from ksortRecursive, and ksort will use the default value SORT_REGULAR (see https://www.php.net/manual/en/function.ksort.php).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant