Skip to content

Commit

Permalink
Avoid internal call to deprecated getVersion() method
Browse files Browse the repository at this point in the history
After updating to v0.12.0, I get a deprecation warning emitted when running the shell. I have mine set up in a light Doctrine Console wrapper, though I suspect that's not relevant.

I tested this patch in my local vendor code and saw no negative impact, and it removed the deprecation warning.
  • Loading branch information
Firehed authored and bobthecow committed Jan 12, 2024
1 parent 7589819 commit 7d7f26d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Shell.php
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,7 @@ protected function readline(bool $interactive = true)
*/
protected function getHeader(): string
{
return \sprintf('<whisper>%s by Justin Hileman</whisper>', $this->getVersion());
return \sprintf('<whisper>%s by Justin Hileman</whisper>', self::getVersionHeader($this->config->useUnicode()));
}

/**
Expand Down

0 comments on commit 7d7f26d

Please sign in to comment.