src/ArrayObject.php
protected function forceCollection()
    {
        if (!$this->isCollection()) {
            $this->isCollection = true;
            $this->data = [$this->data];
        }
    }
protected function forceCollection()
    {
        if (!$this->isCollection()) {
            $this->isCollection = true;
            $this->data = [$this->data];
        }
    }
protected function forceCollection ( ) { if ( ! $ this -> isCollection ( ) ) { $ this -> isCollection = true ; $ this -> data = [ $ this -> data ] ; } }
Forces the underlying data-structure to become a collection.
Forces the underlying data - structure to become a collection .