prooph / event-store-symfony-bundle

Event Store Symfony Bundle
http://getprooph.org/
BSD 3-Clause "New" or "Revised" License
109 stars 39 forks source link

Deprecated callable reference to self in PHP 8.2 #92

Closed mkilmanas closed 4 months ago

mkilmanas commented 1 year ago

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
unixslayer commented 4 months ago

@mkilmanas solved in #94