KnpLabs / DoctrineBehaviors

Doctrine2 behavior traits that help handling Blameable, Loggable, Sluggable, SoftDeletable, Uuidable, Timestampable, Translatable, Tree behavior
http://knplabs.com
MIT License
913 stars 293 forks source link

Update BlameableEventSubscriber.php #680

Closed FabienPapet closed 2 years ago

FabienPapet commented 2 years ago

👋

This PR fixes deprecation on doctrine bundle.

1x: Method "Doctrine\Common\EventSubscriber::getSubscribedEvents()" might add "array" as a native return type declaration in the future. Do the same in implementation "Knp\DoctrineBehaviors\EventSubscriber\BlameableEventSubscriber" now to avoid errors or add an explicit @return annotation to suppress this message.

Please let me know if I missed something, I'd be glad to help.

TomasVotruba commented 2 years ago

Thank you :+1: