Issues (24)

src/Exception/ProcessHasErrorOutputException.php (1 issue)

Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace PhpSpellcheck\Exception;
6
7
class ProcessHasErrorOutputException extends \RuntimeException implements ExceptionInterface
8
{
9 4
    public function __construct(string $errorOutput, string $parsedText, string $command)
10
    {
11
        $exceptionTemplateMessage = <<<'MSG'
12 4
            Process has generated the following output errors:
13
14
            %s
15
16
            With command: "%s"
17
18
            For text:
19
            "%s"
20
            MSG;
21
22 4
        parent::__construct(
23 4
            \Safe\sprintf(
0 ignored issues
show
Deprecated Code introduced by
The function Safe\sprintf() has been deprecated: The Safe version of this function is no longer needed in PHP 8.0+ ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

23
            /** @scrutinizer ignore-deprecated */ \Safe\sprintf(

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
24 4
                $exceptionTemplateMessage,
25 4
                $errorOutput,
26 4
                $command,
27 4
                $parsedText
28
            )
29
        );
30 4
    }
31
}
32