src/DS/Traits/TraitSequence.php
public function find($value): ?int
    {
        $founded = $this->items->find($value);

        if (false === $founded) {
            return null;
        }

        return (int) $founded;
    }
public function find($value): ?int
    {
        $founded = $this->items->find($value);

        if (false === $founded) {
            return null;
        }

        return (int) $founded;
    }
public function find ( $ value ) : ? int { $ founded = $ this -> items -> find ( $ value ) ; if ( false === $ founded ) { return null ; } return ( int ) $ founded ; }
Returns the index of a given value, or null if it could not be found.

@param mixed $value

@return int|null
Returns the index of a given value or null if it could not be found .