for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use ByTIC\EventDispatcher\Events\EventInterface;
if (!function_exists('event')) {
/**
* Dispatch an event and call the listeners.
*
* @param EventInterface $event
* @return EventInterface
*/
function event(EventInterface $event)
{
return app('events')->dispatch($event);
app
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
return /** @scrutinizer ignore-call */ app('events')->dispatch($event);
}