diff --git a/src/Symfony/Component/ErrorHandler/Tests/Exception/FlattenExceptionTest.php b/src/Symfony/Component/ErrorHandler/Tests/Exception/FlattenExceptionTest.php index 5dd17dd2fc238..73d419ad4cd58 100644 --- a/src/Symfony/Component/ErrorHandler/Tests/Exception/FlattenExceptionTest.php +++ b/src/Symfony/Component/ErrorHandler/Tests/Exception/FlattenExceptionTest.php @@ -292,9 +292,4 @@ public function testToStringParent() $this->assertSame($exception->getTraceAsString(), $flattened->getTraceAsString()); $this->assertSame($exception->__toString(), $flattened->getAsString()); } - - private function createException($foo): \Exception - { - return new \Exception(); - } } diff --git a/src/Symfony/Component/Form/Tests/ChoiceList/Factory/DefaultChoiceListFactoryTest.php b/src/Symfony/Component/Form/Tests/ChoiceList/Factory/DefaultChoiceListFactoryTest.php index 35526a98f671b..dfbbd2b5b8166 100644 --- a/src/Symfony/Component/Form/Tests/ChoiceList/Factory/DefaultChoiceListFactoryTest.php +++ b/src/Symfony/Component/Form/Tests/ChoiceList/Factory/DefaultChoiceListFactoryTest.php @@ -854,25 +854,6 @@ public function testCreateViewFlatlabelTranslationParametersClosureReceivesValue $this->assertFlatViewWithlabelTranslationParameters($view); } - private function assertScalarListWithChoiceValues(ChoiceListInterface $list) - { - $this->assertSame(['a', 'b', 'c', 'd'], $list->getValues()); - - $this->assertSame([ - 'a' => 'a', - 'b' => 'b', - 'c' => 'c', - 'd' => 'd', - ], $list->getChoices()); - - $this->assertSame([ - 'a' => 'A', - 'b' => 'B', - 'c' => 'C', - 'd' => 'D', - ], $list->getOriginalKeys()); - } - private function assertObjectListWithGeneratedValues(ChoiceListInterface $list) { $this->assertSame(['0', '1', '2', '3'], $list->getValues()); @@ -892,25 +873,6 @@ private function assertObjectListWithGeneratedValues(ChoiceListInterface $list) ], $list->getOriginalKeys()); } - private function assertScalarListWithCustomValues(ChoiceListInterface $list) - { - $this->assertSame(['a', 'b', '1', '2'], $list->getValues()); - - $this->assertSame([ - 'a' => 'a', - 'b' => 'b', - 1 => 'c', - 2 => 'd', - ], $list->getChoices()); - - $this->assertSame([ - 'a' => 'A', - 'b' => 'B', - 1 => 'C', - 2 => 'D', - ], $list->getOriginalKeys()); - } - private function assertObjectListWithCustomValues(ChoiceListInterface $list) { $this->assertSame(['a', 'b', '1', '2'], $list->getValues()); diff --git a/src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php b/src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php index 44d99d11d7cc7..8bcc69c9ab4cb 100644 --- a/src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php +++ b/src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php @@ -524,11 +524,6 @@ public function setup(): void $this->autoSetup = false; } - private function getCurrentTimeInMilliseconds(): int - { - return (int) (microtime(true) * 1000); - } - public function cleanup(): void { static $unlink = true; diff --git a/src/Symfony/Component/Routing/Loader/Configurator/CollectionConfigurator.php b/src/Symfony/Component/Routing/Loader/Configurator/CollectionConfigurator.php index e29dcb2b35f01..b8a0861f4ab40 100644 --- a/src/Symfony/Component/Routing/Loader/Configurator/CollectionConfigurator.php +++ b/src/Symfony/Component/Routing/Loader/Configurator/CollectionConfigurator.php @@ -114,9 +114,4 @@ final public function host(string|array $host): static return $this; } - - private function createRoute(string $path): Route - { - return (clone $this->route)->setPath($path); - } } diff --git a/src/Symfony/Component/VarDumper/Tests/Dumper/CliDumperTest.php b/src/Symfony/Component/VarDumper/Tests/Dumper/CliDumperTest.php index d2377886784d5..b1eb29eb78877 100644 --- a/src/Symfony/Component/VarDumper/Tests/Dumper/CliDumperTest.php +++ b/src/Symfony/Component/VarDumper/Tests/Dumper/CliDumperTest.php @@ -449,22 +449,4 @@ public function testDumpArrayWithColor($value, $flags, $expectedOut) $this->assertSame($expectedOut, $out); } - - private function getSpecialVars() - { - foreach (array_keys($GLOBALS) as $var) { - if ('GLOBALS' !== $var) { - unset($GLOBALS[$var]); - } - } - - $var = function &() { - $var = []; - $var[] = &$var; - - return $var; - }; - - return eval('return [$var(), $GLOBALS, &$GLOBALS];'); - } } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy