Skip to content

Commit 9361048

Browse files
committed
fix(tests): update mock definition in ResourceTest for type hinting
1 parent 73ada10 commit 9361048

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

phpstan-baseline.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ parameters:
243243
-
244244
message: '#^Unsafe usage of new static\(\)\.$#'
245245
identifier: new.static
246-
count: 3
246+
count: 5
247247
path: src/Models/Resource.php
248248

249249
-

tests/Models/ResourceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testGet()
4343
});
4444

4545
it('syncs all resources correctly', function(): void {
46-
app()->instance(ExtensionManager::class, mock(ExtensionManager::class, function($mock) {
46+
app()->instance(ExtensionManager::class, mock(ExtensionManager::class, function($mock): void {
4747
$mock->shouldReceive('getRegistrationMethodValues')
4848
->with('registerApiResources')
4949
->andReturn([

0 commit comments

Comments
 (0)