Util.php
public static function getComposerJsonFileAndManipulator(): array
    {
        $json        = new JsonFile(Factory::getComposerFile());
        $manipulator = new JsonManipulator(\file_get_contents($json->getPath()));

        return [$json, $manipulator];
    }
public static function getComposerJsonFileAndManipulator(): array
    {
        $json        = new JsonFile(Factory::getComposerFile());
        $manipulator = new JsonManipulator(\file_get_contents($json->getPath()));

        return [$json, $manipulator];
    }
public static function getComposerJsonFileAndManipulator ( ) : array { $ json = new JsonFile ( Factory :: getComposerFile ( ) ) ; $ manipulator = new JsonManipulator ( \ file_get_contents ( $ json -> getPath ( ) ) ) ; return [ $ json , $ manipulator ] ; }
Return the composer json file and json manipulator.

@throws \InvalidArgumentException

@return array
Return the composer json file and json manipulator .