src/Loader.php
public function add(HookInterface ...$hooks): void
    {
        $this->hooks = array_values(
            array_unique(
                array_merge($this->hooks, $hooks),
                SORT_REGULAR
            )
        );
    }
public function add(HookInterface ...$hooks): void
    {
        $this->hooks = array_values(
            array_unique(
                array_merge($this->hooks, $hooks),
                SORT_REGULAR
            )
        );
    }
public function add ( HookInterface ... $ hooks ) : void { $ this -> hooks = array_values ( array_unique ( array_merge ( $ this -> hooks , $ hooks ) , SORT_REGULAR ) ) ; }
Add new hooks to the collection to be registered with WordPress.

@param HookInterface|HookInterface[] ...$hooks Hooks to be registered.

@return void
Add new hooks to the collection to be registered with WordPress .