event-store-symfony-bundle icon indicating copy to clipboard operation
event-store-symfony-bundle copied to clipboard

Deprecated callable reference to self in PHP 8.2

Open mkilmanas opened this issue 2 years ago • 0 comments

In PHP 8.2 some formats of callables were deprecated - one of those formats is ['self', 'myMethod'] which is exactly what is used here: https://github.com/prooph/event-store-symfony-bundle/blob/34204bb403b94c1a3c098b1cd137fa68edef66a8/src/Projection/Options/ProjectionOptionsFactory.php#L21-L26

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

Deprecated: Use of "self" in callables is deprecated

mkilmanas avatar Feb 10 '23 12:02 mkilmanas