spiral/framework

Request must not be accessed before initialization

msmakouz opened this issue · 0 comments

Description

Error: Typed property Spiral\\Debug\\StateCollector\\HttpCollector::$request must not be accessed before initialization in /srv/vendor/spiral/framework/src/Framework/Debug/StateCollector/HttpCollector.php:26

Stack trace:

#0 /srv/vendor/spiral/framework/src/Framework/Bootloader/DebugBootloader.php(74): Spiral\Debug\StateCollector\HttpCollector->populate(Object(Spiral\Debug\State))
#1 [internal function]: Spiral\Bootloader\DebugBootloader->state()
#2 /srv/vendor/spiral/framework/src/Core/src/Internal/Invoker.php(58): ReflectionMethod->invokeArgs(Object(Spiral\Bootloader\DebugBootloader), Array)
#3 /srv/vendor/spiral/framework/src/Core/src/Internal/Factory.php(222): Spiral\Core\Internal\Invoker->invoke(Array, Array)
#4 /srv/vendor/spiral/framework/src/Core/src/Internal/Factory.php(95): Spiral\Core\Internal\Factory->resolveFactory(Object(Spiral\Core\Config\DeferredFactory), 'Spiral\Debug\St...', NULL, Array)
#5 /srv/vendor/spiral/framework/src/Core/src/Internal/Container.php(57): Spiral\Core\Internal\Factory->make('Spiral\Debug\St...', Array, NULL)
#6 /srv/vendor/spiral/framework/src/Core/src/Container.php(144): Spiral\Core\Internal\Container->get('Spiral\Debug\St...', NULL)

#7 /srv/vendor/spiral/profiler/src/ProfilerInterceptor.php(47): Spiral\Core\Container->get('Spiral\Debug\St...')
#8 /srv/vendor/spiral/framework/src/Hmvc/src/InterceptorPipeline.php(60): Spiral\Profiler\ProfilerInterceptor->process('sendit.mail', 'handle', Array, Object(Spiral\Core\InterceptorPipeline))

#9 /srv/vendor/spiral/framework/src/Hmvc/src/InterceptableCore.php(30): Spiral\Core\InterceptorPipeline->callAction('sendit.mail', 'handle', Array)
#10 /srv/vendor/spiral/framework/src/Queue/src/Interceptor/Consume/Handler.php(45): Spiral\Core\InterceptableCore->callAction('sendit.mail', 'handle', Array)
#11 [internal function]: Spiral\Queue\Interceptor\Consume\Handler->Spiral\Queue\Interceptor\Consume\{closure}()
#12 /srv/vendor/spiral/framework/src/Core/src/Internal/Invoker.php(75): ReflectionFunction->invokeArgs(Array)
#13 /srv/vendor/spiral/framework/src/Core/src/Container.php(300): Spiral\Core\Internal\Invoker->invoke(Object(Closure), Array)
#14 /srv/vendor/spiral/framework/src/Telemetry/src/AbstractTracer.php(31): Spiral\Core\Container->invoke(Object(Closure))
#15 /srv/vendor/spiral/framework/src/Core/src/Container.php(189): Spiral\Telemetry\AbstractTracer::Spiral\Telemetry\{closure}(Object(Spiral\Core\Container))
#16 /srv/vendor/spiral/framework/src/Telemetry/src/AbstractTracer.php(31): Spiral\Core\Container->runScope(Array, Object(Closure))
#17 /srv/vendor/spiral/framework/src/Telemetry/src/NullTracer.php(25): Spiral\Telemetry\AbstractTracer->runScope(Object(Spiral\Telemetry\Span), Object(Closure))
#18 /srv/vendor/spiral/framework/src/Queue/src/Interceptor/Consume/Handler.php(54): Spiral\Telemetry\ullTracer->trace('Job handling [s...', Object(Closure), Array, true, Object(Spiral\Telemetry\TraceKind))
#19 /srv/vendor/spiral/roadrunner-bridge/src/Queue/Dispatcher.php(62): Spiral\Queue\Interceptor\Consume\Handler->handle('sendit.mail', 'roadrunner', 'unknown', '7eafdebb-1491-4...', Array, Array)
#20 /srv/vendor/spiral/framework/src/Boot/src/AbstractKernel.php(278): Spiral\RoadRunnerBridge\Queue\Dispatcher->serve()
#21 /srv/vendor/spiral/framework/src/Core/src/ContainerScope.php(39): Spiral\Boot\AbstractKernel::Spiral\Boot\{closure}(Object(Spiral\Core\Container))
#22 /srv/vendor/spiral/framework/src/Core/src/Container.php(188): Spiral\Core\ContainerScope::runScope(Object(Spiral\Core\Container), Object(Closure))
#23 /srv/vendor/spiral/framework/src/Boot/src/AbstractKernel.php(279): Spiral\Core\Container->runScope(Array, Object(Closure))
#24 /srv/app.php(36): Spiral\Boot\AbstractKernel->serve()
#25 {main}

Issue from our Discord channel.