__VSCODE_LARAVEL_START_OUTPUT__
foreach ([ base_path('phpunit.xml'), base_path('phpunit.xml.dist'), ] as $path) { if (File::exists($path)) { return (new XmlConfigurationLoader)->load($path); } } return null; } /** * @return array<int, array{name: string, directories: array<int, string>, files: array<int, string>}> */ protected function getTestSuites(): array { if (is_null($config = $this->loadConfig())) { return [[ 'name' => 'default', 'directories' => [base_path('tests')], 'files' => $this->findTestFiles(base_path('tests')), ]]; if ($this->isPestInstalled()) { $this->bootPest(); } return collect( $this->getTestSuites() )->map(fn ($suite) => [ 'name' => $suite['name'], 'files' => collect(array_merge( $this->collectPhpUnitTests($suite['files']), $this->collectPestTests($suite['files']), return str_starts_with($method->getName(), 'test') || $method->getAttributes(Test::class) !== []; }};echo json_encode($tests->all());echo LaravelVsCode::outputMarker('END_OUTPUT');exit(0);|
TypeError
|
|---|
TypeError:
class@anonymous::loadConfig(): Return value must be of type ?PHPUnit\TextUI\XmlConfiguration\LoadedFromFileConfiguration, PHPUnit\TextUI\XmlConfiguration\Configuration returned
at /home/ldxcpnl/public_html/vendor/_laravel_ide/discover-4dd8aa2c89a79640c26a5af93ae899b1.php:182
at class@anonymous /home/ldxcpnl/public_html/vendor/_laravel_ide/discover-4dd8aa2c89a79640c26a5af93ae899b1.php:79$1->loadConfig()
(/home/ldxcpnl/public_html/vendor/_laravel_ide/discover-4dd8aa2c89a79640c26a5af93ae899b1.php:144)
at class@anonymous /home/ldxcpnl/public_html/vendor/_laravel_ide/discover-4dd8aa2c89a79640c26a5af93ae899b1.php:79$1->getTestSuites()
(/home/ldxcpnl/public_html/vendor/_laravel_ide/discover-4dd8aa2c89a79640c26a5af93ae899b1.php:91)
at class@anonymous /home/ldxcpnl/public_html/vendor/_laravel_ide/discover-4dd8aa2c89a79640c26a5af93ae899b1.php:79$1->all()
(/home/ldxcpnl/public_html/vendor/_laravel_ide/discover-4dd8aa2c89a79640c26a5af93ae899b1.php:310)
|