diff --git a/src/commands/loadPHPStanConfig.ts b/src/commands/loadPHPStanConfig.ts index 0689fea..42f033f 100644 --- a/src/commands/loadPHPStanConfig.ts +++ b/src/commands/loadPHPStanConfig.ts @@ -1,12 +1,10 @@ import { Ext } from "../extension"; import { parsePHPStanConfigFile } from "../utils/phpstan"; -import { normalize } from "path"; export default async function loadPHPStanConfig(ext: Ext) { if (!ext.store.phpstan.configPath) throw new Error("Config path is required"); const config = await parsePHPStanConfigFile(ext.store.phpstan.configPath, { currentWorkingDirectory: ext.cwd, - rootDir: normalize(ext.settings.path), }); ext.log({ tag: "config", message: JSON.stringify(config, null, 2) }); return config; diff --git a/src/utils/phpstan.ts b/src/utils/phpstan.ts index 4737f50..9f4c74b 100644 --- a/src/utils/phpstan.ts +++ b/src/utils/phpstan.ts @@ -29,7 +29,6 @@ export type PHPStanConfig = { }; export type PHPStanConfigEnv = { - rootDir: string; currentWorkingDirectory: string; };