bump dependencies (#3089)

This commit is contained in:
Kevin Papst
2022-01-22 17:11:30 +01:00
committed by GitHub
parent 9c40bd98aa
commit 8b8e9b001e
6 changed files with 927 additions and 834 deletions

View File

@@ -100,7 +100,7 @@ final class CreateUserCommand extends Command
*/
protected function askForPassword(InputInterface $input, OutputInterface $output): string
{
/* @var QuestionHelper $helper */
/** @var QuestionHelper $helper */
$helper = $this->getHelper('question');
$passwordQuestion = new Question('Please enter the password: ');

View File

@@ -12,10 +12,13 @@ namespace App\Utils;
interface HtmlToPdfConverter
{
/**
* Returns the binary content of the PDF, which can be saved as file or send via Reponse.
* Returns the binary content of the PDF, which can be saved as file.
* Throws an exception if conversion fails.
*
* @param string $html
* @param array $options
* @return mixed
* @return string
* @throws \Exception
*/
public function convertToPdf(string $html, array $options = []);
public function convertToPdf(string $html, array $options = []): string;
}

View File

@@ -56,10 +56,10 @@ class MPdfConverter implements HtmlToPdfConverter
/**
* @param string $html
* @param array $options
* @return mixed|string
* @return string
* @throws \Mpdf\MpdfException
*/
public function convertToPdf(string $html, array $options = [])
public function convertToPdf(string $html, array $options = []): string
{
$options = array_merge(
$this->sanitizeOptions($options),