Library/Variable.php
public function setDynamicTypes($types)
    {
        if ($types) {
            unset($this->dynamicTypes['unknown']);

            if (\is_string($types)) {
                if (!isset($this->dynamicTypes[$types])) {
                    $this->dynamicTypes[$types] = true;
                }
            } else {
                foreach ($types as $type => $one) {
                    if (!isset($this->dynamicTypes[$one])) {
                        $this->dynamicTypes[$one] = true;
                    }
                }
            }
        }
    }
public function setDynamicTypes($types)
    {
        if ($types) {
            unset($this->dynamicTypes['unknown']);

            if (\is_string($types)) {
                if (!isset($this->dynamicTypes[$types])) {
                    $this->dynamicTypes[$types] = true;
                }
            } else {
                foreach ($types as $type => $one) {
                    if (!isset($this->dynamicTypes[$one])) {
                        $this->dynamicTypes[$one] = true;
                    }
                }
            }
        }
    }
public function setDynamicTypes ( $ types ) { if ( $ types ) { unset ( $ this -> dynamicTypes [ 'unknown' ] ) ; if ( \ is_string ( $ types ) ) { if ( ! isset ( $ this -> dynamicTypes [ $ types ] ) ) { $ this -> dynamicTypes [ $ types ] = true ; } } else { foreach ( $ types as $ type => $ one ) { if ( ! isset ( $ this -> dynamicTypes [ $ one ] ) ) { $ this -> dynamicTypes [ $ one ] = true ; } } } } }
Sets the current dynamic type in a polymorphic variable.

@param array|string $types
Sets the current dynamic type in a polymorphic variable .