src/Carbon/CarbonPeriod.php
protected function handleChangedParameters()
    {
        if (($this->getOptions() & static::IMMUTABLE) && $this->dateClass === Carbon::class) {
            $this->setDateClass(CarbonImmutable::class);
        } elseif (!($this->getOptions() & static::IMMUTABLE) && $this->dateClass === CarbonImmutable::class) {
            $this->setDateClass(Carbon::class);
        }

        $this->validationResult = null;
    }
protected function handleChangedParameters()
    {
        if (($this->getOptions() & static::IMMUTABLE) && $this->dateClass === Carbon::class) {
            $this->setDateClass(CarbonImmutable::class);
        } elseif (!($this->getOptions() & static::IMMUTABLE) && $this->dateClass === CarbonImmutable::class) {
            $this->setDateClass(Carbon::class);
        }

        $this->validationResult = null;
    }
protected function handleChangedParameters ( ) { if ( ( $ this -> getOptions ( ) & static :: IMMUTABLE ) && $ this -> dateClass === Carbon :: class ) { $ this -> setDateClass ( CarbonImmutable :: class ) ; } elseif ( ! ( $ this -> getOptions ( ) & static :: IMMUTABLE ) && $ this -> dateClass === CarbonImmutable :: class ) { $ this -> setDateClass ( Carbon :: class ) ; } $ this -> validationResult = null ; }
Handle change of the parameters.
Handle change of the parameters .