Skip to content

Commit

Permalink
Merge pull request #670 from ergebnis/fix/docblock
Browse files Browse the repository at this point in the history
Fix: DocBlock
  • Loading branch information
localheinz committed Jan 30, 2022
2 parents 7960dfa + 25dfbac commit 0caf624
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 14 deletions.
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
4 changes: 2 additions & 2 deletions test/Unit/Vendor/Composer/VersionConstraintNormalizerTest.php
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

0 comments on commit 0caf624

Please sign in to comment.