Skip to content

Commit a069eba

Browse files
committed
Optimize: Types
1 parent 0c50100 commit a069eba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jblond/cli/CliColors.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ class CliColors {
5656
* @return string
5757
* @throws InvalidArgumentException
5858
*/
59-
public function getColoredString($string, $foregroundColor = null, $backgroundColor = null){
59+
public function getColoredString(string $string, ?string $foregroundColor = null, ?string $backgroundColor = null): string
60+
{
6061
$coloredString = '';
6162

6263
if(!isset($this->foregroundColors[(string) $foregroundColor])){

0 commit comments

Comments
 (0)