defineError($previous, $template); } protected function defineError(\Throwable $previous, object $template) : void { /*$loadedTemplates = array_flip($this->picea->loadedTemplateFile);*/ $this->file = $template::getParam('view'); $this->line = $template::getSourceLineFromException($previous->getLine()); } protected function getTemplateFile(string $filePath) : ? array { $content = null; if ( is_array($content) && isset($content['classname'], $content['namespace'], $content['view'], $content['extends']) ) { return $content; } return null; } }