diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-05-15 18:35:14 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-05-15 18:35:14 +0200 |
commit | aabb4e547a758f96b3f23a789e3e2844b03fe75c (patch) | |
tree | f318bb46b36df8da5fae507eb89e41a83257d7c9 | |
parent | cf44995aaca8a4e18aaa745bb73dbc3139180540 (diff) | |
download | nextcloud-server-fix/docblock-color.tar.gz nextcloud-server-fix/docblock-color.zip |
fix(OCP\Color): use correct doc block typefix/docblock-color
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
-rw-r--r-- | build/psalm-baseline.xml | 8 | ||||
-rw-r--r-- | lib/public/Color.php | 2 |
2 files changed, 1 insertions, 9 deletions
diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index 75b316dbb62..d9a9f067710 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -4684,14 +4684,6 @@ <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> </MoreSpecificReturnType> </file> - <file src="lib/public/Color.php"> - <LessSpecificReturnStatement> - <code><![CDATA[$step]]></code> - </LessSpecificReturnStatement> - <MoreSpecificReturnType> - <code><![CDATA[array{0: int, 1: int, 2: int}]]></code> - </MoreSpecificReturnType> - </file> <file src="lib/public/Preview/BeforePreviewFetchedEvent.php"> <LessSpecificReturnStatement> <code><![CDATA[$this->mode]]></code> diff --git a/lib/public/Color.php b/lib/public/Color.php index c8ba3a1ff15..5523dbd94cb 100644 --- a/lib/public/Color.php +++ b/lib/public/Color.php @@ -125,7 +125,7 @@ class Color { * Calculate steps between two Colors * @param int $steps start color * @param Color[] $ends end color - * @return array{0: int, 1: int, 2: int} [r,g,b] steps for each color to go from $steps to $ends + * @return array{0: float, 1: float, 2: float} [r,g,b] steps for each color to go from $steps to $ends * @since 25.0.0 */ private static function stepCalc(int $steps, array $ends): array { |