Skip to content

Commit 59af498

Browse files
authored
[12.x] Avoid breaking change RefreshDatabase::usingInMemoryDatabase() (laravel#53587)
While we do allows BC on major release I do feel that this is not needed for the following use case. Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 53b0f4e commit 59af498

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Foundation/Testing/RefreshDatabase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected function usingInMemoryDatabases()
4848
*
4949
* @return bool
5050
*/
51-
protected function usingInMemoryDatabase(?string $name)
51+
protected function usingInMemoryDatabase(?string $name = null)
5252
{
5353
if (is_null($name)) {
5454
$name = config('database.default');

tests/Integration/Queue/SerializableClosureV1QueueTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class SerializableClosureV1QueueTest extends TestCase
1717
#[\Override]
1818
protected function defineEnvironment($app)
1919
{
20-
$this->markTestSkippedWhen($this->usingInMemoryDatabase(null), 'Test does not support using :memory: database connection');
20+
$this->markTestSkippedWhen($this->usingInMemoryDatabase(), 'Test does not support using :memory: database connection');
2121

2222
tap($app->make('config'), function ($config) {
2323
$config->set([

0 commit comments

Comments
 (0)