Symfony Exception

TypeError

HTTP 500 Internal Server Error

Symfony\Component\VarDumper\Server\Connection::__construct(): Argument #1 ($host) must be of type string, null given, called in /home/lang50/public_html/vendor/beyondcode/laravel-dump-server/src/DumpServerServiceProvider.php on line 49

Exception

TypeError

  1.     /**
  2.      * @param string                     $host             The server host
  3.      * @param ContextProviderInterface[] $contextProviders Context providers indexed by context name
  4.      */
  5.     public function __construct(string $host, array $contextProviders = [])
  6.     {
  7.         if (!str_contains($host'://')) {
  8.             $host 'tcp://'.$host;
  9.         }
  1.         $this->app->when(DumpServer::class)->needs('$host')->give($host);
  2.         $connection = new Connection($host, [
  3.             'request' => new RequestContextProvider($this->app['request']),
  4.             'source' => new SourceContextProvider('utf-8'base_path()),
  5.         ]);
  6.         VarDumper::setHandler(function ($var) use ($connection) {
  7.             $this->app->makeWith(Dumper::class, ['connection' => $connection])->dump($var);
  8.         });
  1.         // a more convenient way of specifying your service provider classes.
  2.         if (is_string($provider)) {
  3.             $provider $this->resolveProvider($provider);
  4.         }
  5.         $provider->register();
  6.         // If there are bindings / singletons set as properties on the provider we
  7.         // will spin through them and register them with the application, which
  8.         // serves as a convenience layer while registering a lot of bindings.
  9.         if (property_exists($provider'bindings')) {
  1.         // We will go ahead and register all of the eagerly loaded providers with the
  2.         // application so their services can be registered with the application as
  3.         // a provided service. Then we will set the deferred service list on it.
  4.         foreach ($manifest['eager'] as $provider) {
  5.             $this->app->register($provider);
  6.         }
  7.         $this->app->addDeferredServices($manifest['deferred']);
  8.     }
  1.                         ->partition(fn ($provider) => str_starts_with($provider'Illuminate\\'));
  2.         $providers->splice(10, [$this->make(PackageManifest::class)->providers()]);
  3.         (new ProviderRepository($this, new Filesystem$this->getCachedServicesPath()))
  4.                     ->load($providers->collapse()->toArray());
  5.     }
  6.     /**
  7.      * Register a service provider with the application.
  8.      *
  1.      * @param  \Illuminate\Contracts\Foundation\Application  $app
  2.      * @return void
  3.      */
  4.     public function bootstrap(Application $app)
  5.     {
  6.         $app->registerConfiguredProviders();
  7.     }
  8. }
  1.         $this->hasBeenBootstrapped true;
  2.         foreach ($bootstrappers as $bootstrapper) {
  3.             $this['events']->dispatch('bootstrapping: '.$bootstrapper, [$this]);
  4.             $this->make($bootstrapper)->bootstrap($this);
  5.             $this['events']->dispatch('bootstrapped: '.$bootstrapper, [$this]);
  6.         }
  7.     }
  1.      * @return void
  2.      */
  3.     public function bootstrap()
  4.     {
  5.         if (! $this->app->hasBeenBootstrapped()) {
  6.             $this->app->bootstrapWith($this->bootstrappers());
  7.         }
  8.     }
  9.     /**
  10.      * Get the route dispatcher callback.
  1.     {
  2.         $this->app->instance('request'$request);
  3.         Facade::clearResolvedInstance('request');
  4.         $this->bootstrap();
  5.         return (new Pipeline($this->app))
  6.                     ->send($request)
  7.                     ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
  8.                     ->then($this->dispatchToRouter());
  1.         $this->requestStartedAt Carbon::now();
  2.         try {
  3.             $request->enableHttpMethodParameterOverride();
  4.             $response $this->sendRequestThroughRouter($request);
  5.         } catch (Throwable $e) {
  6.             $this->reportException($e);
  7.             $response $this->renderException($request$e);
  8.         }
Kernel->handle() in /home/lang50/public_html/public/index.php (line 61)
  1. */
  2. $kernel $app->make(Illuminate\Contracts\Http\Kernel::class);
  3. $response $kernel->handle(
  4.     $request Illuminate\Http\Request::capture()
  5. );
  6. $response->send();
  7. $kernel->terminate($request$response);

Stack Trace

TypeError
TypeError:
Symfony\Component\VarDumper\Server\Connection::__construct(): Argument #1 ($host) must be of type string, null given, called in /home/lang50/public_html/vendor/beyondcode/laravel-dump-server/src/DumpServerServiceProvider.php on line 49

  at /home/lang50/public_html/vendor/symfony/var-dumper/Server/Connection.php:36
  at Symfony\Component\VarDumper\Server\Connection->__construct()
     (/home/lang50/public_html/vendor/beyondcode/laravel-dump-server/src/DumpServerServiceProvider.php:49)
  at BeyondCode\DumpServer\DumpServerServiceProvider->register()
     (/home/lang50/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:687)
  at Illuminate\Foundation\Application->register()
     (/home/lang50/public_html/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:75)
  at Illuminate\Foundation\ProviderRepository->load()
     (/home/lang50/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:664)
  at Illuminate\Foundation\Application->registerConfiguredProviders()
     (/home/lang50/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php:17)
  at Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap()
     (/home/lang50/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:242)
  at Illuminate\Foundation\Application->bootstrapWith()
     (/home/lang50/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176)
  at Illuminate\Foundation\Http\Kernel->bootstrap()
     (/home/lang50/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:160)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
     (/home/lang50/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:134)
  at Illuminate\Foundation\Http\Kernel->handle()
     (/home/lang50/public_html/public/index.php:61)