Skip to content

GenericEvent stopPropagation() method is deprecated #278

@phil-davis

Description

@phil-davis

in Symfony4

[debug] Running '/usr/bin/php7.3' '-n' '-c' '/tmp/SQ8qlM' 'vendor-bin/phan/vendor/bin/phan' '--config-file' '.phan/config.php' '--require-config-exists'
lib/HooksHandler.php:141 PhanDeprecatedFunction Call to deprecated function \Symfony\Component\EventDispatcher\GenericEvent::stopPropagation() defined at ../../lib/composer/symfony/event-dispatcher/Event.php:34
[debug] Restarted process exited 1
Makefile:134: recipe for target 'test-php-phan' failed
make: *** [test-php-phan] Error 1

See lib/HooksHandler.php generatePassword()

	public function generatePassword(GenericEvent $event) {
		$this->fixDI();
		$event['password'] = $this->engine->generatePassword();
		/* ToDo: issue 278 - deprecated since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead */
		/* @phan-suppress-next-line PhanDeprecatedFunction */
		$event->stopPropagation();
	}

The phan message has been suppressed.

This will need to be fixed "some time" before Symfony5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions