src/Core/Config/Config.php
public static function modify()
    {
        $instance = static::inst();
        if ($instance instanceof MutableConfigCollectionInterface) {
            return $instance;
        }

        // By default nested configs should become mutable
        $instance = static::nest();
        if ($instance instanceof MutableConfigCollectionInterface) {
            return $instance;
        }

        throw new InvalidArgumentException("Nested config could not be made mutable");
    }
public static function modify()
    {
        $instance = static::inst();
        if ($instance instanceof MutableConfigCollectionInterface) {
            return $instance;
        }

        // By default nested configs should become mutable
        $instance = static::nest();
        if ($instance instanceof MutableConfigCollectionInterface) {
            return $instance;
        }

        throw new InvalidArgumentException("Nested config could not be made mutable");
    }
public static function modify ( ) { $ instance = static :: inst ( ) ; if ( $ instance instanceof MutableConfigCollectionInterface ) { return $ instance ; } // By default nested configs should become mutable $ instance = static :: nest ( ) ; if ( $ instance instanceof MutableConfigCollectionInterface ) { return $ instance ; } throw new InvalidArgumentException ( "Nested config could not be made mutable" ) ; }
Make this config available to be modified

@return MutableConfigCollectionInterface
Make this config available to be modified