Issue #3209239 by longwave: [Symfony 5] Symfony\Contracts\EventDispatcher\Event subclasses need return types

merge-requests/521/head
catch 2021-04-19 09:54:45 +01:00
parent 528f18782f
commit 4feff0747d
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ class FileUploadSanitizeNameEvent extends Event {
*
* @see \Drupal\system\EventSubscriber\SecurityFileUploadEventSubscriber
*/
public function stopPropagation() {
public function stopPropagation(): void {
throw new \RuntimeException('Propagation cannot be stopped for the FileUploadSanitizeNameEvent');
}