mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 22:35:01 +00:00
apply rules rector up to php82
This commit is contained in:
@@ -19,7 +19,7 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
*/
|
||||
final class EventControllerTest extends WebTestCase
|
||||
{
|
||||
public function testSkipped()
|
||||
public function testSkipped(): never
|
||||
{
|
||||
$this->markTestSkipped();
|
||||
}
|
||||
|
@@ -19,7 +19,7 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
*/
|
||||
final class EventTypeControllerTest extends WebTestCase
|
||||
{
|
||||
public function testSkipped()
|
||||
public function testSkipped(): never
|
||||
{
|
||||
$this->markTestSkipped();
|
||||
}
|
||||
|
@@ -19,7 +19,7 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
*/
|
||||
final class RoleControllerTest extends WebTestCase
|
||||
{
|
||||
public function testSkipped()
|
||||
public function testSkipped(): never
|
||||
{
|
||||
$this->markTestSkipped();
|
||||
}
|
||||
|
@@ -19,7 +19,7 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
*/
|
||||
final class StatusControllerTest extends WebTestCase
|
||||
{
|
||||
public function testSkipped()
|
||||
public function testSkipped(): never
|
||||
{
|
||||
$this->markTestSkipped();
|
||||
}
|
||||
|
@@ -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]);
|
||||
|
Reference in New Issue
Block a user