We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23808c5 commit 3db8f06Copy full SHA for 3db8f06
1 file changed
tests/system/Database/BaseConnectionTest.php
@@ -189,7 +189,7 @@ public function getWithTrue(): int|true
189
190
public function testCachesTypedPropertiesIncrementally(): void
191
{
192
- $factory = fn (array $options) => new class ($options) extends MockConnection {
+ $factory = static fn (array $options): MockConnection => new class ($options) extends MockConnection {
193
protected ?int $synchronous = null;
194
protected ?int $busyTimeout = null;
195
@@ -204,7 +204,7 @@ public function getBusyTimeout(): ?int
204
}
205
};
206
207
- $first = $factory([...$this->options, 'synchronous' => '1']);
+ $first = $factory([...$this->options, 'synchronous' => '1']);
208
$second = $factory([...$this->options, 'busyTimeout' => '4000']);
209
210
$this->assertSame(1, $first->getSynchronous());
0 commit comments