Skip to content

Commit

Permalink
Optimize: Types
Browse files Browse the repository at this point in the history
  • Loading branch information
JBlond committed Feb 21, 2023
1 parent 0c50100 commit a069eba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jblond/cli/CliColors.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ class CliColors {
* @return string
* @throws InvalidArgumentException
*/
public function getColoredString($string, $foregroundColor = null, $backgroundColor = null){
public function getColoredString(string $string, ?string $foregroundColor = null, ?string $backgroundColor = null): string
{
$coloredString = '';

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

0 comments on commit a069eba

Please sign in to comment.