mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-27 00:55:01 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -11,8 +11,6 @@ declare(strict_types=1);
|
||||
|
||||
namespace Chill\MainBundle\Templating\Events;
|
||||
|
||||
use ArrayAccess;
|
||||
use RuntimeException;
|
||||
use Symfony\Component\EventDispatcher\Event;
|
||||
|
||||
/**
|
||||
@@ -30,7 +28,7 @@ use Symfony\Component\EventDispatcher\Event;
|
||||
* The keys are read-only: if you try to update the context using array access
|
||||
* (example, using `$event['context_key'] = $bar;`, an error will be thrown.
|
||||
*/
|
||||
class DelegatedBlockRenderingEvent extends \Symfony\Contracts\EventDispatcher\Event implements ArrayAccess
|
||||
class DelegatedBlockRenderingEvent extends \Symfony\Contracts\EventDispatcher\Event implements \ArrayAccess
|
||||
{
|
||||
/**
|
||||
* The returned content of the event.
|
||||
@@ -82,13 +80,11 @@ class DelegatedBlockRenderingEvent extends \Symfony\Contracts\EventDispatcher\Ev
|
||||
|
||||
public function offsetSet($offset, $value): never
|
||||
{
|
||||
throw new RuntimeException('The event context is read-only, you are not '
|
||||
. 'allowed to update it.');
|
||||
throw new \RuntimeException('The event context is read-only, you are not allowed to update it.');
|
||||
}
|
||||
|
||||
public function offsetUnset($offset): never
|
||||
{
|
||||
throw new RuntimeException('The event context is read-only, you are not '
|
||||
. 'allowed to update it.');
|
||||
throw new \RuntimeException('The event context is read-only, you are not allowed to update it.');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user