dirname($path), json_decode( $filesystem->get($path), true ) ); } public static function buildProjectConfig(string $path, Filesystem $filesystem): ProjectConfig { return new ProjectConfig( $filesystem->dirname($path), json_decode( $filesystem->get($path), true ) ); } }