for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Spiral\Events\Interceptor;
use Psr\EventDispatcher\EventDispatcherInterface;
use Spiral\Core\CoreInterface;
use Spiral\Interceptors\Context\CallContext;
use Spiral\Interceptors\HandlerInterface;
/**
* @psalm-type TParameters = array{event: object}
*/
final class Core implements CoreInterface, HandlerInterface
Spiral\Core\CoreInterface
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
ignore-deprecated
final class Core implements /** @scrutinizer ignore-deprecated */ CoreInterface, HandlerInterface
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.
{
public function __construct(
private readonly EventDispatcherInterface $dispatcher
) {
}
* @param string $controller event name
* @param-assert TParameters $parameters
public function callAction(string $controller, string $action, array $parameters = []): object
\assert(\is_object($parameters['event']));
return $this->dispatcher->dispatch($parameters['event']);
public function handle(CallContext $context): mixed
return $this->dispatcher->dispatch($context->getArguments()['event']);
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.