Option::PHP_8_0, // use the current working directory Option::OUTPUT_DIR => __DIR__ . '/generated', // pass files as command arguments Option::FILES => [__DIR__ . '/vendor/php-stubs/woocommerce-stubs/woocommerce-packages-stubs.php', __DIR__ . '/vendor/php-stubs/woocommerce-stubs/woocommerce-stubs.php'], Option::PREFER_PHP_VERSION => ParserFactory::PREFER_PHP7, ];