Skip to content

Return value of Symfony\Component\Debug\ExceptionHandler::setFileLinkFormat() must be of the type string, null returned #32150

@jlslew

Description

@jlslew

Symfony version(s) affected: master

Description

The variable fileLinkFormat is initialized everywhere in the class Symfony\Component\Debug\ExceptionHandler to null but here it is asking for a string

public function setFileLinkFormat($fileLinkFormat): string
{
    $old = $this->fileLinkFormat;
    $this->fileLinkFormat = $fileLinkFormat;
    return $old;
}

How to reproduce

  • git clone git@github.com:symfony/website-skeleton.git .
  • composer install

Additional context

The return type was added in PR #31996

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions