Problem/Motivation
In Symfony 5, symfony/event-dispatcher-contracts has been bumped from v1 to v2 and return types have been added to isPropagationStopped() and stopPropagation().
Steps to reproduce
See #3161889: [META] Symfony 6 compatibility
Proposed resolution
Add return type hints to Drupal\Core\File\Event\FileUploadSanitizeNameEvent as this is the only class in core that implements one of these methods.
Remaining tasks
User interface changes
API changes
Anything that subclass Drupal\Core\File\Event\FileUploadSanitizeNameEvent and further modifies the method will also need to add a typehint, but this seems very unlikely.
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3209239.patch | 665 bytes | longwave |
Comments
Comment #2
longwaveComment #3
longwaveAs this only affects one component.
Comment #4
andypostThe class is new so should not have usages
Comment #5
catchCommitted 4feff07 and pushed to 9.2.x. Thanks!