mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 23:33:13 +08:00
Update to PHP coding standard 2.4.0
This commit is contained in:
@@ -23,14 +23,14 @@ class ShortUrlMethodsProcessorTest extends TestCase
|
||||
#[Test, DataProvider('provideConfigs')]
|
||||
public function onlyFirstRouteIdentifiedAsRedirectIsEditedWithProperAllowedMethods(
|
||||
array $config,
|
||||
?array $expectedRoutes,
|
||||
array|null $expectedRoutes,
|
||||
): void {
|
||||
self::assertEquals($expectedRoutes, ($this->processor)($config)['routes'] ?? null);
|
||||
}
|
||||
|
||||
public static function provideConfigs(): iterable
|
||||
{
|
||||
$buildConfigWithStatus = static fn (int $status, ?array $expectedAllowedMethods) => [[
|
||||
$buildConfigWithStatus = static fn (int $status, array|null $expectedAllowedMethods) => [[
|
||||
'routes' => [
|
||||
['name' => 'foo'],
|
||||
['name' => 'bar'],
|
||||
|
||||
Reference in New Issue
Block a user