Skip to content

Commit fc9310f

Browse files
Merge pull request #52885 from nextcloud/fix/docblock-color
fix(OCP\Color): use correct doc block type
2 parents 3699eed + aabb4e5 commit fc9310f

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

build/psalm-baseline.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4640,14 +4640,6 @@
46404640
<code><![CDATA[array{X-Request-Id: string, Cache-Control: string, Content-Security-Policy: string, Feature-Policy: string, X-Robots-Tag: string, Last-Modified?: string, ETag?: string, ...H}]]></code>
46414641
</MoreSpecificReturnType>
46424642
</file>
4643-
<file src="lib/public/Color.php">
4644-
<LessSpecificReturnStatement>
4645-
<code><![CDATA[$step]]></code>
4646-
</LessSpecificReturnStatement>
4647-
<MoreSpecificReturnType>
4648-
<code><![CDATA[array{0: int, 1: int, 2: int}]]></code>
4649-
</MoreSpecificReturnType>
4650-
</file>
46514643
<file src="lib/public/Preview/BeforePreviewFetchedEvent.php">
46524644
<LessSpecificReturnStatement>
46534645
<code><![CDATA[$this->mode]]></code>

lib/public/Color.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function alphaBlending(float $opacity, Color $source): Color {
125125
* Calculate steps between two Colors
126126
* @param int $steps start color
127127
* @param Color[] $ends end color
128-
* @return array{0: int, 1: int, 2: int} [r,g,b] steps for each color to go from $steps to $ends
128+
* @return array{0: float, 1: float, 2: float} [r,g,b] steps for each color to go from $steps to $ends
129129
* @since 25.0.0
130130
*/
131131
private static function stepCalc(int $steps, array $ends): array {

0 commit comments

Comments
 (0)