filp/whoops · error · UnexpectedValueException
Whoops\Handler\PrettyPageHandler::getEditorAjax should alway
Error message
Whoops\Handler\PrettyPageHandler::getEditorAjax should always resolve to a bool; got something else instead.
What it means
Error "Whoops\Handler\PrettyPageHandler::getEditorAjax should always resolve to a bool; got something else instead." thrown in filp/whoops.
Source
Thrown at src/Whoops/Handler/PrettyPageHandler.php:548
}
/**
* Determine if the editor link should act as an Ajax request.
*
* @param string $filePath
* @param int $line
*
* @throws UnexpectedValueException If editor resolver does not return a boolean
*
* @return bool
*/
public function getEditorAjax($filePath, $line)
{
$editor = $this->getEditor($filePath, $line);
// Check that the ajax is a bool
if (!isset($editor['ajax']) || !is_bool($editor['ajax'])) {
throw new UnexpectedValueException(
__METHOD__ . " should always resolve to a bool; got something else instead."
);
}
return $editor['ajax'];
}
/**
* Determines both the editor and if ajax should be used.
*
* @param string $filePath
* @param int $line
*
* @return array
*/
protected function getEditor($filePath, $line)
{
if (!$this->editor || (!is_string($this->editor) && !is_callable($this->editor))) {
return [];View on GitHub (pinned to fa1bc9c95a)
When it happens
Trigger: Thrown at src/Whoops/Handler/PrettyPageHandler.php:548 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of filp/whoops@fa1bc9c95a (2026-08-21).
Data as JSON: /api/errors/df30e2b1541be19f.
Report an issue: GitHub.