Skip to content

Commit c541756

Browse files
More short closures
1 parent 836e1d1 commit c541756

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/Store/DoctrineDbalStoreTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public function testCreatesTableOutsideTransaction()
240240
public function testConfigureSchemaDifferentDatabase()
241241
{
242242
$conn = $this->createMock(Connection::class);
243-
$someFunction = function () { return false; };
243+
$someFunction = fn () => false;
244244
$schema = new Schema();
245245

246246
$dbalStore = new DoctrineDbalStore($conn);
@@ -251,7 +251,7 @@ public function testConfigureSchemaDifferentDatabase()
251251
public function testConfigureSchemaSameDatabase()
252252
{
253253
$conn = $this->createMock(Connection::class);
254-
$someFunction = function () { return true; };
254+
$someFunction = fn () => true;
255255
$schema = new Schema();
256256

257257
$dbalStore = new DoctrineDbalStore($conn);
@@ -266,7 +266,7 @@ public function testConfigureSchemaTableExists()
266266
$schema->createTable('lock_keys');
267267

268268
$dbalStore = new DoctrineDbalStore($conn);
269-
$someFunction = function () { return true; };
269+
$someFunction = fn () => true;
270270
$dbalStore->configureSchema($schema, $someFunction);
271271
$table = $schema->getTable('lock_keys');
272272
$this->assertEmpty($table->getColumns(), 'The table was not overwritten');

0 commit comments

Comments
 (0)