8000 fixed problems found by SensioLabsInsight · symfony/symfony@1bd6da6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1bd6da6

Browse files
committed
fixed problems found by SensioLabsInsight
1 parent 7eab6b9 commit 1bd6da6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Symfony/Component/Cache/Adapter/RedisAdapterTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Component\Cache\Adapter;
1313

14-
use Predis\Connection\Aggregate\RedisCluster;
14+
use Predis\Connection\Aggregate\PredisCluster;
1515
use Symfony\Component\Cache\Exception\InvalidArgumentException;
1616

1717
/**

src/Symfony/Component/Console/Application.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ public function renderException(\Exception $e, OutputInterface $output)
693693
*/
694694
protected function getTerminalWidth()
695695
{
696-
@trigger_error(sprintf('%s is deprecated as of 3.2 and will be removed in 4.0. Create a Terminal instance instead.', __METHOD__, ArgumentResolverInterface::class), E_USER_DEPRECATED);
696+
@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);
697697

698698
return $this->terminal->getWidth();
699699
}
@@ -707,7 +707,7 @@ protected function getTerminalWidth()
707707
*/
708708
protected function getTerminalHeight()
709709
{
710-
@trigger_error(sprintf('%s is deprecated as of 3.2 and will be removed in 4.0. Create a Terminal instance instead.', __METHOD__, ArgumentResolverInterface::class), E_USER_DEPRECATED);
710+
@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);
711711

712712
return $this->terminal->getHeight();
713713
}
@@ -721,7 +721,7 @@ protected function getTerminalHeight()
721721
*/
722722
public function getTerminalDimensions()
723723
{
724-
@trigger_error(sprintf('%s is deprecated as of 3.2 and will be removed in 4.0. Create a Terminal instance instead.', __METHOD__, ArgumentResolverInterface::class), E_USER_DEPRECATED);
724+
@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);
725725

726726
return array($this->terminal->getWidth(), $this->terminal->getHeight());
727727
}
@@ -740,7 +740,7 @@ public function getTerminalDimensions()
740740
*/
741741
public function setTerminalDimensions($width, $height)
742742
{
743-
@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__, ArgumentResolverInterface::class), E_USER_DEPRECATED);
743+
@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);
744744

745745
putenv('COLUMNS='.$width);
746746
putenv('LINES='.$height);

src/Symfony/Component/Console/Terminal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private static function initDimensions()
6060
// or [w, h] from "wxh"
6161
self::$width = (int) $matches[1];
6262
self::$height = isset($matches[4]) ? (int) $matches[4] : (int) $matches[2];
63-
} elseif (null != $dimensions = self::getConsoleMode()) {
63+
} elseif (null !== $dimensions = self::getConsoleMode()) {
6464
// extract [w, h] from "wxh"
6565
self::$width = (int) $dimensions[0];
6666
self::$height = (int) $dimensions[1];

0 commit comments

Comments
 (0)
0