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

Deprecated callable reference to self in PHP 8.2 #92

Closed
mkilmanas opened this issue Feb 10, 2023 · 1 comment
Closed

Deprecated callable reference to self in PHP 8.2 #92

mkilmanas opened this issue Feb 10, 2023 · 1 comment

Comments

@mkilmanas
Copy link
Contributor

In PHP 8.2 some formats of callables were deprecated - one of those formats is ['self', 'myMethod'] which is exactly what is used here:

public static function createProjectionOptions(array $config): ProjectionOptions
{
\array_walk($config, ['self', 'mapOptions']);
return new ProjectionOptions($config);
}

This raises a deprecation warning when running this code on PHP 8.2:

Deprecated: Use of "self" in callables is deprecated
@unixslayer
Copy link
Member

@mkilmanas solved in #94

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

No branches or pull requests

2 participants