Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: DocBlock #670

Merged
merged 1 commit into from Jan 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 1 addition & 5 deletions psalm-baseline.xml
Expand Up @@ -155,7 +155,7 @@
<file src="test/Unit/Vendor/Composer/ComposerJsonNormalizerTest.php">
<MixedInferredReturnType occurrences="2">
<code>Normalizer</code>
<code>Normalizer[]</code>
<code>array&lt;int, Normalizer&gt;</code>
</MixedInferredReturnType>
<MixedReturnStatement occurrences="2">
<code>$property-&gt;getValue($normalizer)</code>
Expand All @@ -179,9 +179,5 @@
<code>\Generator&lt;array&lt;string&gt;&gt;</code>
<code>\Generator&lt;array&lt;string&gt;&gt;</code>
</MixedInferredReturnType>
<MixedReturnTypeCoercion occurrences="2">
<code>\Generator&lt;array&lt;string&gt;&gt;</code>
<code>\Generator&lt;array&lt;string&gt;&gt;</code>
</MixedReturnTypeCoercion>
</file>
</files>
4 changes: 2 additions & 2 deletions test/Unit/Format/IndentTest.php
Expand Up @@ -309,7 +309,7 @@ public function testFromJsonReturnsIndentWithDefaultsWhenIndentCouldNotBeSniffed
}

/**
* @return int[]
* @return array<string, int>
*/
private static function sizes(): array
{
Expand All @@ -320,7 +320,7 @@ private static function sizes(): array
}

/**
* @return string[]
* @return array<string, string>
*/
private static function characters(): array
{
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/JsonEncodeNormalizerTest.php
Expand Up @@ -96,7 +96,7 @@ static function (int $jsonEncodeFlag, int $jsonEncodeOptions): int {
/**
* @see https://docstore.mik.ua/orelly/webprog/pcook/ch04_25.htm
*
* @param int[] $elements
* @param array<int, int> $elements
*
* @return array<array<int>>
*/
Expand Down
4 changes: 2 additions & 2 deletions test/Unit/Vendor/Composer/ComposerJsonNormalizerTest.php
Expand Up @@ -238,7 +238,7 @@ private static function assertComposesNormalizer(
}

/**
* @param string[] $classNames
* @param array<int, string> $classNames
*
* @throws \ReflectionException
*/
Expand Down Expand Up @@ -280,7 +280,7 @@ private static function composedNormalizer(Normalizer $normalizer): Normalizer
/**
*@throws \ReflectionException
*
* @return Normalizer[]
* @return array<int, Normalizer>
*/
private static function composedNormalizers(Normalizer $normalizer): array
{
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/Vendor/Composer/ConfigHashNormalizerTest.php
Expand Up @@ -372,7 +372,7 @@ public function provideProperty(): \Generator
}

/**
* @return string[]
* @return array<int, string>
*/
private static function properties(): array
{
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/Vendor/Composer/PackageHashNormalizerTest.php
Expand Up @@ -132,7 +132,7 @@ public function provideProperty(): \Generator
}

/**
* @return string[]
* @return array<int, string>
*/
private static function propertiesWhereKeysOfHashArePackages(): array
{
Expand Down
Expand Up @@ -217,7 +217,7 @@ public function providePropertyAndUntrimmedVersionConstraint(): \Generator
}

/**
* @return string[]
* @return array<int, string>
*/
private static function propertiesWhereValuesOfHashAreVersionConstraints(): array
{
Expand All @@ -233,7 +233,7 @@ private static function propertiesWhereValuesOfHashAreVersionConstraints(): arra
/**
* @see https://getcomposer.org/doc/articles/versions.md
*
* @return string[]
* @return array<string, string>
*/
private static function versionConstraints(): array
{
Expand Down