src/Standards/BestIt/Sniffs/DocTags/ReturnTagSniff.php
private function checkForMixedType(string $type): self
    {
        if (strtolower($type) === 'mixed') {
            throw (new CodeWarning(static::CODE_MIXED_TYPE, self::MESSAGE_MIXED_TYPE, $this->stackPos))
                ->setToken($this->token);
        }

        return $this;
    }
private function checkForMixedType(string $type): self
    {
        if (strtolower($type) === 'mixed') {
            throw (new CodeWarning(static::CODE_MIXED_TYPE, self::MESSAGE_MIXED_TYPE, $this->stackPos))
                ->setToken($this->token);
        }

        return $this;
    }
private function checkForMixedType ( string $ type ) : self { if ( strtolower ( $ type ) === 'mixed' ) { throw ( new CodeWarning ( static :: CODE_MIXED_TYPE , self :: MESSAGE_MIXED_TYPE , $ this -> stackPos ) ) -> setToken ( $ this -> token ) ; } return $ this ; }
Throws a warning if you declare a mixed type.

@param string $type
@throws CodeWarning

@return $this
Throws a warning if you declare a mixed type .