We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6648a1 commit d954aa2Copy full SHA for d954aa2
tests/Units/Domain/EagerLoadingTest.php
@@ -89,7 +89,7 @@ public function testMultiWallets(): void
89
$user = UserMulti::with('wallets.walletTransactions')->find($multi->getKey());
90
self::assertTrue($user->relationLoaded('wallets'));
91
self::assertNotEmpty($user->wallets);
92
- self::assertTrue($user->wallets[0]->relationLoaded('walletTransactions'));
+ self::assertTrue($user->wallets[0]?->relationLoaded('walletTransactions'));
93
self::assertNotNull($user->getWallet('hello'));
94
self::assertNotNull($user->getWallet('world'));
95
self::assertTrue($user->getWallet('hello')->relationLoaded('holder'));
0 commit comments