mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 12:13:13 +08:00
Replaced regular callbacks by arrow functions when possible
This commit is contained in:
@@ -28,15 +28,13 @@ class ConfigProviderTest extends TestCase
|
||||
/** @test */
|
||||
public function routesAreProperlyPrefixed(): void
|
||||
{
|
||||
$configProvider = new ConfigProvider(function () {
|
||||
return [
|
||||
'routes' => [
|
||||
['path' => '/foo'],
|
||||
['path' => '/bar'],
|
||||
['path' => '/baz/foo'],
|
||||
],
|
||||
];
|
||||
});
|
||||
$configProvider = new ConfigProvider(fn () => [
|
||||
'routes' => [
|
||||
['path' => '/foo'],
|
||||
['path' => '/bar'],
|
||||
['path' => '/baz/foo'],
|
||||
],
|
||||
]);
|
||||
|
||||
$config = $configProvider();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user