Skip to content

Commit c8eb96f

Browse files
committed
minor #27868 improve deprecation messages (xabbuh)
This PR was merged into the 3.4 branch. Discussion ---------- improve deprecation messages | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- a3845c7 improve deprecation messages
2 parents 766e49d + 73b664f commit c8eb96f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Application.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ protected function doRenderException(\Exception $e, OutputInterface $output)
807807
*/
808808
protected function getTerminalWidth()
809809
{
810-
@trigger_error(sprintf('%s is deprecated as of 3.2 and will be removed in 4.0. Create a Terminal instance instead.', __METHOD__), E_USER_DEPRECATED);
810+
@trigger_error(sprintf('The "%s()" method is deprecated as of 3.2 and will be removed in 4.0. Create a Terminal instance instead.', __METHOD__), E_USER_DEPRECATED);
811811

812812
return $this->terminal->getWidth();
813813
}
@@ -821,7 +821,7 @@ protected function getTerminalWidth()
821821
*/
822822
protected function getTerminalHeight()
823823
{
824-
@trigger_error(sprintf('%s is deprecated as of 3.2 and will be removed in 4.0. Create a Terminal instance instead.', __METHOD__), E_USER_DEPRECATED);
824+
@trigger_error(sprintf('The "%s()" method is deprecated as of 3.2 and will be removed in 4.0. Create a Terminal instance instead.', __METHOD__), E_USER_DEPRECATED);
825825

826826
return $this->terminal->getHeight();
827827
}
@@ -835,7 +835,7 @@ protected function getTerminalHeight()
835835
*/
836836
public function getTerminalDimensions()
837837
{
838-
@trigger_error(sprintf('%s is deprecated as of 3.2 and will be removed in 4.0. Create a Terminal instance instead.', __METHOD__), E_USER_DEPRECATED);
838+
@trigger_error(sprintf('The "%s()" method is deprecated as of 3.2 and will be removed in 4.0. Create a Terminal instance instead.', __METHOD__), E_USER_DEPRECATED);
839839

840840
return array($this->terminal->getWidth(), $this->terminal->getHeight());
841841
}
@@ -854,7 +854,7 @@ public function getTerminalDimensions()
854854
*/
855855
public function setTerminalDimensions($width, $height)
856856
{
857-
@trigger_error(sprintf('%s is deprecated as of 3.2 and will be removed in 4.0. Set the COLUMNS and LINES env vars instead.', __METHOD__), E_USER_DEPRECATED);
857+
@trigger_error(sprintf('The "%s()" method is deprecated as of 3.2 and will be removed in 4.0. Set the COLUMNS and LINES env vars instead.', __METHOD__), E_USER_DEPRECATED);
858858

859859
putenv('COLUMNS='.$width);
860860
putenv('LINES='.$height);

0 commit comments

Comments
 (0)