Skip to content

Commit

Permalink
removed deprecated casting to string
Browse files Browse the repository at this point in the history
  • Loading branch information
jarektkaczyk committed Mar 18, 2020
1 parent 99cea3a commit 6137862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MocksMixins.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ protected function buildExpectedQueryMock(Closure $expectations)

$expected_mock = $ref->getParameters()[0] ?? null;

return $expected_mock !== null && (string) $expected_mock->getType() === 'Mockery\\MockInterface'
return $expected_mock !== null && $expected_mock->getType()->getName() === 'Mockery\\MockInterface'
? call_user_func('Mockery::mock')
: $this->createMixinMock(EloquentBuilder::class, QueryBuilder::class);
}
Expand Down

0 comments on commit 6137862

Please sign in to comment.