Skip to content

Commit

Permalink
Fix mock cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
charrondev committed Sep 14, 2023
1 parent 06e1dd4 commit 4f50396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mock/MockSiteProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ public function getSite(int $siteID): Site
*/
protected function loadAllClusters(): array

Check failure on line 82 in src/Mock/MockSiteProvider.php

View workflow job for this annotation

GitHub Actions / static-analysis (7.4)

InvalidReturnType

src/Mock/MockSiteProvider.php:82:43: InvalidReturnType: The declared return type 'array<string, Garden\Sites\Local\LocalCluster>' for Garden\Sites\Mock\MockSiteProvider::loadAllClusters is incorrect, got 'array{cl00000: Garden\Sites\Mock\MockCluster}' (see https://psalm.dev/011)

Check failure on line 82 in src/Mock/MockSiteProvider.php

View workflow job for this annotation

GitHub Actions / static-analysis (8.0)

InvalidReturnType

src/Mock/MockSiteProvider.php:82:43: InvalidReturnType: The declared return type 'array<string, Garden\Sites\Local\LocalCluster>' for Garden\Sites\Mock\MockSiteProvider::loadAllClusters is incorrect, got 'array{cl00000: Garden\Sites\Mock\MockCluster}' (see https://psalm.dev/011)

Check failure on line 82 in src/Mock/MockSiteProvider.php

View workflow job for this annotation

GitHub Actions / static-analysis (8.1)

InvalidReturnType

src/Mock/MockSiteProvider.php:82:43: InvalidReturnType: The declared return type 'array<string, Garden\Sites\Local\LocalCluster>' for Garden\Sites\Mock\MockSiteProvider::loadAllClusters is incorrect, got 'array{cl00000: Garden\Sites\Mock\MockCluster}' (see https://psalm.dev/011)

Check failure on line 82 in src/Mock/MockSiteProvider.php

View workflow job for this annotation

GitHub Actions / static-analysis (8.2)

InvalidReturnType

src/Mock/MockSiteProvider.php:82:43: InvalidReturnType: The declared return type 'array<string, Garden\Sites\Local\LocalCluster>' for Garden\Sites\Mock\MockSiteProvider::loadAllClusters is incorrect, got 'array{cl00000: Garden\Sites\Mock\MockCluster}' (see https://psalm.dev/011)
{
return [MockSite::MOCK_CLUSTER_ID => new LocalCluster(MockSite::MOCK_CLUSTER_ID)];
return [MockSite::MOCK_CLUSTER_ID => new MockCluster(MockSite::MOCK_CLUSTER_ID)];

Check failure on line 84 in src/Mock/MockSiteProvider.php

View workflow job for this annotation

GitHub Actions / static-analysis (7.4)

InvalidReturnStatement

src/Mock/MockSiteProvider.php:84:16: InvalidReturnStatement: The inferred type 'array{cl00000: Garden\Sites\Mock\MockCluster}' does not match the declared return type 'array<string, Garden\Sites\Local\LocalCluster>' for Garden\Sites\Mock\MockSiteProvider::loadAllClusters (see https://psalm.dev/128)

Check failure on line 84 in src/Mock/MockSiteProvider.php

View workflow job for this annotation

GitHub Actions / static-analysis (8.0)

InvalidReturnStatement

src/Mock/MockSiteProvider.php:84:16: InvalidReturnStatement: The inferred type 'array{cl00000: Garden\Sites\Mock\MockCluster}' does not match the declared return type 'array<string, Garden\Sites\Local\LocalCluster>' for Garden\Sites\Mock\MockSiteProvider::loadAllClusters (see https://psalm.dev/128)

Check failure on line 84 in src/Mock/MockSiteProvider.php

View workflow job for this annotation

GitHub Actions / static-analysis (8.1)

InvalidReturnStatement

src/Mock/MockSiteProvider.php:84:16: InvalidReturnStatement: The inferred type 'array{cl00000: Garden\Sites\Mock\MockCluster}' does not match the declared return type 'array<string, Garden\Sites\Local\LocalCluster>' for Garden\Sites\Mock\MockSiteProvider::loadAllClusters (see https://psalm.dev/128)

Check failure on line 84 in src/Mock/MockSiteProvider.php

View workflow job for this annotation

GitHub Actions / static-analysis (8.2)

InvalidReturnStatement

src/Mock/MockSiteProvider.php:84:16: InvalidReturnStatement: The inferred type 'array{cl00000: Garden\Sites\Mock\MockCluster}' does not match the declared return type 'array<string, Garden\Sites\Local\LocalCluster>' for Garden\Sites\Mock\MockSiteProvider::loadAllClusters (see https://psalm.dev/128)
}
}

0 comments on commit 4f50396

Please sign in to comment.