apply rules rector up to php82

This commit is contained in:
2023-05-01 21:39:45 +02:00
parent 81e8928344
commit 6d63177ff4
733 changed files with 1257 additions and 1322 deletions

View File

@@ -19,7 +19,7 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
*/
final class EventControllerTest extends WebTestCase
{
public function testSkipped()
public function testSkipped(): never
{
$this->markTestSkipped();
}

View File

@@ -19,7 +19,7 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
*/
final class EventTypeControllerTest extends WebTestCase
{
public function testSkipped()
public function testSkipped(): never
{
$this->markTestSkipped();
}

View File

@@ -19,7 +19,7 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
*/
final class RoleControllerTest extends WebTestCase
{
public function testSkipped()
public function testSkipped(): never
{
$this->markTestSkipped();
}

View File

@@ -19,7 +19,7 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
*/
final class StatusControllerTest extends WebTestCase
{
public function testSkipped()
public function testSkipped(): never
{
$this->markTestSkipped();
}

View File

@@ -373,7 +373,7 @@ final class EventSearchTest extends WebTestCase
// get the second node, which should contains a date
$tdDate = $tr->filter('td')->eq(1);
// transform the date, which should be in french, into a DateTime object
$parts = explode(' ', $tdDate->text());
$parts = explode(' ', (string) $tdDate->text());
return DateTime::createFromFormat('Y-m-d', $parts[2] .
'-' . $months[$parts[1]] . '-' . $parts[0]);