From 7d7f26d3dbba0a28a59974782d49b98f3280d441 Mon Sep 17 00:00:00 2001 From: Eric Stern Date: Thu, 11 Jan 2024 17:58:39 -0800 Subject: [PATCH] Avoid internal call to deprecated getVersion() method 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. --- src/Shell.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Shell.php b/src/Shell.php index 104699c2..b9471bc6 100644 --- a/src/Shell.php +++ b/src/Shell.php @@ -1509,7 +1509,7 @@ protected function readline(bool $interactive = true) */ protected function getHeader(): string { - return \sprintf('%s by Justin Hileman', $this->getVersion()); + return \sprintf('%s by Justin Hileman', self::getVersionHeader($this->config->useUnicode())); } /**