Skip to content

Commit

Permalink
chore: remove the redundant output from php-parse stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
rainx committed Jan 8, 2024
1 parent d9fd144 commit 852d55a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/php-parser/helpers/cli-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ export class CliHelpers {
): NodeTypeInheritingFromNodeAbstract[] {
const parserOutputString = execSync(
`${PHP_PARSER_BINARY} ${phpFilePath} -j`,
{ encoding: 'utf-8', maxBuffer: MAX_BUFFER_SIZE_FOR_PHP_BINARY_OUTPUT },
{
encoding: 'utf-8',
maxBuffer: MAX_BUFFER_SIZE_FOR_PHP_BINARY_OUTPUT,
stdio: ['pipe', 'pipe', 'ignore'],
},
);
return JSON.parse(
parserOutputString,
Expand Down

0 comments on commit 852d55a

Please sign in to comment.