diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php index fe0d60b555..c038133975 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php @@ -14,6 +14,7 @@ namespace Symfony\Bundle\FrameworkBundle\Command; use Symfony\Component\Config\Definition\ConfigurationInterface; use Symfony\Component\Console\Exception\LogicException; use Symfony\Component\Console\Helper\Table; +use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\StyleInterface; use Symfony\Component\DependencyInjection\Extension\ExtensionInterface; @@ -26,6 +27,9 @@ use Symfony\Component\DependencyInjection\Extension\ExtensionInterface; */ abstract class AbstractConfigCommand extends ContainerDebugCommand { + /** + * @param OutputInterface|StyleInterface $output + */ protected function listBundles($output) { $title = 'Available registered bundles with their extension alias if available'; diff --git a/src/Symfony/Component/BrowserKit/Cookie.php b/src/Symfony/Component/BrowserKit/Cookie.php index ee786e69c2..52b74331de 100644 --- a/src/Symfony/Component/BrowserKit/Cookie.php +++ b/src/Symfony/Component/BrowserKit/Cookie.php @@ -199,6 +199,11 @@ class Cookie ); } + /** + * @param string $dateValue + * + * @return string|null + */ private static function parseDate($dateValue) { // trim single quotes around date if present @@ -216,6 +221,8 @@ class Cookie if (false !== $date = date_create($dateValue, new \DateTimeZone('GMT'))) { return $date->format('U'); } + + return null; } /** diff --git a/src/Symfony/Component/BrowserKit/CookieJar.php b/src/Symfony/Component/BrowserKit/CookieJar.php index bce66197d3..835af19574 100644 --- a/src/Symfony/Component/BrowserKit/CookieJar.php +++ b/src/Symfony/Component/BrowserKit/CookieJar.php @@ -111,8 +111,8 @@ class CookieJar /** * Updates the cookie jar from a response Set-Cookie headers. * - * @param array $setCookies Set-Cookie headers from an HTTP response - * @param string $uri The base URL + * @param string[] $setCookies Set-Cookie headers from an HTTP response + * @param string $uri The base URL */ public function updateFromSetCookie(array $setCookies, $uri = null) { diff --git a/src/Symfony/Component/DependencyInjection/ChildDefinition.php b/src/Symfony/Component/DependencyInjection/ChildDefinition.php index f80fa3e8e3..e58620dcb5 100644 --- a/src/Symfony/Component/DependencyInjection/ChildDefinition.php +++ b/src/Symfony/Component/DependencyInjection/ChildDefinition.php @@ -89,7 +89,7 @@ class ChildDefinition extends Definition * @param int|string $index * @param mixed $value * - * @return self the current instance + * @return $this * * @throws InvalidArgumentException when $index isn't an integer */ diff --git a/src/Symfony/Component/Filesystem/Filesystem.php b/src/Symfony/Component/Filesystem/Filesystem.php index 3dc29bf842..41c84e7356 100644 --- a/src/Symfony/Component/Filesystem/Filesystem.php +++ b/src/Symfony/Component/Filesystem/Filesystem.php @@ -742,6 +742,11 @@ class Filesystem return 2 === \count($components) ? [$components[0], $components[1]] : [null, $components[0]]; } + /** + * @param callable $func + * + * @return mixed + */ private static function box($func) { self::$lastError = null; diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php index ceb67c0686..bacf077620 100644 --- a/src/Symfony/Component/Process/Process.php +++ b/src/Symfony/Component/Process/Process.php @@ -242,7 +242,7 @@ class Process implements \IteratorAggregate * This is identical to run() except that an exception is thrown if the process * exits with a non-zero exit code. * - * @return self + * @return $this * * @throws ProcessFailedException if the process didn't terminate successfully * @@ -966,7 +966,7 @@ class Process implements \IteratorAggregate * * @param string|array $commandline The command to execute * - * @return self The current Process instance + * @return $this * * @deprecated since Symfony 4.2. */ @@ -1000,13 +1000,13 @@ class Process implements \IteratorAggregate } /** - * Sets the process timeout (max. runtime). + * Sets the process timeout (max. runtime) in seconds. * * To disable the timeout, set this value to null. * * @param int|float|null $timeout The timeout in seconds * - * @return self The current Process instance + * @return $this * * @throws InvalidArgumentException if the timeout is negative */ @@ -1024,7 +1024,7 @@ class Process implements \IteratorAggregate * * @param int|float|null $timeout The timeout in seconds * - * @return self The current Process instance + * @return $this * * @throws LogicException if the output is disabled * @throws InvalidArgumentException if the timeout is negative @@ -1045,7 +1045,7 @@ class Process implements \IteratorAggregate * * @param bool $tty True to enabled and false to disable * - * @return self The current Process instance + * @return $this * * @throws RuntimeException In case the TTY mode is not supported */ @@ -1079,7 +1079,7 @@ class Process implements \IteratorAggregate * * @param bool $bool * - * @return self + * @return $this */ public function setPty($bool) { @@ -1119,7 +1119,7 @@ class Process implements \IteratorAggregate * * @param string $cwd The new working directory * - * @return self The current Process instance + * @return $this */ public function setWorkingDirectory($cwd) { @@ -1151,7 +1151,7 @@ class Process implements \IteratorAggregate * * @param array $env The new environment variables * - * @return self The current Process instance + * @return $this */ public function setEnv(array $env) { @@ -1182,7 +1182,7 @@ class Process implements \IteratorAggregate * * @param string|int|float|bool|resource|\Traversable|null $input The content * - * @return self The current Process instance + * @return $this * * @throws LogicException In case the process is running */ @@ -1202,7 +1202,7 @@ class Process implements \IteratorAggregate * * @param bool $inheritEnv * - * @return self The current Process instance + * @return $this */ public function inheritEnvironmentVariables($inheritEnv = true) { diff --git a/src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php b/src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php index ff8b2c08c3..6390a79f58 100644 --- a/src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php +++ b/src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php @@ -15,6 +15,7 @@ use Doctrine\Common\Annotations\Reader; use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\Config\Loader\LoaderResolverInterface; use Symfony\Component\Config\Resource\FileResource; +use Symfony\Component\Routing\Annotation\Route as RouteAnnotation; use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCollection; @@ -129,6 +130,10 @@ abstract class AnnotationClassLoader implements LoaderInterface return $collection; } + /** + * @param RouteAnnotation $annot or an object that exposes a similar interface + * @param array $globals + */ protected function addRoute(RouteCollection $collection, $annot, $globals, \ReflectionClass $class, \ReflectionMethod $method) { $name = $annot->getName(); diff --git a/src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php b/src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php index 52953a3b43..78e5a64e29 100644 --- a/src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php +++ b/src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php @@ -41,11 +41,11 @@ class LogoutUrlGenerator /** * Registers a firewall's LogoutListener, allowing its URL to be generated. * - * @param string $key The firewall key - * @param string $logoutPath The path that starts the logout process - * @param string $csrfTokenId The ID of the CSRF token - * @param string $csrfParameter The CSRF token parameter name - * @param CsrfTokenManagerInterface|null $csrfTokenManager A CsrfTokenManagerInterface instance + * @param string $key The firewall key + * @param string $logoutPath The path that starts the logout process + * @param string|null $csrfTokenId The ID of the CSRF token + * @param string|null $csrfParameter The CSRF token parameter name + * @param string|null $context The listener context */ public function registerListener($key, $logoutPath, $csrfTokenId, $csrfParameter, CsrfTokenManagerInterface $csrfTokenManager = null, string $context = null) { diff --git a/src/Symfony/Component/Validator/Resources/translations/validators.hy.xlf b/src/Symfony/Component/Validator/Resources/translations/validators.hy.xlf index bc0daced86..b005518f35 100644 --- a/src/Symfony/Component/Validator/Resources/translations/validators.hy.xlf +++ b/src/Symfony/Component/Validator/Resources/translations/validators.hy.xlf @@ -314,6 +314,58 @@ This is not a valid Business Identifier Code (BIC). Սա վավեր Business Identifier Code (BIC) չէ։ + + Error + Սխալ + + + This is not a valid UUID. + Սա վավեր UUID չէ: + + + This value should be a multiple of {{ compared_value }}. + Այս արժեքը պետք է լինի բազմակի {{ compared_value }}. + + + This Business Identifier Code (BIC) is not associated with IBAN {{ iban }}. + Բիզնեսի նույնականացման կոդը (BIC) կապված չէ IBAN- ի հետ {{ iban }}. + + + This value should be valid JSON. + Այս արժեքը պետք է լինի վավեր JSON: + + + This collection should contain only unique elements. + Այս հավաքածուն պետք է պարունակի միայն եզակի տարրեր: + + + This value should be positive. + Այս արժեքը պետք է լինի դրական: + + + This value should be either positive or zero. + Այս արժեքը պետք է լինի դրական կամ զրոյական: + + + This value should be negative. + Այս արժեքը պետք է լինի բացասական: + + + This value should be either negative or zero. + Այս արժեքը պետք է լինի բացասական կամ զրոյական: + + + This value is not a valid timezone. + Այս արժեքը վավեր ժամանակի գոտի չէ: + + + This password has been leaked in a data breach, it must not be used. Please use another password. + Այս գաղտնաբառն արտահոսվել է տվյալների խախտման մեջ, այն չպետք է օգտագործվի: Խնդրում ենք օգտագործել մեկ այլ գաղտնաբառ: + + + This value should be between {{ min }} and {{ max }}. + Այս արժեքը պետք է լինի միջև {{ min }} և {{ max }}. +