migration symfony 5 4 (#300)

* symfony 5.4 (diff dev)

* symfony 5.4 (working)

* symfony 5.4 (update autoload)

* symfony 5.4 (remove swiftmailer mailer implementation)

* symfony 5.4 (php doc and split Global accessor class)


### Impacted packages:

composer require php:">=7.2.5 <8.0.0" symfony/console:5.4.* symfony/dotenv:5.4.* symfony/framework-bundle:5.4.* symfony/twig-bundle:5.4.* symfony/yaml:5.4.* --update-with-dependencies

composer require symfony/stopwatch:5.4.* symfony/web-profiler-bundle:5.4.* --dev --update-with-dependencies
This commit is contained in:
bdalsass
2022-06-16 09:13:24 +02:00
committed by GitHub
parent abb13b70b9
commit 79da71ecf8
2178 changed files with 87439 additions and 59451 deletions

View File

@@ -24,13 +24,12 @@ class ParseException extends RuntimeException
private $rawMessage;
/**
* @param string $message The error message
* @param int $parsedLine The line where the error occurred
* @param string|null $snippet The snippet of code near the problem
* @param string|null $parsedFile The file name where the error occurred
* @param \Exception|null $previous The previous exception
* @param string $message The error message
* @param int $parsedLine The line where the error occurred
* @param string|null $snippet The snippet of code near the problem
* @param string|null $parsedFile The file name where the error occurred
*/
public function __construct($message, $parsedLine = -1, $snippet = null, $parsedFile = null, \Exception $previous = null)
public function __construct(string $message, int $parsedLine = -1, string $snippet = null, string $parsedFile = null, \Throwable $previous = null)
{
$this->parsedFile = $parsedFile;
$this->parsedLine = $parsedLine;
@@ -45,7 +44,7 @@ class ParseException extends RuntimeException
/**
* Gets the snippet of code near the error.
*
* @return string The snippet of code
* @return string
*/
public function getSnippet()
{
@@ -54,10 +53,8 @@ class ParseException extends RuntimeException
/**
* Sets the snippet of code near the error.
*
* @param string $snippet The code snippet
*/
public function setSnippet($snippet)
public function setSnippet(string $snippet)
{
$this->snippet = $snippet;
@@ -69,7 +66,7 @@ class ParseException extends RuntimeException
*
* This method returns null if a string is parsed.
*
* @return string The filename
* @return string
*/
public function getParsedFile()
{
@@ -78,10 +75,8 @@ class ParseException extends RuntimeException
/**
* Sets the filename where the error occurred.
*
* @param string $parsedFile The filename
*/
public function setParsedFile($parsedFile)
public function setParsedFile(string $parsedFile)
{
$this->parsedFile = $parsedFile;
@@ -91,7 +86,7 @@ class ParseException extends RuntimeException
/**
* Gets the line where the error occurred.
*
* @return int The file line
* @return int
*/
public function getParsedLine()
{
@@ -100,10 +95,8 @@ class ParseException extends RuntimeException
/**
* Sets the line where the error occurred.
*
* @param int $parsedLine The file line
*/
public function setParsedLine($parsedLine)
public function setParsedLine(int $parsedLine)
{
$this->parsedLine = $parsedLine;