Here is the list of the most complex expressions used in the code. A complex expression is an expression that requires more than 20 tokens to be build.
Literal arrays are omitted.
File | Count | Expression |
---|---|---|
/src/Symfony/Bridge/Monolog/Formatter/ConsoleFormatter.php:117 | 1 | strtr($this->options['format'], ['%datetime%' => $record->datetime->format($this->options['date_format']), '%start_tag%' => sprintf('<%s>', self::LEVEL_COLOR_MAP[$record->level->value]), '%level_name%' => sprintf($this->options['level_name_format'], $record->level->getName( )), '%end_tag%' => '</>', '%channel%' => $record->channel, '%message%' => $this->replacePlaceHolder($record)->message, '%context%' => $context, '%extra%' => $extra, ]) |
/src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php:283 | 1 | serialize(['deprecation' => $deprecation[1], 'class' => $className, 'method' => $test->getName(false), 'triggering_file' => $deprecation[2] ?? null, 'files_stack' => $deprecation[3] ?? [ ]]) |
/src/Symfony/Component/HttpKernel/DataCollector/RequestDataCollector.php:157 | 1 | json_encode(['token' => $response->headers->get('x-debug-token'), 'route' => $request->attributes->get('_route', 'n/a'), 'method' => $request->getMethod( ), 'controller' => $this->parseController($request->attributes->get('_controller')), 'status_code' => $statusCode, 'status_text' => Response::$statusTexts[$statusCode], ]) |
/src/Symfony/Component/HttpKernel/Kernel.php:561 | 1 | realpath($cacheDir = ($this->getCacheDir( ) === $this->getBuildDir( ) ? ($this->warmupDir ?: $this->getCacheDir( )) : $this->getCacheDir( ))) |
/src/Symfony/Bridge/Twig/Tests/Mime/NotificationEmailTest.php:44 | 1 | serialize((new NotificationEmail( ))->content('Foo', true)->exception(new \Exception( ))->importance(NotificationEmail::IMPORTANCE_HIGH)->action('Bar', 'http://example.com/')->context(['a' => 'b'])->theme('example')) |
/src/Symfony/Bridge/Twig/Tests/Mime/NotificationEmailTest.php:44 | 1 | unserialize(serialize((new NotificationEmail( ))->content('Foo', true)->exception(new \Exception( ))->importance(NotificationEmail::IMPORTANCE_HIGH)->action('Bar', 'http://example.com/')->context(['a' => 'b'])->theme('example'))) |
/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ContainerDebugCommandTest.php:210 | 2 | file_put_contents($path, serialize([['type' => 16384, 'message' => 'The "Symfony\Bundle\FrameworkBundle\Controller\Controller" class is deprecated since Symfony 4.2, use Symfony\Bundle\FrameworkBundle\Controller\AbstractController instead.', 'file' => '/home/hamza/projet/contrib/sf/vendor/symfony/framework-bundle/Controller/Controller.php', 'line' => 17, 'trace' => [['file' => '/home/hamza/projet/contrib/sf/src/Controller/DefaultController.php', 'line' => 9, 'function' => 'spl_autoload_call', ]], 'count' => 1, ]])) |
/src/Symfony/Bundle/WebProfilerBundle/EventListener/WebDebugToolbarListener.php:143 | 1 | str_replace("\n", '', $this->twig->render('@WebProfiler/Profiler/toolbar_js.html.twig', ['full_stack' => class_exists(FullStack::class), 'excluded_ajax_paths' => $this->excludedAjaxPaths, 'token' => $response->headers->get('X-Debug-Token'), 'request' => $request, 'csp_script_nonce' => $nonces['csp_script_nonce'] ?? null, 'csp_style_nonce' => $nonces['csp_style_nonce'] ?? null, ])) |
/src/Symfony/Bundle/SecurityBundle/Resources/config/security.php:84 | 1 | service_locator(['security.token_storage' => service('security.token_storage'), 'security.authorization_checker' => service('security.authorization_checker'), 'security.authenticator.managers_locator' => service('security.authenticator.managers_locator')->ignoreOnInvalid( ), 'request_stack' => service('request_stack'), 'security.firewall.map' => service('security.firewall.map'), 'security.user_checker' => service('security.user_checker'), 'security.firewall.event_dispatcher_locator' => service('security.firewall.event_dispatcher_locator'), 'security.csrf.token_manager' => service('security.csrf.token_manager')->ignoreOnInvalid( ), ]) |
/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTestCase.php:2323 | 1 | array_merge(['kernel.bundles' => ['FrameworkBundle' => FrameworkBundle::class], 'kernel.bundles_metadata' => ['FrameworkBundle' => ['namespace' => 'Symfony\\Bundle\\FrameworkBundle', 'path' => __DIR__ . '/../..']], 'kernel.cache_dir' => __DIR__, 'kernel.build_dir' => __DIR__, 'kernel.project_dir' => __DIR__, 'kernel.debug' => false, 'kernel.environment' => 'test', 'kernel.runtime_mode.web' => true, 'kernel.name' => 'kernel', 'kernel.container_class' => 'testContainer', 'container.build_hash' => 'Abc1234', 'container.build_id' => hash('crc32', 'Abc123423456789'), 'container.build_time' => 23456789, ], $data) |
/src/Symfony/Component/String/Tests/UnicodeStringTest.php:54 | 1 | array_merge(parent::provideSplit( ), [['अ.नु.च्.छे.द', '.', [static::createFromString('अ'), static::createFromString('नु'), static::createFromString('च्'), static::createFromString('छे'), static::createFromString('द'), ], null, ], ]) |
/src/Symfony/Component/String/Tests/AbstractUnicodeTestCase.php:196 | 1 | array_merge(parent::provideSplit( ), [['會|意|文|字|/|会|意|文|字', '|', [static::createFromString('會'), static::createFromString('意'), static::createFromString('文'), static::createFromString('字'), static::createFromString('/'), static::createFromString('会'), static::createFromString('意'), static::createFromString('文'), static::createFromString('字'), ], null, ], ['會|意|文|字|/|会|意|文|字', '|', [static::createFromString('會'), static::createFromString('意'), static::createFromString('文'), static::createFromString('字'), static::createFromString('/|会|意|文|字'), ], 5, ], ]) |
/src/Symfony/Component/String/Tests/AbstractUnicodeTestCase.php:233 | 1 | array_merge(parent::provideChunk( ), [['déjà', [static::createFromString('d'), static::createFromString('é'), static::createFromString('j'), static::createFromString('à'), ], 1, ], ['déjà', [static::createFromString('dé'), static::createFromString('jà'), ], 2, ], ]) |
/src/Symfony/Component/VarDumper/Caster/DateCaster.php:96 | 1 | sprintf('%s more', ($end = $p->getEndDate( )) ? ceil(($end->format('U.u') - $d->format('U.u')) / ((int) $now->add($p->getDateInterval( ))->format('U.u') - (int) $now->format('U.u'))) : $p->recurrences - $i) |
/src/Symfony/Component/VarDumper/Caster/DateCaster.php:97 | 1 | ceil(($end->format('U.u') - $d->format('U.u')) / ((int) $now->add($p->getDateInterval( ))->format('U.u') - (int) $now->format('U.u'))) |
/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:138 | 1 | array_merge(['class' => 'ProjectServiceContainer', 'base_class' => 'Container', 'namespace' => '', 'as_files' => false, 'debug' => true, 'hot_path_tag' => 'container.hot_path', 'preload_tags' => ['container.preload', 'container.no_preload'], 'inline_factories' => null, 'inline_class_loader' => null, 'preload_classes' => [ ], 'service_locator_tag' => 'container.service_locator', 'build_time' => time( ), ], $options) |
/src/Symfony/Component/HttpFoundation/Request.php:282 | 1 | array_replace(['SERVER_NAME' => 'localhost', 'SERVER_PORT' => 80, 'HTTP_HOST' => 'localhost', 'HTTP_USER_AGENT' => 'Symfony', 'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_LANGUAGE' => 'en-us,en;q=0.5', 'HTTP_ACCEPT_CHARSET' => 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'REMOTE_ADDR' => '127.0.0.1', 'SCRIPT_NAME' => '', 'SCRIPT_FILENAME' => '', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_TIME' => time( ), 'REQUEST_TIME_FLOAT' => microtime(true), ], $server) |
/src/Symfony/Component/Console/Helper/ProgressBar.php:218 | 1 | floor($this->max ? $this->percent * $this->barWidth : (null === $this->redrawFreq ? (int) (min(5, $this->barWidth / 15) * $this->writeCount) : $this->step) % $this->barWidth) |
/src/Symfony/Component/Notifier/Bridge/Novu/NovuOptions.php:49 | 1 | array_merge($this->options, ['firstName' => $this->firstName, 'lastName' => $this->lastName, 'email' => $this->email, 'phone' => $this->phone, 'avatar' => $this->avatar, 'locale' => $this->locale, 'overrides' => $this->overrides, ]) |
/src/Symfony/Component/Security/Http/Tests/AccessToken/Oidc/OidcTokenHandlerTest.php:105 | 1 | json_encode(['iat' => time( ) - 3600, 'nbf' => time( ) - 3600, 'exp' => time( ) - 3590, 'iss' => 'https://www.example.com', 'aud' => self::AUDIENCE, 'sub' => 'e21bf182-1538-406e-8ccb-e25a17aba39f', 'email' => 'foo@example.com', ]) |
/src/Symfony/Component/Uid/Ulid.php:200 | 1 | strtr(sprintf('%010s%04s%04s%04s%04s', $time, base_convert(self::$rand[1], 10, 32), base_convert(self::$rand[2], 10, 32), base_convert(self::$rand[3], 10, 32), base_convert(self::$rand[4], 10, 32)), 'abcdefghijklmnopqrstuv', 'ABCDEFGHJKMNPQRSTVWXYZ') |
/src/Symfony/Component/Uid/UuidV7.php:116 | 1 | substr_replace(sprintf('%012s-%04x-%04x-%04x%04x%04x', $time, 0x7000 | (self::$rand[1] << 2) | (self::$rand[2] >> 14), 0x8000 | (self::$rand[2] & 0x3FFF), self::$rand[3], self::$rand[4], self::$rand[5], ), '-', 8, 0) |
/src/Symfony/Component/Scheduler/DependencyInjection/AddScheduleMessengerPass.php:69 | 1 | array_filter(match ($tagAttributes['trigger'] ?? throw new InvalidArgumentException(sprintf('Tag "scheduler.task" is missing attribute "trigger" on service "%s".', $serviceId))) { /**/ } , fn ($value) => null !== $value) |
/src/Symfony/Component/VarExporter/Internal/Exporter.php:229 | 1 | sprintf('\'."%s".\'', str_replace(["\0", "\r", "\n", "\u{202A}", "\u{202B}", "\u{202D}", "\u{202E}", "\u{2066}", "\u{2067}", "\u{2068}", "\u{202C}", "\u{2069}", '\n\\'], ['\0', '\r', '\n', '\u{202A}', '\u{202B}', '\u{202D}', '\u{202E}', '\u{2066}', '\u{2067}', '\u{2068}', '\u{202C}', '\u{2069}', '\n"' . "\n" . $subIndent . '."\\'], $m[1])) |
/src/Symfony/Component/Messenger/Bridge/Amqp/Transport/Connection.php:181 | 1 | array_replace_recursive(['host' => $params['host'] ?? 'localhost', 'port' => $params['port'] ?? $port, 'vhost' => isset($pathParts[0]) ? urldecode($pathParts[0]) : '/', 'exchange' => ['name' => $exchangeName, ], ], $options, $parsedQuery) |
/src/Symfony/Component/String/Tests/UnicodeStringTest.php:26 | 1 | array_merge(parent::provideWrap( ), [[['Käse' => static::createFromString('köstlich'), 'fromage' => static::createFromString('délicieux')], ["Ka\u{0308}se" => "ko\u{0308}stlich", 'fromage' => 'délicieux'], ], [['a' => 1, 'ä' => ['ö' => 2, 'ü' => 3]], ['a' => 1, "a\u{0308}" => ["o\u{0308}" => 2, 'ü' => 3]], ], ]) |
/src/Symfony/Component/HttpKernel/Profiler/FileProfilerStorage.php:180 | 1 | fputcsv($file, [$profile->getToken( ), $profile->getIp( ), $profile->getMethod( ), $profile->getUrl( ), $profile->getTime( ) ?: time( ), $profile->getParentToken( ), $profile->getStatusCode( ), $profile->getVirtualType( ) ?? 'request', ]) |
/src/Symfony/Component/HttpKernel/Tests/DataCollector/LoggerDataCollectorTest.php:54 | 2 | file_put_contents($path, serialize([['type' => 16384, 'message' => 'The "Symfony\Bundle\FrameworkBundle\Controller\Controller" class is deprecated since Symfony 4.2, use Symfony\Bundle\FrameworkBundle\Controller\AbstractController instead.', 'file' => '/home/hamza/projet/contrib/sf/vendor/symfony/framework-bundle/Controller/Controller.php', 'line' => 17, 'trace' => [['file' => '/home/hamza/projet/contrib/sf/src/Controller/DefaultController.php', 'line' => 9, 'function' => 'spl_autoload_call', ]], 'count' => 1, ]])) |
/src/Symfony/Component/Form/Extension/Core/Type/BaseType.php:94 | 1 | array_replace($view->vars, ['form' => $view, 'id' => $id, 'name' => $name, 'full_name' => $fullName, 'disabled' => $form->isDisabled( ), 'label' => $options['label'], 'label_format' => $labelFormat, 'label_html' => $options['label_html'], 'multipart' => false, 'attr' => $options['attr'], 'block_prefixes' => $blockPrefixes, 'unique_block_prefix' => $uniqueBlockPrefix, 'row_attr' => $options['row_attr'], 'translation_domain' => $translationDomain, 'label_translation_parameters' => $labelTranslationParameters, 'attr_translation_parameters' => $attrTranslationParameters, 'priority' => $options['priority'], AbstractRendererEngine::CACHE_KEY_VAR => $uniqueBlockPrefix . '_' . $form->getConfig( )->getType( )->getBlockPrefix( ), ]) |
/src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToArrayTransformer.php:74 | 1 | array_intersect_key(['year' => $dateTime->format('Y'), 'month' => $dateTime->format('m'), 'day' => $dateTime->format('d'), 'hour' => $dateTime->format('H'), 'minute' => $dateTime->format('i'), 'second' => $dateTime->format('s'), ], array_flip($this->fields)) |
/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php:234 | 1 | array_replace($view->vars, ['multiple' => $options['multiple'], 'expanded' => $options['expanded'], 'preferred_choices' => $choiceListView->preferredChoices, 'choices' => $choiceListView->choices, 'separator' => '-------------------', 'placeholder' => null, 'placeholder_attr' => [ ], 'choice_translation_domain' => $choiceTranslationDomain, 'choice_translation_parameters' => $options['choice_translation_parameters'], ]) |
/src/Symfony/Component/Form/Extension/Core/Type/FormType.php:90 | 1 | array_replace($view->vars, ['errors' => $form->getErrors( ), 'valid' => $form->isSubmitted( ) ? $form->isValid( ) : true, 'value' => $form->getViewData( ), 'data' => $form->getNormData( ), 'required' => $form->isRequired( ), 'label_attr' => $options['label_attr'], 'help' => $options['help'], 'help_attr' => $options['help_attr'], 'help_html' => $options['help_html'], 'help_translation_parameters' => $helpTranslationParameters, 'compound' => $formConfig->getCompound( ), 'method' => $formConfig->getMethod( ), 'action' => $formConfig->getAction( ), 'submitted' => $form->isSubmitted( ), ]) |
/src/Symfony/Component/Notifier/Bridge/Twitter/TwitterTransport.php:96 | 1 | base64_encode(hash_hmac('sha1', implode('&', array_map('rawurlencode', [$method, $url, implode('&', array_map(fn ($k) => rawurlencode($k) . '=' . rawurlencode($sign[$k]), array_keys($sign))), ])), rawurlencode($this->apiSecret) . '&' . rawurlencode($this->accessSecret), true)) |
/src/Symfony/Component/HttpClient/NativeHttpClient.php:228 | 1 | array_filter(['verify_peer' => $options['verify_peer'], 'verify_peer_name' => $options['verify_host'], 'cafile' => $options['cafile'], 'capath' => $options['capath'], 'local_cert' => $options['local_cert'], 'local_pk' => $options['local_pk'], 'passphrase' => $options['passphrase'], 'ciphers' => $options['ciphers'], 'peer_fingerprint' => $options['peer_fingerprint'], 'capture_peer_cert_chain' => $options['capture_peer_cert_chain'], 'allow_self_signed' => (bool) $options['peer_fingerprint'], 'SNI_enabled' => true, 'disable_compression' => true, 'crypto_method' => $cryptoMethod, ], static fn ($v) => null !== $v) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/BaseTypeTestCase.php:219 | 4 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE)->add('child', $this->getTestedType( ), $this->getTestOptions( ))->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Validator/ValidatorTypeGuesserTest.php:75 | 1 | return [[new Type('array'), new TypeGuess(CollectionType::class, [ ], Guess::MEDIUM_CONFIDENCE)], [new Type('bool'), new TypeGuess(CheckboxType::class, [ ], Guess::MEDIUM_CONFIDENCE)], [new Type('boolean'), new TypeGuess(CheckboxType::class, [ ], Guess::MEDIUM_CONFIDENCE)], [new Type('double'), new TypeGuess(NumberType::class, [ ], Guess::MEDIUM_CONFIDENCE)], [new Type('float'), new TypeGuess(NumberType::class, [ ], Guess::MEDIUM_CONFIDENCE)], [new Type('numeric'), new TypeGuess(NumberType::class, [ ], Guess::MEDIUM_CONFIDENCE)], [new Type('real'), new TypeGuess(NumberType::class, [ ], Guess::MEDIUM_CONFIDENCE)], [new Type('int'), new TypeGuess(IntegerType::class, [ ], Guess::MEDIUM_CONFIDENCE)], [new Type('integer'), new TypeGuess(IntegerType::class, [ ], Guess::MEDIUM_CONFIDENCE)], [new Type('long'), new TypeGuess(IntegerType::class, [ ], Guess::MEDIUM_CONFIDENCE)], [new Type('string'), new TypeGuess(TextType::class, [ ], Guess::LOW_CONFIDENCE)], [new Type(\DateTime::class), new TypeGuess(DateType::class, [ ], Guess::MEDIUM_CONFIDENCE)], [new Type(\DateTimeImmutable::class), new TypeGuess(DateType::class, ['input' => 'datetime_immutable'], Guess::MEDIUM_CONFIDENCE)], [new Type('\DateTime'), new TypeGuess(DateType::class, [ ], Guess::MEDIUM_CONFIDENCE)], ] |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/BaseTypeTestCase.php:190 | 1 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE, null, ['attr_translation_parameters' => ['%parent_param%' => 'parent_value', '%override_param%' => 'parent_override_value'], ])->add('child', $this->getTestedType( ), array_merge($this->getTestOptions( ), ['attr_translation_parameters' => ['%override_param%' => 'child_value'], ]))->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/BaseTypeTestCase.php:207 | 4 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE)->add('child', $this->getTestedType( ), $this->getTestOptions( ))->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/BaseTypeTestCase.php:158 | 1 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE, null, ['attr_translation_parameters' => ['%param%' => 'value'], ])->add('child', $this->getTestedType( ), $this->getTestOptions( ))->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/BaseTypeTestCase.php:173 | 1 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE, null, ['label_translation_parameters' => ['%parent_param%' => 'parent_value', '%override_param%' => 'parent_override_value'], ])->add('child', $this->getTestedType( ), array_merge($this->getTestOptions( ), ['label_translation_parameters' => ['%override_param%' => 'child_value'], ]))->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/BaseTypeTestCase.php:107 | 4 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE)->add('child', $this->getTestedType( ), $this->getTestOptions( ))->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/BaseTypeTestCase.php:143 | 1 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE, null, ['label_translation_parameters' => ['%param%' => 'value'], ])->add('child', $this->getTestedType( ), $this->getTestOptions( ))->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/BaseTypeTestCase.php:79 | 1 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE, null, ['translation_domain' => 'domain', ])->add('child', $this->getTestedType( ), $this->getTestOptions( ))->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/BaseTypeTestCase.php:92 | 1 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE, null, ['translation_domain' => 'parent_domain', ])->add('child', $this->getTestedType( ), array_merge($this->getTestOptions( ), ['translation_domain' => 'domain', ]))->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/CollectionTypeTest.php:448 | 1 | $form = $this->factory->create(static::TESTED_TYPE, ['first'], ['allow_add' => true, 'prototype' => true, 'entry_type' => TextTypeTest::TESTED_TYPE, 'entry_options' => ['disabled' => true, ], 'prototype_options' => ['disabled' => false, ], ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/BaseTypeTestCase.php:45 | 4 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE)->add('child', $this->getTestedType( ), $this->getTestOptions( ))->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/CollectionTypeTest.php:408 | 1 | $child = $this->factory->create(static::TESTED_TYPE, [ ], ['entry_type' => FileTypeTest::TESTED_TYPE, 'allow_add' => true, 'prototype' => true, 'prototype_name' => '__test__', 'entry_options' => ['required' => true, ], ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/CollectionTypeTest.php:431 | 1 | $form = $this->factory->create(static::TESTED_TYPE, [ ], ['allow_add' => true, 'prototype' => true, 'entry_type' => TextTypeTest::TESTED_TYPE, 'entry_options' => ['help' => null, ], 'prototype_options' => ['help' => 'foo', ], ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/CollectionTypeTest.php:214 | 1 | $form = $this->factory->create(static::TESTED_TYPE, null, ['entry_type' => ChoiceType::class, 'entry_options' => ['choices' => ['a', 'b'], ], 'allow_add' => true, 'allow_delete' => true, 'delete_empty' => true, ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/CollectionTypeTest.php:346 | 1 | $form = $this->factory->create(static::TESTED_TYPE, [ ], ['allow_add' => true, 'prototype' => true, 'prototype_data' => 'foo', 'entry_type' => TextTypeTest::TESTED_TYPE, 'entry_options' => ['data' => 'bar', 'label' => false, ], ]) |
/src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorFunctionalTest.php:358 | 1 | $form = $this->formFactory->create(FormType::class, null, ['validation_groups' => new GroupSequence(['group1', 'group2']), ])->add('field1', null, ['constraints' => [new NotBlank(['groups' => 'group1'])], 'property_path' => '[foo]', ])->add('field2', null, ['constraints' => [new NotBlank(['groups' => 'group2'])], 'property_path' => '[bar]', ]) |
/src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorFunctionalTest.php:329 | 1 | $form = $this->formFactory->create(FormType::class, null, ['data_class' => Review::class, ])->add('title')->add('customers', CollectionType::class, ['mapped' => false, 'entry_type' => CustomerType::class, 'allow_add' => true, 'constraints' => [new Valid( )], ]) |
/src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorFunctionalTest.php:267 | 1 | $form = $this->formFactory->create(FormType::class, null, ['validation_groups' => ['group1', 'group2'], ])->add('field1', null, ['constraints' => [new NotBlank(['groups' => 'group1'])], 'property_path' => '[foo]', ])->add('field2', null, ['constraints' => [new NotBlank(['groups' => 'group2'])], 'property_path' => '[bar]', ]) |
/src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorFunctionalTest.php:239 | 1 | $form = $this->formFactory->create(FormType::class, null, ['validation_groups' => new GroupSequence(['group1', 'group2']), ])->add('bar')->add('foo', TextType::class, ['constraints' => [new NotBlank(['groups' => ['group1'], ]), new Length(['groups' => ['group2'], 'max' => 3, ]), ], ]) |
/src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorFunctionalTest.php:212 | 1 | $form = $this->formFactory->create(FormType::class, null, ['validation_groups' => new GroupSequence(['group1', 'group2']), ])->add('foo', TextType::class, ['constraints' => [new NotBlank(['groups' => ['group1'], ]), new Length(['groups' => ['group2'], 'max' => 3, ]), ], ]) |
/src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorFunctionalTest.php:187 | 1 | $form = $this->formFactory->create(FormType::class, null, ['validation_groups' => new GroupSequence([['group1', 'group2'], 'group3']), ])->add('foo', TextType::class, ['constraints' => [new Length(['min' => 10, 'groups' => ['group1']])], ])->add('bar', TextType::class, ['constraints' => [new Length(['min' => 10, 'groups' => ['group2']])], ])->add('baz', TextType::class, ['constraints' => [new NotBlank(['groups' => ['group3']])], ]) |
/src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorFunctionalTest.php:166 | 1 | $form = $this->formFactory->create(FormType::class, null, ['validation_groups' => new GroupSequence(['group1', 'group2']), ])->add('foo', TextType::class, ['constraints' => [new Length(['min' => 10, 'groups' => ['group1']])], ])->add('bar', TextType::class, ['constraints' => [new NotBlank(['groups' => ['group2']])], ]) |
/src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorFunctionalTest.php:136 | 1 | $form = $this->formFactory->create(FormType::class, null, ['constraints' => [new Collection(['field1' => new NotBlank(['groups' => ['field1'], ]), 'field2' => new NotBlank(['groups' => ['field2'], ]), ]), ], 'validation_groups' => new GroupSequence(['field1', 'field2']), ]) |
/src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorFunctionalTest.php:105 | 1 | $form = $this->formFactory->create(FormType::class, null, ['constraints' => [new Collection(['field1' => new NotBlank(['groups' => ['field1'], ]), 'field2' => new NotBlank(['groups' => ['field2'], ]), ]), ], 'validation_groups' => ['field1', 'field2'], ]) |
/src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorTest.php:727 | 1 | return $this->getBuilder('name', \is_object($data) ? $data::class : null, $options)->setData($data)->setCompound(true)->setDataMapper(new DataMapper( ))->getForm( ) |
/src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorTest.php:686 | 1 | $form = $this->getBuilder('form', null, ['constraints' => [new NotBlank(['groups' => ['foo']])]])->setCompound(true)->setDataMapper(new DataMapper( ))->getForm( ) |
/src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorTest.php:657 | 1 | $form = $this->getBuilder('parent', null, ['allow_extra_fields' => true])->setCompound(true)->setDataMapper(new DataMapper( ))->add($this->getBuilder('child'))->getForm( ) |
/src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorTest.php:632 | 1 | $form = $this->getBuilder('parent', null, ['extra_fields_message' => 'Extra!|Extras!!'])->setCompound(true)->setDataMapper(new DataMapper( ))->add($this->getBuilder('child'))->getForm( ) |
/src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorTest.php:607 | 1 | $form = $this->getBuilder('parent', null, ['extra_fields_message' => 'Extra!|Extras!'])->setCompound(true)->setDataMapper(new DataMapper( ))->add($this->getBuilder('child'))->getForm( ) |
/src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorTest.php:294 | 1 | $form = $this->getBuilder('name', '\stdClass', ['invalid_message' => 'invalid_message_key', 'invalid_message_parameters' => ['{{ foo }}' => 'bar'], 'validation_groups' => [ ], ])->setData($object)->addViewTransformer(new CallbackTransformer(static fn ($data) => $data, static fn ( ) => throw new TransformationFailedException( )))->getForm( ) |
/src/Symfony/Component/Form/Tests/Extension/Validator/ValidatorTypeGuesserTest.php:95 | 1 | return [[new NotNull( ), new ValueGuess(true, Guess::HIGH_CONFIDENCE)], [new NotBlank( ), new ValueGuess(true, Guess::HIGH_CONFIDENCE)], [new IsTrue( ), new ValueGuess(true, Guess::HIGH_CONFIDENCE)], [new Length(['min' => 10, 'max' => 10]), new ValueGuess(false, Guess::LOW_CONFIDENCE)], [new Range(['min' => 1, 'max' => 20]), new ValueGuess(false, Guess::LOW_CONFIDENCE)], ] |
/src/Symfony/Component/Form/Tests/ChoiceList/Factory/DefaultChoiceListFactoryTest.php:150 | 1 | $list = $this->factory->createListFromChoices(['Group 1' => ['A' => $this->obj1, 'B' => $this->obj2], 'Group 2' => ['C' => $this->obj3, 'D' => $this->obj4], ]) |
/src/Symfony/Component/Form/Tests/ChoiceList/Factory/DefaultChoiceListFactoryTest.php:160 | 1 | $list = $this->factory->createListFromChoices(new \ArrayIterator(['Group 1' => ['A' => $this->obj1, 'B' => $this->obj2], 'Group 2' => ['C' => $this->obj3, 'D' => $this->obj4], ])) |
/src/Symfony/Component/Form/Tests/ChoiceList/Factory/DefaultChoiceListFactoryTest.php:172 | 1 | $list = $this->factory->createListFromChoices(['Group 1' => ['A' => $this->obj1, 'B' => $this->obj2], 'Group 2' => ['C' => $this->obj3, 'D' => $this->obj4], ], $this->getValue(...)) |
/src/Symfony/Component/Form/Tests/ChoiceList/Factory/DefaultChoiceListFactoryTest.php:185 | 1 | $list = $this->factory->createListFromChoices(['Group 1' => ['A' => $this->obj1, 'B' => $this->obj2], 'Group 2' => ['C' => $this->obj3, 'D' => $this->obj4], ], fn ($object) => $object->value) |
/src/Symfony/Component/Form/Tests/Extension/PasswordHasher/Type/PasswordTypePasswordHasherExtensionTest.php:127 | 1 | $form = $this->factory->createBuilder('Symfony\Component\Form\Extension\Core\Type\FormType', null, ['data_class' => User::class, 'empty_data' => function ( ) use ($user) { /**/ } , ])->add('plainPassword', 'Symfony\Component\Form\Extension\Core\Type\PasswordType', ['hash_property_path' => 'password', 'mapped' => false, ])->getForm( ) |
/src/Symfony/Component/Form/Tests/Extension/PasswordHasher/Type/PasswordTypePasswordHasherExtensionTest.php:205 | 1 | $form = $this->factory->createBuilder('Symfony\Component\Form\Extension\Core\Type\FormType', $user)->add('plainPassword', 'Symfony\Component\Form\Extension\Core\Type\PasswordType', ['hash_property_path' => 'password', 'mapped' => false, ])->add('integer', 'Symfony\Component\Form\Extension\Core\Type\IntegerType', ['mapped' => false, ])->getForm( ) |
/src/Symfony/Component/Form/Tests/ChoiceList/Factory/CachingFactoryDecoratorTest.php:564 | 1 | return [[0, false], [0, null], [0, '0'], [0, ''], [1, true], [1, '1'], [1, 'a'], ['', false], ['', null], [false, null], [(object) ['foo' => 'bar'], (object) ['foo' => 'bar']], ] |
/src/Symfony/Component/Form/Tests/ChoiceList/Factory/DefaultChoiceListFactoryTest.php:130 | 1 | $list = $this->factory->createListFromChoices(['A' => $this->obj1, 'B' => $this->obj2, 'C' => $this->obj3, 'D' => $this->obj4], $this->getValue(...)) |
/src/Symfony/Component/Form/Tests/Extension/Csrf/Type/FormTypeCsrfExtensionTest.php:179 | 2 | $form = $this->factory->createBuilder('Symfony\Component\Form\Extension\Core\Type\FormType', null, ['csrf_field_name' => 'csrf', 'csrf_token_manager' => $this->tokenManager, 'csrf_token_id' => 'TOKEN_ID', 'compound' => true, ])->add('child', 'Symfony\Component\Form\Extension\Core\Type\TextType')->getForm( ) |
/src/Symfony/Component/Form/Tests/Extension/Csrf/Type/FormTypeCsrfExtensionTest.php:268 | 2 | $form = $this->factory->createBuilder('Symfony\Component\Form\Extension\Core\Type\FormType', null, ['csrf_field_name' => 'csrf', 'csrf_token_manager' => $this->tokenManager, 'csrf_token_id' => 'TOKEN_ID', 'compound' => true, ])->add('child', 'Symfony\Component\Form\Extension\Core\Type\TextType')->getForm( ) |
/src/Symfony/Component/Form/Tests/Extension/Csrf/Type/FormTypeCsrfExtensionTest.php:295 | 1 | $form = $this->factory->createNamedBuilder('root', 'Symfony\Component\Form\Extension\Core\Type\FormType')->add($this->factory->createNamedBuilder('form', 'Symfony\Component\Form\Extension\Core\Type\FormType', null, ['csrf_field_name' => 'csrf', 'csrf_token_manager' => $this->tokenManager, 'csrf_token_id' => 'TOKEN_ID', 'compound' => true, ]))->getForm( )->get('form') |
/src/Symfony/Component/Form/Tests/Extension/Csrf/Type/FormTypeCsrfExtensionTest.php:334 | 1 | $prototypeView = $this->factory->create('Symfony\Component\Form\Extension\Core\Type\CollectionType', null, ['entry_type' => __CLASS__ . '_ChildType', 'entry_options' => ['csrf_field_name' => 'csrf', ], 'prototype' => true, 'allow_add' => true, ])->createView( )->vars['prototype'] |
/src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorFunctionalTest.php:406 | 1 | $form = $this->formFactory->create(FormType::class, null, ['validation_groups' => new GroupSequence(['group1']), ])->add('field1', null, ['constraints' => [new Expression(['expression' => '!this.getParent().get("field2").getData()', 'groups' => ['group1'], ])], ])->add('field2') |
/src/Symfony/Component/Form/Tests/Extension/Validator/Type/FormTypeValidatorExtensionTest.php:78 | 1 | $form = Forms::createFormFactoryBuilder( )->addExtension(new ValidatorExtension(Validation::createValidator( ), false))->getFormFactory( )->create(FormTypeTest::TESTED_TYPE, null, ['validation_groups' => new GroupSequence(['First', 'Second'])])->add('field', TextTypeTest::TESTED_TYPE, ['constraints' => [new Length(['min' => 10, 'groups' => ['First']]), new NotBlank(['groups' => ['Second']]), ], ]) |
/src/Symfony/Component/Form/Tests/Extension/Validator/Type/FormTypeValidatorExtensionTest.php:124 | 1 | $form = Forms::createFormFactoryBuilder( )->addExtension(new ValidatorExtension($validator))->getFormFactory( )->create(FormTypeTest::TESTED_TYPE, new Author( ), ['validation_groups' => new GroupSequence(['First', 'Second'])])->add('firstName', TextTypeTest::TESTED_TYPE)->add('lastName', TextTypeTest::TESTED_TYPE, ['constraints' => [new Length(['min' => 10, 'groups' => ['First']]), ], ])->add('australian', TextTypeTest::TESTED_TYPE, ['constraints' => [new NotBlank(['groups' => ['Second']]), ], ]) |
/src/Symfony/Component/Form/Tests/Extension/Csrf/Type/FormTypeCsrfExtensionTest.php:66 | 1 | $view = $this->factory->createNamedBuilder('root', 'Symfony\Component\Form\Extension\Core\Type\FormType')->add($this->factory->createNamedBuilder('form', 'Symfony\Component\Form\Extension\Core\Type\FormType', null, ['csrf_field_name' => 'csrf', 'compound' => true, ]))->getForm( )->get('form')->createView( ) |
/src/Symfony/Component/HttpClient/NativeHttpClient.php:216 | 1 | $context = ['http' => ['protocol_version' => min($options['http_version'] ?: '1.1', '1.1'), 'method' => $method, 'content' => $options['body'], 'ignore_errors' => true, 'curl_verify_ssl_peer' => $options['verify_peer'], 'curl_verify_ssl_host' => $options['verify_host'], 'auto_decode' => false, 'timeout' => $options['timeout'], 'follow_location' => false, ], 'ssl' => array_filter(['verify_peer' => $options['verify_peer'], 'verify_peer_name' => $options['verify_host'], 'cafile' => $options['cafile'], 'capath' => $options['capath'], 'local_cert' => $options['local_cert'], 'local_pk' => $options['local_pk'], 'passphrase' => $options['passphrase'], 'ciphers' => $options['ciphers'], 'peer_fingerprint' => $options['peer_fingerprint'], 'capture_peer_cert_chain' => $options['capture_peer_cert_chain'], 'allow_self_signed' => (bool) $options['peer_fingerprint'], 'SNI_enabled' => true, 'disable_compression' => true, 'crypto_method' => $cryptoMethod, ], static fn ($v) => null !== $v), 'socket' => ['bindto' => $options['bindto'], 'tcp_nodelay' => true, ], ] |
/src/Symfony/Component/HttpClient/NativeHttpClient.php:115 | 1 | $info = ['response_headers' => [ ], 'url' => $url, 'error' => null, 'canceled' => false, 'http_method' => $method, 'http_code' => 0, 'redirect_count' => 0, 'start_time' => 0.0, 'connect_time' => 0.0, 'redirect_time' => 0.0, 'pretransfer_time' => 0.0, 'starttransfer_time' => 0.0, 'total_time' => 0.0, 'namelookup_time' => 0.0, 'size_upload' => 0, 'size_download' => 0, 'size_body' => \strlen($options['body']), 'primary_ip' => '', 'primary_port' => 'http:' === $url['scheme'] ? 80 : 443, 'debug' => \extension_loaded('curl') ? '' : "* Enable the curl extension for better performance\n", ] |
/src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php:91 | 1 | $paramValues = ['class' => $token->getClass( ), 'username' => $token->getUserIdentifier( ), 'series' => $token->getSeries( ), 'value' => $token->getTokenValue( ), 'lastUsed' => \DateTimeImmutable::createFromInterface($token->getLastUsed( )), ] |
/src/Symfony/Component/HttpClient/Response/MockResponse.php:107 | 1 | $dlSize = isset($this->headers['content-encoding']) || 'HEAD' === ($this->info['http_method'] ?? null) || \in_array($this->info['http_code'], [204, 304], true) ? 0 : (int) ($this->headers['content-length'][0] ?? 0) |
/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php:121 | 1 | return ChoiceList::loader($this, new DoctrineChoiceLoader($options['em'], $options['class'], $options['id_reader'], $this->getCachedEntityLoader($options['em'], $options['query_builder'] ?? $options['em']->getRepository($options['class'])->createQueryBuilder('e'), $options['class'], $vary)), $vary) |
/src/Symfony/Component/HttpClient/CurlHttpClient.php:112 | 1 | $curlopts = [\CURLOPT_URL => $url, \CURLOPT_TCP_NODELAY => true, \CURLOPT_PROTOCOLS => \CURLPROTO_HTTP | \CURLPROTO_HTTPS, \CURLOPT_REDIR_PROTOCOLS => \CURLPROTO_HTTP | \CURLPROTO_HTTPS, \CURLOPT_FOLLOWLOCATION => true, \CURLOPT_MAXREDIRS => 0 < $options['max_redirects'] ? $options['max_redirects'] : 0, \CURLOPT_COOKIEFILE => '', \CURLOPT_TIMEOUT => 0, \CURLOPT_PROXY => $proxy, \CURLOPT_NOPROXY => $options['no_proxy'] ?? $_SERVER['no_proxy'] ?? $_SERVER['NO_PROXY'] ?? '', \CURLOPT_SSL_VERIFYPEER => $options['verify_peer'], \CURLOPT_SSL_VERIFYHOST => $options['verify_host'] ? 2 : 0, \CURLOPT_CAINFO => $options['cafile'], \CURLOPT_CAPATH => $options['capath'], \CURLOPT_SSL_CIPHER_LIST => $options['ciphers'], \CURLOPT_SSLCERT => $options['local_cert'], \CURLOPT_SSLKEY => $options['local_pk'], \CURLOPT_KEYPASSWD => $options['passphrase'], \CURLOPT_CERTINFO => $options['capture_peer_cert_chain'], \CURLOPT_SSLVERSION => match ($options['crypto_method']) { /**/ } , ] |
/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php:196 | 1 | $view = $this->factory->createNamed('name', static::TESTED_TYPE, null, ['em' => 'default', 'class' => self::SINGLE_IDENT_CLASS, 'required' => false, 'choice_label' => 'name', 'query_builder' => $qb, ])->createView( ) |
/src/Symfony/Component/HttpClient/HttpClientTrait.php:665 | 1 | return ['scheme' => $scheme, 'authority' => null !== $host ? '//' . (isset($parts['user']) ? $parts['user'] . (isset($parts['pass']) ? ':' . $parts['pass'] : '') . '@' : '') . $host : null, 'path' => isset($parts['path'][0]) ? $parts['path'] : null, 'query' => isset($parts['query']) ? '?' . $parts['query'] : null, 'fragment' => isset($parts['fragment']) ? '#' . $parts['fragment'] : null, ] |
/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php:67 | 1 | $classes = [$this->em->getClassMetadata(self::ITEM_GROUP_CLASS), $this->em->getClassMetadata(self::SINGLE_IDENT_CLASS), $this->em->getClassMetadata(self::SINGLE_IDENT_NO_TO_STRING_CLASS), $this->em->getClassMetadata(self::SINGLE_STRING_IDENT_CLASS), $this->em->getClassMetadata(self::SINGLE_ASSOC_IDENT_CLASS), $this->em->getClassMetadata(self::SINGLE_STRING_CASTABLE_IDENT_CLASS), $this->em->getClassMetadata(self::COMPOSITE_IDENT_CLASS), $this->em->getClassMetadata(self::COMPOSITE_STRING_IDENT_CLASS), ] |
/src/Symfony/Component/Form/Console/Descriptor/JsonDescriptor.php:53 | 1 | $data = ['class' => $resolvedFormType->getInnerType( )::class, 'block_prefix' => $resolvedFormType->getInnerType( )->getBlockPrefix( ), 'options' => $formOptions, 'parent_types' => $this->parents, 'type_extensions' => $this->extensions, ] |
/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php:872 | 1 | $field = $this->factory->createNamed('name', static::TESTED_TYPE, null, ['em' => 'default', 'class' => self::SINGLE_IDENT_CLASS, 'choices' => [$entity2, $entity3], 'preferred_choices' => [$entity3], 'choice_label' => 'name', ]) |
/src/Symfony/Component/HttpClient/HttpClientTrait.php:787 | 1 | return ['url' => $proxyUrl, 'auth' => isset($proxy['user']) ? 'Basic ' . base64_encode(rawurldecode($proxy['user']) . ':' . rawurldecode($proxy['pass'] ?? '')) : null, 'no_proxy' => $noProxy, ] |
/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php:822 | 1 | $field = $this->factory->createNamed('name', static::TESTED_TYPE, null, ['em' => 'default', 'class' => self::ITEM_GROUP_CLASS, 'choices' => [$item1, $item2, $item3, $item4], 'choice_label' => 'name', 'group_by' => 'groupName', ]) |
/src/Symfony/Component/HttpClient/HttpClientTrait.php:738 | 1 | $queryString = strtr($queryString, ['%21' => '!', '%24' => '$', '%28' => '(', '%29' => ')', '%2A' => '*', '%2F' => '/', '%3A' => ':', '%3B' => ';', '%40' => '@', '%5B' => '[', '%5D' => ']', ]) |
/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php:983 | 2 | $field = $this->factory->createNamed('name', static::TESTED_TYPE, null, ['em' => 'default', 'class' => self::SINGLE_IDENT_CLASS, 'query_builder' => $repository->createQueryBuilder('e')->where('e.id IN (1, 2, 3)')->setMaxResults(1), 'choice_label' => 'name', ]) |
/src/Symfony/Component/Form/Tests/DependencyInjection/FormPassTest.php:123 | 1 | return [[[Type1TypeExtension::class => ['class' => Type1TypeExtension::class, 'tag' => ['extended_type' => 'type1'], ], Type1Type2TypeExtension::class => ['class' => Type1Type2TypeExtension::class, 'tag' => ['extended_type' => 'type2'], ], ], ['type1' => new IteratorArgument([new Reference(Type1TypeExtension::class)]), 'type2' => new IteratorArgument([new Reference(Type1Type2TypeExtension::class)]), ], ], [[Type1TypeExtension::class => ['class' => Type1TypeExtension::class, 'tag' => [ ], ], Type1Type2TypeExtension::class => ['class' => Type1Type2TypeExtension::class, 'tag' => [ ], ], ], ['type1' => new IteratorArgument([new Reference(Type1TypeExtension::class), new Reference(Type1Type2TypeExtension::class), ]), 'type2' => new IteratorArgument([new Reference(Type1Type2TypeExtension::class)]), ], ], [['my.type_extension1' => ['class' => Type1TypeExtension::class, 'tag' => ['extended_type' => 'type1', 'priority' => 1], ], 'my.type_extension2' => ['class' => Type1TypeExtension::class, 'tag' => ['extended_type' => 'type1', 'priority' => 2], ], 'my.type_extension3' => ['class' => Type1TypeExtension::class, 'tag' => ['extended_type' => 'type1', 'priority' => -1], ], 'my.type_extension4' => ['class' => Type2TypeExtension::class, 'tag' => ['extended_type' => 'type2', 'priority' => 2], ], 'my.type_extension5' => ['class' => Type2TypeExtension::class, 'tag' => ['extended_type' => 'type2', 'priority' => 1], ], 'my.type_extension6' => ['class' => Type2TypeExtension::class, 'tag' => ['extended_type' => 'type2', 'priority' => 1], ], ], ['type1' => new IteratorArgument([new Reference('my.type_extension2'), new Reference('my.type_extension1'), new Reference('my.type_extension3'), ]), 'type2' => new IteratorArgument([new Reference('my.type_extension4'), new Reference('my.type_extension5'), new Reference('my.type_extension6'), ]), ], ], [['my.type_extension1' => ['class' => '%type1_extension_class%', 'tag' => ['extended_type' => 'type1'], ], 'my.type_extension2' => ['class' => '%type1_extension_class%', 'tag' => [ ], ], ], ['type1' => new IteratorArgument([new Reference('my.type_extension1'), new Reference('my.type_extension2'), ]), ], ['type1_extension_class' => Type1TypeExtension::class, ], ], ] |
/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php:959 | 1 | $field = $this->factory->createNamed('name', static::TESTED_TYPE, null, ['em' => 'default', 'class' => self::SINGLE_IDENT_CLASS, 'query_builder' => $repository->createQueryBuilder('e')->where('e.id IN (1, 2)'), 'choice_label' => 'name', ]) |
/src/Symfony/Component/Form/Tests/ChoiceList/Factory/DefaultChoiceListFactoryTest.php:623 | 1 | $view = $this->factory->createView($this->list, [$this->obj2, $this->obj3], null, null, null, ['B' => ['attr1' => 'value1'], 'C' => ['attr2' => 'value2'], ]) |
/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php:1037 | 1 | $field = $this->factory->createNamed('name', static::TESTED_TYPE, null, ['em' => 'default', 'class' => self::SINGLE_ASSOC_IDENT_CLASS, 'query_builder' => $repository->createQueryBuilder('e')->where('e.entity IN (1, 2)'), 'choice_label' => 'name', ]) |
/src/Symfony/Component/Form/ChoiceList/Factory/Cache/AbstractStaticOption.php:43 | 1 | $this->option = self::$options[$hash] ??= $option instanceof \Closure || \is_string($option) || \is_bool($option) || $option instanceof ChoiceLoaderInterface || !\is_callable($option) ? $option : $option(...) |
/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php:1008 | 2 | $field = $this->factory->createNamed('name', static::TESTED_TYPE, null, ['em' => 'default', 'class' => self::SINGLE_IDENT_CLASS, 'query_builder' => $repository->createQueryBuilder('e')->where('e.id IN (1, 2, 3)')->setMaxResults(1), 'choice_label' => 'name', ]) |
/src/Symfony/Component/Form/ChoiceList/Factory/DefaultChoiceListFactory.php:169 | 1 | $view = new ChoiceView($choice, $value, $label, \is_callable($attr) ? $attr($choice, $key, $value) : ($attr[$key] ?? [ ]), \is_callable($labelTranslationParameters) ? $labelTranslationParameters($choice, $key, $value) : ($labelTranslationParameters[$key] ?? [ ])) |
/src/Symfony/Component/Form/Tests/ChoiceList/Factory/DefaultChoiceListFactoryTest.php:209 | 1 | $list = $this->factory->createListFromChoices(['Group 1' => ['A' => $this->obj1, 'B' => $this->obj2], 'Group 2' => ['C' => $this->obj3, 'D' => $this->obj4], 'Group 3' => ['E' => null, 'F' => null], 'Group 4' => [ ], ], null, fn ($choice) => null !== $choice) |
/src/Symfony/Component/Form/Tests/ChoiceList/Factory/DefaultChoiceListFactoryTest.php:198 | 1 | $list = $this->factory->createListFromChoices(['A' => $this->obj1, 'B' => $this->obj2, 'C' => $this->obj3, 'D' => $this->obj4, 'E' => null, 'F' => null], null, fn ($choice) => null !== $choice) |
/src/Symfony/Component/Form/Tests/ChoiceList/Factory/DefaultChoiceListFactoryTest.php:513 | 1 | $list = new ArrayChoiceList(['Group 1' => ['A' => $this->obj1, 'B' => $this->obj2], 'Group 2' => ['C' => $this->obj3, 'D' => $this->obj4], 'Group empty' => [ ], ]) |
/src/Symfony/Component/Form/Tests/ChoiceList/Factory/DefaultChoiceListFactoryTest.php:225 | 1 | $list = $this->factory->createListFromChoices(new \ArrayIterator(['Group 1' => ['A' => $this->obj1, 'B' => $this->obj2], 'Group 2' => ['C' => $this->obj3, 'D' => $this->obj4], 'Group 3' => ['E' => null, 'F' => null], 'Group 4' => [ ], ]), null, fn ($choice) => null !== $choice) |
/src/Symfony/Component/HttpClient/Tests/EventSourceHttpClientTest.php:190 | 1 | return [['text/event-stream', true], ['text/event-stream;charset=utf-8', true], ['text/event-stream;charset=UTF-8', true], ['Text/EVENT-STREAM;Charset="utf-8"', true], ['text/event-stream; charset="utf-8"', true], ['text/event-stream; charset=iso-8859-15', true], ['text/html', new EventSourceException('Response content-type is "text/html" while "text/event-stream" was expected for "http://localhost:8080/events".')], ['text/html; charset="utf-8"', new EventSourceException('Response content-type is "text/html; charset="utf-8"" while "text/event-stream" was expected for "http://localhost:8080/events".')], ['text/event-streambla', new EventSourceException('Response content-type is "text/event-streambla" while "text/event-stream" was expected for "http://localhost:8080/events".')], ] |
/src/Symfony/Component/HttpClient/Tests/DataCollector/HttpClientDataCollectorTest.php:258 | 1 | yield 'POST with array body' => [['method' => 'POST', 'url' => 'http://localhost:8057/json', 'options' => ['body' => ['foo' => 'fooval', 'bar' => 'barval', 'baz' => 'bazval', 'foobar' => ['baz' => 'bazval', 'qux' => 'quxval', ], 'bazqux' => ['bazquxval1', 'bazquxval2'], 'object' => (object) ['fooprop' => 'foopropval', 'barprop' => 'barpropval', ], 'tostring' => new class ( ) { /**/ } , ], ], ], 'curl \\ --compressed \\ --request POST \\ --url %1$shttp://localhost:8057/json%1$s \\ --header %1$sAccept: */*%1$s \\ --header %1$sContent-Type: application/x-www-form-urlencoded%1$s \\ --header %1$sContent-Length: 211%1$s \\ --header %1$sAccept-Encoding: gzip%1$s \\ --header %1$sUser-Agent: Symfony HttpClient (Native)%1$s \\ --data-raw %2$sfoo=fooval%2$s --data-raw %2$sbar=barval%2$s --data-raw %2$sbaz=bazval%2$s --data-raw %2$sfoobar[baz]=bazval%2$s --data-raw %2$sfoobar[qux]=quxval%2$s --data-raw %2$sbazqux[0]=bazquxval1%2$s --data-raw %2$sbazqux[1]=bazquxval2%2$s --data-raw %2$sobject[fooprop]=foopropval%2$s --data-raw %2$sobject[barprop]=barpropval%2$s --data-raw %2$stostring=tostringval%2$s', ] |
/src/Symfony/Component/HttpClient/Tests/RetryableHttpClientTest.php:410 | 1 | $client = new RetryableHttpClient(new MockHttpClient([new MockResponse('', ['http_code' => 500]), new MockResponse('', ['http_code' => 502]), new MockResponse('', ['http_code' => 504]), new MockResponse('', ['http_code' => 200]), ]), new GenericRetryStrategy([500, 502, 504], 0), 3) |
/src/Symfony/Component/HttpClient/Tests/EventSourceHttpClientTest.php:90 | 1 | $expected = [new FirstChunk( ), new ServerSentEvent(str_replace("\n", $sep, "event: builderror\nid: 46\ndata: {\"foo\": \"bar\"}\n\n")), new ServerSentEvent(str_replace("\n", $sep, "event: reload\nid: 47\ndata: {}\n\n")), new ServerSentEvent(str_replace("\n", $sep, "event: reload\nid: 48\ndata: {}\n\n")), new ServerSentEvent(str_replace("\n", $sep, "data: test\ndata:test\nid: 49\nevent: testEvent\n\n\n")), new ServerSentEvent(str_replace("\n", $sep, "id: 50\ndata: <tag>\ndata\ndata: <foo />\ndata\ndata: </tag>\n\n")), ] |
/src/Symfony/Component/Serializer/Tests/SerializerTest.php:335 | 1 | $serializer = new Serializer([new GetSetMethodNormalizer( ), new PropertyNormalizer( ), new ObjectNormalizer( ), new CustomNormalizer( ), new ArrayDenormalizer( ), ], ['json' => new JsonEncoder( ), ]) |
/src/Symfony/Component/Serializer/Tests/SerializerTest.php:856 | 1 | $serializer = new Serializer([new ObjectNormalizer(null, null, null, new PropertyInfoExtractor([ ], [new PhpDocExtractor( ), new ReflectionExtractor( )]))], ['csv' => new CsvEncoder( )]) |
/src/Symfony/Component/HttpClient/Internal/AmpClientState.php:119 | 1 | $options = ['bindto' => $options['bindto'] ?: '0', 'verify_peer' => $options['verify_peer'], 'capath' => $options['capath'], 'cafile' => $options['cafile'], 'local_cert' => $options['local_cert'], 'local_pk' => $options['local_pk'], 'ciphers' => $options['ciphers'], 'capture_peer_cert_chain' => $options['capture_peer_cert_chain'] || $options['peer_fingerprint'], 'proxy' => $options['proxy'], 'crypto_method' => $options['crypto_method'], ] |
/src/Symfony/Component/Serializer/DataCollector/SerializerDataCollector.php:177 | 1 | $data = ['data' => $this->cloneVar($collected['data']), 'dataType' => get_debug_type($collected['data']), 'type' => $collected['type'] ?? null, 'format' => $collected['format'], 'time' => $collected['time'], 'context' => $this->cloneVar($collected['context']), 'normalization' => [ ], 'encoding' => [ ], 'caller' => $collected['caller'] ?? null, ] |
/src/Symfony/Component/HttpClient/Response/StreamWrapper.php:292 | 1 | return ['dev' => 0, 'ino' => 0, 'mode' => 33060, 'nlink' => 0, 'uid' => 0, 'gid' => 0, 'rdev' => 0, 'size' => (int) ($headers['content-length'][0] ?? -1), 'atime' => 0, 'mtime' => strtotime($headers['last-modified'][0] ?? '') ?: 0, 'ctime' => 0, 'blksize' => 0, 'blocks' => 0, ] |
/src/Symfony/Component/HttpClient/Response/CurlResponse.php:315 | 1 | $multi->handlesActivity[$id][] = \in_array($result, [\CURLE_OK, \CURLE_TOO_MANY_REDIRECTS], true) || '_0' === $waitFor || curl_getinfo($ch, \CURLINFO_SIZE_DOWNLOAD) === curl_getinfo($ch, \CURLINFO_CONTENT_LENGTH_DOWNLOAD) ? null : new TransportException(ucfirst(curl_error($ch) ?: curl_strerror($result)) . sprintf(' for "%s".', curl_getinfo($ch, \CURLINFO_EFFECTIVE_URL))) |
/src/Symfony/Component/HttpClient/Response/MockResponse.php:267 | 1 | $dlSize = isset($response->headers['content-encoding']) || 'HEAD' === $response->info['http_method'] || \in_array($response->info['http_code'], [204, 304], true) ? 0 : (int) ($response->headers['content-length'][0] ?? 0) |
/src/Symfony/Component/HttpClient/Response/MockResponse.php:269 | 1 | $response->info = ['start_time' => $response->info['start_time'], 'user_data' => $response->info['user_data'], 'max_duration' => $response->info['max_duration'], 'http_code' => $response->info['http_code'], ] + $info + $response->info |
/src/Symfony/Component/HttpClient/Tests/RetryableHttpClientTest.php:363 | 1 | $client = new RetryableHttpClient(new MockHttpClient([new MockResponse('', ['http_code' => 500]), new MockResponse('', ['http_code' => 500]), new MockResponse('', ['http_code' => 500]), new MockResponse('Hit on second uri', ['http_code' => 200]), ]), new GenericRetryStrategy([500], 0), 3) |
/src/Symfony/Component/HttpClient/Tests/RetryableHttpClientTest.php:391 | 1 | $client = new RetryableHttpClient(new MockHttpClient([new MockResponse('', ['http_code' => 500]), new MockResponse('', ['http_code' => 502]), new MockResponse('', ['http_code' => 200]), ]), new GenericRetryStrategy([500, 502], 0), 3) |
/src/Symfony/Component/HttpClient/Tests/RetryableHttpClientTest.php:53 | 1 | $client = new RetryableHttpClient(new MockHttpClient([new MockResponse('', ['http_code' => 500]), new MockResponse('', ['http_code' => 500]), new MockResponse('', ['http_code' => 200]), ]), new GenericRetryStrategy([500], 0), 1) |
/src/Symfony/Component/HttpClient/Tests/RetryableHttpClientTest.php:204 | 1 | $client = new RetryableHttpClient(new MockHttpClient([new MockResponse('', ['http_code' => 503, 'response_headers' => ['retry-after' => $retryAfter, ], ]), new MockResponse('', ['http_code' => 200, ]), ]), new GenericRetryStrategy( ), 1, $logger = new class ( ) extends TestLogger { /**/ } ) |
/src/Symfony/Component/Serializer/Tests/Context/Normalizer/ProblemNormalizerContextBuilderTest.php:37 | 1 | $context = $this->contextBuilder->withTitle($values[ProblemNormalizer::TITLE])->withType($values[ProblemNormalizer::TYPE])->withStatusCode($values[ProblemNormalizer::STATUS])->toArray( ) |
/src/Symfony/Component/Serializer/Tests/Context/Normalizer/AbstractNormalizerContextBuilderTest.php:59 | 1 | yield 'With values' => [[AbstractNormalizer::CIRCULAR_REFERENCE_LIMIT => 12, AbstractNormalizer::OBJECT_TO_POPULATE => new \stdClass( ), AbstractNormalizer::GROUPS => ['group'], AbstractNormalizer::ATTRIBUTES => ['attribute1', 'attribute2'], AbstractNormalizer::ALLOW_EXTRA_ATTRIBUTES => true, AbstractNormalizer::DEFAULT_CONSTRUCTOR_ARGUMENTS => [self::class => ['foo' => 'bar']], AbstractNormalizer::CALLBACKS => [static function ( ) : void { /**/ } ], AbstractNormalizer::CIRCULAR_REFERENCE_HANDLER => static function ( ) : void { /**/ } , AbstractNormalizer::IGNORED_ATTRIBUTES => ['attribute3'], AbstractNormalizer::REQUIRE_ALL_PROPERTIES => true, ]] |
/src/Symfony/Component/Serializer/Tests/Context/Normalizer/AbstractNormalizerContextBuilderTest.php:38 | 1 | $context = $this->contextBuilder->withCircularReferenceLimit($values[AbstractNormalizer::CIRCULAR_REFERENCE_LIMIT])->withObjectToPopulate($values[AbstractNormalizer::OBJECT_TO_POPULATE])->withGroups($values[AbstractNormalizer::GROUPS])->withAttributes($values[AbstractNormalizer::ATTRIBUTES])->withAllowExtraAttributes($values[AbstractNormalizer::ALLOW_EXTRA_ATTRIBUTES])->withDefaultConstructorArguments($values[AbstractNormalizer::DEFAULT_CONSTRUCTOR_ARGUMENTS])->withCallbacks($values[AbstractNormalizer::CALLBACKS])->withCircularReferenceHandler($values[AbstractNormalizer::CIRCULAR_REFERENCE_HANDLER])->withIgnoredAttributes($values[AbstractNormalizer::IGNORED_ATTRIBUTES])->withRequireAllProperties($values[AbstractNormalizer::REQUIRE_ALL_PROPERTIES])->toArray( ) |
/src/Symfony/Component/Serializer/Tests/Context/Encoder/XmlEncoderContextBuilderTest.php:35 | 1 | $context = $this->contextBuilder->withAsCollection($values[XmlEncoder::AS_COLLECTION])->withDecoderIgnoredNodeTypes($values[XmlEncoder::DECODER_IGNORED_NODE_TYPES])->withEncoderIgnoredNodeTypes($values[XmlEncoder::ENCODER_IGNORED_NODE_TYPES])->withEncoding($values[XmlEncoder::ENCODING])->withFormatOutput($values[XmlEncoder::FORMAT_OUTPUT])->withLoadOptions($values[XmlEncoder::LOAD_OPTIONS])->withSaveOptions($values[XmlEncoder::SAVE_OPTIONS])->withRemoveEmptyTags($values[XmlEncoder::REMOVE_EMPTY_TAGS])->withRootNodeName($values[XmlEncoder::ROOT_NODE_NAME])->withStandalone($values[XmlEncoder::STANDALONE])->withTypeCastAttributes($values[XmlEncoder::TYPE_CAST_ATTRIBUTES])->withVersion($values[XmlEncoder::VERSION])->withCdataWrapping($values[XmlEncoder::CDATA_WRAPPING])->toArray( ) |
/src/Symfony/Component/Serializer/Tests/Context/Normalizer/ConstraintViolationListNormalizerContextBuilderTest.php:53 | 1 | yield 'With values' => [[ConstraintViolationListNormalizer::INSTANCE => new \stdClass( ), ConstraintViolationListNormalizer::STATUS => 418, ConstraintViolationListNormalizer::TITLE => 'title', ConstraintViolationListNormalizer::TYPE => 'type', ConstraintViolationListNormalizer::PAYLOAD_FIELDS => ['field'], ]] |
/src/Symfony/Component/Serializer/Tests/Context/Normalizer/ConstraintViolationListNormalizerContextBuilderTest.php:37 | 1 | $context = $this->contextBuilder->withInstance($values[ConstraintViolationListNormalizer::INSTANCE])->withStatus($values[ConstraintViolationListNormalizer::STATUS])->withTitle($values[ConstraintViolationListNormalizer::TITLE])->withType($values[ConstraintViolationListNormalizer::TYPE])->withPayloadFields($values[ConstraintViolationListNormalizer::PAYLOAD_FIELDS])->toArray( ) |
/src/Symfony/Component/Serializer/Tests/Context/Normalizer/AbstractObjectNormalizerContextBuilderTest.php:38 | 1 | $context = $this->contextBuilder->withEnableMaxDepth($values[AbstractObjectNormalizer::ENABLE_MAX_DEPTH])->withDepthKeyPattern($values[AbstractObjectNormalizer::DEPTH_KEY_PATTERN])->withDisableTypeEnforcement($values[AbstractObjectNormalizer::DISABLE_TYPE_ENFORCEMENT])->withSkipNullValues($values[AbstractObjectNormalizer::SKIP_NULL_VALUES])->withSkipUninitializedValues($values[AbstractObjectNormalizer::SKIP_UNINITIALIZED_VALUES])->withMaxDepthHandler($values[AbstractObjectNormalizer::MAX_DEPTH_HANDLER])->withExcludeFromCacheKeys($values[AbstractObjectNormalizer::EXCLUDE_FROM_CACHE_KEY])->withDeepObjectToPopulate($values[AbstractObjectNormalizer::DEEP_OBJECT_TO_POPULATE])->withPreserveEmptyObjects($values[AbstractObjectNormalizer::PRESERVE_EMPTY_OBJECTS])->toArray( ) |
/src/Symfony/Component/Serializer/Tests/Context/Normalizer/FormErrorNormalizerContextBuilderTest.php:37 | 1 | $context = $this->contextBuilder->withTitle($values[FormErrorNormalizer::TITLE])->withType($values[FormErrorNormalizer::TYPE])->withStatusCode($values[FormErrorNormalizer::CODE])->toArray( ) |
/src/Symfony/Component/Serializer/Tests/SerializerTest.php:1611 | 2 | return ['currentType' => $e->getCurrentType( ), 'expectedTypes' => $e->getExpectedTypes( ), 'path' => $e->getPath( ), 'useMessageForUser' => $e->canUseMessageForUser( ), 'message' => $e->getMessage( ), ] |
/src/Symfony/Component/Serializer/Tests/SerializerTest.php:1354 | 2 | return ['currentType' => $e->getCurrentType( ), 'expectedTypes' => $e->getExpectedTypes( ), 'path' => $e->getPath( ), 'useMessageForUser' => $e->canUseMessageForUser( ), 'message' => $e->getMessage( ), ] |
/src/Symfony/Component/Serializer/Tests/SerializerTest.php:955 | 1 | $expected = [['currentType' => 'null', 'expectedTypes' => ['string', ], 'path' => 'string', 'useMessageForUser' => false, 'message' => 'The type of the "string" attribute for class "Symfony\\Component\\Serializer\\Tests\\Fixtures\\Php74Full" must be one of "string" ("null" given).', ], ['currentType' => 'null', 'expectedTypes' => ['int', ], 'path' => 'int', 'useMessageForUser' => false, 'message' => 'The type of the "int" attribute for class "Symfony\\Component\\Serializer\\Tests\\Fixtures\\Php74Full" must be one of "int" ("null" given).', ], ['currentType' => 'null', 'expectedTypes' => ['float', ], 'path' => 'float', 'useMessageForUser' => false, 'message' => 'The type of the "float" attribute for class "Symfony\\Component\\Serializer\\Tests\\Fixtures\\Php74Full" must be one of "float" ("null" given).', ], ['currentType' => 'null', 'expectedTypes' => ['bool', ], 'path' => 'bool', 'useMessageForUser' => false, 'message' => 'The type of the "bool" attribute for class "Symfony\\Component\\Serializer\\Tests\\Fixtures\\Php74Full" must be one of "bool" ("null" given).', ], ['currentType' => 'null', 'expectedTypes' => ['string', ], 'path' => 'dateTime', 'useMessageForUser' => true, 'message' => 'The data is either not an string, an empty string, or null; you should pass a string that can be parsed with the passed format or a valid DateTime string.', ], ['currentType' => 'null', 'expectedTypes' => ['string', ], 'path' => 'dateTimeImmutable', 'useMessageForUser' => true, 'message' => 'The data is either not an string, an empty string, or null; you should pass a string that can be parsed with the passed format or a valid DateTime string.', ], ['currentType' => 'null', 'expectedTypes' => ['string', ], 'path' => 'dateTimeZone', 'useMessageForUser' => true, 'message' => 'The data is either an empty string or null, you should pass a string that can be parsed as a DateTimeZone.', ], ['currentType' => 'null', 'expectedTypes' => ['string', ], 'path' => 'splFileInfo', 'useMessageForUser' => true, 'message' => 'The provided "data:" URI is not valid.', ], ['currentType' => 'null', 'expectedTypes' => ['string', ], 'path' => 'uuid', 'useMessageForUser' => true, 'message' => 'The data is not a valid "Symfony\Component\Uid\Uuid" string representation.', ], ['currentType' => 'null', 'expectedTypes' => ['array', ], 'path' => 'array', 'useMessageForUser' => false, 'message' => 'The type of the "array" attribute for class "Symfony\\Component\\Serializer\\Tests\\Fixtures\\Php74Full" must be one of "array" ("null" given).', ], ['currentType' => 'null', 'expectedTypes' => ['string', ], 'path' => 'collection[1].string', 'useMessageForUser' => false, 'message' => 'The type of the "string" attribute for class "Symfony\Component\Serializer\Tests\Fixtures\Php74Full" must be one of "string" ("null" given).', ], ['currentType' => 'null', 'expectedTypes' => ['unknown', ], 'path' => 'php74FullWithConstructor.constructorArgument', 'useMessageForUser' => true, 'message' => 'Failed to create object because the class misses the "constructorArgument" property.', ], ['currentType' => 'string', 'expectedTypes' => ['float', ], 'path' => 'php74FullWithTypedConstructor.something', 'useMessageForUser' => false, 'message' => 'The type of the "something" attribute for class "Symfony\Component\Serializer\Tests\Fixtures\Php74FullWithTypedConstructor" must be one of "float" ("string" given).', ], ['currentType' => 'string', 'expectedTypes' => ['bool', ], 'path' => 'php74FullWithTypedConstructor.somethingElse', 'useMessageForUser' => false, 'message' => 'The type of the "somethingElse" attribute for class "Symfony\Component\Serializer\Tests\Fixtures\Php74FullWithTypedConstructor" must be one of "bool" ("string" given).', ], $classMetadataFactory ? ['currentType' => 'null', 'expectedTypes' => ['string', ], 'path' => 'dummyMessage.type', 'useMessageForUser' => false, 'message' => 'Type property "type" not found for the abstract object "Symfony\Component\Serializer\Tests\Fixtures\DummyMessageInterface".', ] : ['currentType' => 'array', 'expectedTypes' => [DummyMessageInterface::class, ], 'path' => 'dummyMessage', 'useMessageForUser' => false, 'message' => 'The type of the "dummyMessage" attribute for class "Symfony\Component\Serializer\Tests\Fixtures\Php74Full" must be one of "Symfony\Component\Serializer\Tests\Fixtures\DummyMessageInterface" ("array" given).', ], ['currentType' => 'string', 'expectedTypes' => ['int', ], 'path' => 'nestedObject[int]', 'useMessageForUser' => true, 'message' => 'The type of the key "int" must be "int" ("string" given).', ], ['currentType' => 'null', 'expectedTypes' => ['array'], 'path' => 'anotherCollection', 'useMessageForUser' => false, 'message' => 'Data expected to be "Symfony\Component\Serializer\Tests\Fixtures\Php74Full[]", "null" given.', ], ] |
/src/Symfony/Component/Serializer/Tests/SerializerTest.php:923 | 1 | $serializer = new Serializer([new ArrayDenormalizer( ), new DateTimeNormalizer( ), new DateTimeZoneNormalizer( ), new DataUriNormalizer( ), new UidNormalizer( ), new ObjectNormalizer($classMetadataFactory, null, null, $extractor, $classMetadataFactory ? new ClassDiscriminatorFromClassMetadata($classMetadataFactory) : null), ], ['json' => new JsonEncoder( )]) |
/src/Symfony/Component/Serializer/Tests/Context/Encoder/YamlEncoderContextBuilderTest.php:37 | 1 | $context = $this->contextBuilder->withIndentLevel($values[YamlEncoder::YAML_INDENT])->withInlineThreshold($values[YamlEncoder::YAML_INLINE])->withFlags($values[YamlEncoder::YAML_FLAGS])->withPreservedEmptyObjects($values[YamlEncoder::PRESERVE_EMPTY_OBJECTS])->toArray( ) |
/src/Symfony/Component/Serializer/Tests/Context/Encoder/JsonEncoderContextBuilderTest.php:38 | 1 | $context = $this->contextBuilder->withEncodeOptions($values[JsonEncode::OPTIONS])->withDecodeOptions($values[JsonDecode::OPTIONS])->withAssociative($values[JsonDecode::ASSOCIATIVE])->withRecursionDepth($values[JsonDecode::RECURSION_DEPTH])->toArray( ) |
/src/Symfony/Component/Serializer/Tests/Context/Encoder/CsvEncoderContextBuilderTest.php:88 | 1 | $context = $this->contextBuilder->withDelimiter(null)->withEnclosure(null)->withEscapeChar(null)->withKeySeparator(null)->withHeaders(null)->withEscapedFormulas(null)->withAsCollection(null)->withNoHeaders(null)->withEndOfLine(null)->withOutputUtf8Bom(null)->toArray( ) |
/src/Symfony/Component/Serializer/Tests/Context/Encoder/CsvEncoderContextBuilderTest.php:38 | 1 | $context = $this->contextBuilder->withDelimiter($values[CsvEncoder::DELIMITER_KEY])->withEnclosure($values[CsvEncoder::ENCLOSURE_KEY])->withEscapeChar($values[CsvEncoder::ESCAPE_CHAR_KEY])->withKeySeparator($values[CsvEncoder::KEY_SEPARATOR_KEY])->withHeaders($values[CsvEncoder::HEADERS_KEY])->withEscapedFormulas($values[CsvEncoder::ESCAPE_FORMULAS_KEY])->withAsCollection($values[CsvEncoder::AS_COLLECTION_KEY])->withNoHeaders($values[CsvEncoder::NO_HEADERS_KEY])->withEndOfLine($values[CsvEncoder::END_OF_LINE])->withOutputUtf8Bom($values[CsvEncoder::OUTPUT_UTF8_BOM_KEY])->toArray( ) |
/src/Symfony/Component/Serializer/Command/DebugCommand.php:101 | 1 | $data[$attributeMetadata->getName( )] = ['groups' => $attributeMetadata->getGroups( ), 'maxDepth' => $attributeMetadata->getMaxDepth( ), 'serializedName' => $attributeMetadata->getSerializedName( ), 'ignore' => $attributeMetadata->isIgnored( ), 'normalizationContexts' => $attributeMetadata->getNormalizationContexts( ), 'denormalizationContexts' => $attributeMetadata->getDenormalizationContexts( ), ] |
/src/Symfony/Component/Serializer/Normalizer/ProblemNormalizer.php:96 | 1 | $data = [self::TYPE => $data[self::TYPE] ?? $context[self::TYPE] ?? 'https://tools.ietf.org/html/rfc2616#section-10', self::TITLE => $data[self::TITLE] ?? $context[self::TITLE] ?? 'An error occurred', self::STATUS => $context[self::STATUS] ?? $object->getStatusCode( ), 'detail' => $data['detail'] ?? ($debug ? $object->getMessage( ) : $object->getStatusText( )), ] + $data |
/src/Symfony/Component/Serializer/Normalizer/FormErrorNormalizer.php:27 | 1 | $data = ['title' => $context[self::TITLE] ?? 'Validation Failed', 'type' => $context[self::TYPE] ?? 'https://symfony.com/errors/form', 'code' => $context[self::CODE] ?? null, 'errors' => $this->convertFormErrorsToArray($object), ] |
/src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php:187 | 1 | self::$isWritableCache[$class . $attribute] = $this->propertyInfoExtractor->isWritable($class, $attribute) || (($writeInfo = $this->writeInfoExtractor->getWriteInfo($class, $attribute)) && PropertyWriteInfo::TYPE_NONE !== $writeInfo->getType( )) |
/src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php:87 | 1 | return !$method->isStatic( ) && !($method->getAttributes(Ignore::class) || $method->getAttributes(LegacyIgnore::class)) && !$method->getNumberOfRequiredParameters( ) && ((2 < ($methodLength = \strlen($method->name)) && str_starts_with($method->name, 'is')) || (3 < $methodLength && (str_starts_with($method->name, 'has') || str_starts_with($method->name, 'get')))) |
/src/Symfony/Component/Serializer/Normalizer/ConstraintViolationListNormalizer.php:92 | 1 | $result = ['type' => $context[self::TYPE] ?? $this->defaultContext[self::TYPE] ?? 'https://symfony.com/errors/validation', 'title' => $context[self::TITLE] ?? $this->defaultContext[self::TITLE] ?? 'Validation Failed', ] |
/src/Symfony/Component/Dotenv/Tests/DotenvTest.php:186 | 1 | $tests = array_merge($tests, [['FOO=$(echo foo)', ['FOO' => 'foo']], ['FOO=$((1+2))', ['FOO' => '3']], ['FOO=FOO$((1+2))BAR', ['FOO' => 'FOO3BAR']], ['FOO=$(echo "$(echo "$(echo "$(echo foo)")")")', ['FOO' => 'foo']], ["FOO=$(echo \"Quotes won't be a problem\")", ['FOO' => 'Quotes won\'t be a problem']], ["FOO=bar\nBAR=$(echo \"FOO is \$FOO\")", ['FOO' => 'bar', 'BAR' => 'FOO is bar']], ]) |
/src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php:436 | 1 | return new ConstraintViolation($this->message, $this->message, $this->parameters, $this->context->getRoot( ), $this->propertyPath, $this->invalidValue, $this->plural, $this->code, $this->constraint, $this->cause) |
/src/Symfony/Component/Serializer/Tests/Encoder/JsonEncodeTest.php:47 | 1 | return [[[ ], '[]', [ ]], [[ ], '{}', ['json_encode_options' => \JSON_FORCE_OBJECT]], [new \ArrayObject( ), '{}', [ ]], [new \ArrayObject(['foo' => 'bar']), '{"foo":"bar"}', [ ]], ] |
/src/Symfony/Component/Serializer/Tests/Normalizer/AbstractObjectNormalizerTest.php:621 | 1 | $objectWithBooleanProperties = $denormalizer->denormalize(['boolTrue1' => 'true', 'boolFalse1' => 'false', 'boolTrue2' => '1', 'boolFalse2' => '0', 'int1' => '4711', 'int2' => '-4711', 'float1' => '123.456', 'float2' => '-1.2344e56', 'float3' => '45E-6', 'floatNaN' => 'NaN', 'floatInf' => 'INF', 'floatNegInf' => '-INF', ], ObjectWithBasicProperties::class, 'xml') |
/src/Symfony/Component/Serializer/Tests/Normalizer/ConstraintViolationListNormalizerTest.php:79 | 1 | $list = new ConstraintViolationList([new ConstraintViolation('too short', 'a', [ ], '3', 'shortDescription', ''), new ConstraintViolation('too long', 'b', [ ], '3', 'product.shortDescription', 'Lorem ipsum dolor sit amet'), new ConstraintViolation('error', 'c', [ ], '3', '', ''), ]) |
/src/Symfony/Component/Serializer/Tests/Normalizer/UidNormalizerTest.php:49 | 1 | $data = [[UuidV1::fromString('9b7541de-6f87-11ea-ab3c-9da9a81562fc'), '9b7541de-6f87-11ea-ab3c-9da9a81562fc', '9b7541de-6f87-11ea-ab3c-9da9a81562fc', 'LCQS8f2p5SDSiAt9V7ZYnF', '4VEN0XWVW727NAPF4XN6M1ARQW', '9b7541de-6f87-11ea-ab3c-9da9a81562fc', ], [UuidV3::fromString('e576629b-ff34-3642-9c08-1f5219f0d45b'), 'e576629b-ff34-3642-9c08-1f5219f0d45b', 'e576629b-ff34-3642-9c08-1f5219f0d45b', 'VLRwe3qfi66uUAE3mYQ4Dp', '75ESH9QZSM6S19R20ZA8CZ1N2V', 'e576629b-ff34-3642-9c08-1f5219f0d45b', ], [UuidV4::fromString('4126dbc1-488e-4f6e-aadd-775dcbac482e'), '4126dbc1-488e-4f6e-aadd-775dcbac482e', '4126dbc1-488e-4f6e-aadd-775dcbac482e', '93d88pS3fdrDXNR2XxU9nu', '214VDW2J4E9XQANQBQBQ5TRJ1E', '4126dbc1-488e-4f6e-aadd-775dcbac482e', ], [UuidV5::fromString('18cdf3d3-ea1b-5b23-a9c5-40abd0e2df22'), '18cdf3d3-ea1b-5b23-a9c5-40abd0e2df22', '18cdf3d3-ea1b-5b23-a9c5-40abd0e2df22', '44epMFQYZ9byVSGis5dofo', '0RSQSX7TGVBCHTKHA0NF8E5QS2', '18cdf3d3-ea1b-5b23-a9c5-40abd0e2df22', ], [UuidV6::fromString('1ea6ecef-eb9a-66fe-b62b-957b45f17e43'), '1ea6ecef-eb9a-66fe-b62b-957b45f17e43', '1ea6ecef-eb9a-66fe-b62b-957b45f17e43', '4nXtvo2iuyYefrqTMhvogn', '0YMVPEZTWTCVZBCAWNFD2Z2ZJ3', '1ea6ecef-eb9a-66fe-b62b-957b45f17e43', ], [Ulid::fromString('01E4BYF64YZ97MDV6RH0HAMN6X'), '01E4BYF64YZ97MDV6RH0HAMN6X', '01E4BYF64YZ97MDV6RH0HAMN6X', '1BKuy2YWf8Yf9vSkA2wDpg', '01E4BYF64YZ97MDV6RH0HAMN6X', '017117e7-989e-fa4f-46ec-d88822aa54dd', ], ] |
/src/Symfony/Component/Serializer/Tests/Normalizer/GetSetMethodNormalizerTest.php:490 | 1 | return [[new TypedPropertiesObjectWithGetters( ), (new TypedPropertiesObjectWithGetters( ))->setUninitialized('value2'), ], [['initialized' => 'value', 'initialized2' => 'value'], ['unInitialized' => 'value2', 'initialized' => 'value', 'initialized2' => 'value'], ]] |
/src/Symfony/Component/Serializer/Tests/Normalizer/PropertyNormalizerTest.php:432 | 1 | $root = $normalizer->denormalize(['children' => [[['foo' => 'one', 'bar' => 'two'], ['foo' => 'three', 'bar' => 'four'], ]], 'grandChildren' => [[[['foo' => 'five', 'bar' => 'six'], ['foo' => 'seven', 'bar' => 'eight'], ]]], 'intMatrix' => [[0, 1, 2], [3, 4, 5], ], ], RootDummy::class, 'any') |
/src/Symfony/Component/Serializer/Tests/Normalizer/Features/CallbacksTestTrait.php:131 | 1 | return ['Change a string' => [['bar' => function ($bar) { /**/ } , ], 'baz', ['bar' => 'baz', 'foo' => null], ], 'Null an item' => [['bar' => function ($value, $object, $attributeName, $format, $context) { /**/ } , ], 'baz', ['bar' => null, 'foo' => null], ], 'Format a date' => [['bar' => function ($bar) { /**/ } , ], new \DateTimeImmutable('2011-09-10 06:30:00'), ['bar' => '10-09-2011 06:30:00', 'foo' => null], ], 'Collect a property' => [['bar' => function (array $bars) { /**/ } , ], [new CallbacksObject('baz'), new CallbacksObject('quux')], ['bar' => 'bazquux', 'foo' => null], ], 'Count a property' => [['bar' => fn (array $bars) => \count($bars), ], [new CallbacksObject( ), new CallbacksObject( )], ['bar' => 2, 'foo' => null], ], ] |
/src/Symfony/Component/Serializer/Tests/Normalizer/Features/CallbacksTestTrait.php:193 | 1 | return ['Change a string' => [['bar' => function ($bar) { /**/ } , ], 'bar', new CallbacksObject('bar'), ], 'Null an item' => [['bar' => function ($value, $object, $attributeName, $format, $context) { /**/ } , ], 'baz', new CallbacksObject(null), ], 'Format a date' => [['bar' => function ($bar) { /**/ } , ], '10-09-2011 06:30:00', new CallbacksObject(new \DateTimeImmutable('2011-09-10 06:30:00')), ], 'Collect a property' => [['bar' => function (array $bars) { /**/ } , ], [new CallbacksObject('baz'), new CallbacksObject('quux')], new CallbacksObject('bazquux'), ], 'Count a property' => [['bar' => fn (array $bars) => \count($bars), ], [new CallbacksObject( ), new CallbacksObject( )], new CallbacksObject(2), ], ] |
/src/Symfony/Component/Validator/Tests/Constraints/NotEqualToValidatorTest.php:43 | 1 | return [[1, 2], ['22', '333'], [new \DateTime('2001-01-01'), new \DateTime('2000-01-01')], [new \DateTime('2001-01-01'), '2000-01-01'], [new \DateTime('2001-01-01 UTC'), '2000-01-01 UTC'], [new ComparisonTest_Class(6), new ComparisonTest_Class(5)], [null, 1], ] |
/src/Symfony/Component/Validator/Tests/Validator/RecursiveValidatorTest.php:1295 | 1 | return [['sequence' => new GroupSequence(['Group 1', 'Group 2', 'Group 3', 'Entity']), 'assertViolations' => ['Violation in Group 2', ], ], ['sequence' => ['Group 1', 'Group 2', 'Group 3', 'Entity'], 'assertViolations' => ['Violation in Group 2', ], ], ['sequence' => new GroupSequence(['Group 1', ['Group 2', 'Group 3'], 'Entity']), 'assertViolations' => ['Violation in Group 2', 'Violation in Group 3', ], ], ['sequence' => ['Group 1', ['Group 2', 'Group 3'], 'Entity'], 'assertViolations' => ['Violation in Group 2', 'Violation in Group 3', ], ], ] |
/src/Symfony/Component/Validator/Tests/Constraints/LessThanValidatorTest.php:43 | 1 | return [[1, 2], [new \DateTime('2000-01-01'), new \DateTime('2010-01-01')], [new \DateTime('2000-01-01'), '2010-01-01'], [new \DateTime('2000-01-01 UTC'), '2010-01-01 UTC'], [new ComparisonTest_Class(4), new ComparisonTest_Class(5)], ['22', '333'], [null, 1], ] |
/src/Symfony/Component/Validator/Tests/Constraints/NotEqualToValidatorTest.php:63 | 1 | return [[3, '3', 3, '3', 'int'], ['2', '"2"', 2, '2', 'int'], ['a', '"a"', 'a', '"a"', 'string'], [new \DateTime('2000-01-01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), new \DateTime('2000-01-01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'], [new \DateTime('2000-01-01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), '2000-01-01', self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'], [new \DateTime('2000-01-01 UTC'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), '2000-01-01 UTC', self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'], [new ComparisonTest_Class(5), '5', new ComparisonTest_Class(5), '5', __NAMESPACE__ . '\ComparisonTest_Class'], ] |
/src/Symfony/Component/Validator/Tests/Constraints/AtLeastOneOfValidatorTest.php:65 | 1 | return [['symfony', [new Length(['min' => 10]), new EqualTo(['value' => 'symfony']), ]], [150, [new Range(['min' => 10, 'max' => 20]), new GreaterThanOrEqual(['value' => 100]), ]], [7, [new LessThan(['value' => 5]), new IdenticalTo(['value' => 7]), ]], [-3, [new DivisibleBy(['value' => 4]), new Negative( ), ]], ['FOO', [new Choice(['choices' => ['bar', 'BAR']]), new Regex(['pattern' => '/foo/i']), ]], ['fr', [new Country( ), new Language( ), ]], [[1, 3, 5], [new Count(['min' => 5]), new Unique( ), ]], ] |
/src/Symfony/Component/Validator/Tests/Constraints/LessThanValidatorTest.php:63 | 1 | return [[3, '3', 2, '2', 'int'], [2, '2', 2, '2', 'int'], [new \DateTime('2010-01-01'), self::normalizeIcuSpaces("Jan 1, 2010, 12:00\u{202F}AM"), new \DateTime('2000-01-01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'], [new \DateTime('2000-01-01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), new \DateTime('2000-01-01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'], [new \DateTime('2010-01-01'), self::normalizeIcuSpaces("Jan 1, 2010, 12:00\u{202F}AM"), '2000-01-01', self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'], [new \DateTime('2000-01-01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), '2000-01-01', self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'], [new \DateTime('2010-01-01 UTC'), self::normalizeIcuSpaces("Jan 1, 2010, 12:00\u{202F}AM"), '2000-01-01 UTC', self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'], [new \DateTime('2000-01-01 UTC'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), '2000-01-01 UTC', self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'], [new ComparisonTest_Class(5), '5', new ComparisonTest_Class(5), '5', __NAMESPACE__ . '\ComparisonTest_Class'], [new ComparisonTest_Class(6), '6', new ComparisonTest_Class(5), '5', __NAMESPACE__ . '\ComparisonTest_Class'], ['333', '"333"', '22', '"22"', 'string'], ] |
/src/Symfony/Component/Validator/Tests/Constraints/AtLeastOneOfValidatorTest.php:170 | 1 | $violations = $validator->validate(50, new AtLeastOneOf(['constraints' => [new Range(['groups' => 'non_default_group', 'min' => 10, 'max' => 20, ]), new Range(['groups' => 'non_default_group', 'min' => 30, 'max' => 40, ]), ], 'groups' => 'non_default_group', ]), 'non_default_group') |
/src/Symfony/Component/Validator/Tests/Constraints/AtLeastOneOfValidatorTest.php:134 | 1 | return [['symphony', [new Length(['min' => 10]), new EqualTo(['value' => 'symfony']), ]], [70, [new Range(['min' => 10, 'max' => 20]), new GreaterThanOrEqual(['value' => 100]), ]], [8, [new LessThan(['value' => 5]), new IdenticalTo(['value' => 7]), ]], [3, [new DivisibleBy(['value' => 4]), new Negative( ), ]], ['F_O_O', [new Choice(['choices' => ['bar', 'BAR']]), new Regex(['pattern' => '/foo/i']), ]], ['f_r', [new Country( ), new Language( ), ]], [[1, 3, 3], [new Count(['min' => 5]), new Unique( ), ]], ] |
/src/Symfony/Component/Validator/Constraints/RangeValidator.php:112 | 1 | $violationBuilder = $this->context->buildViolation($constraint->maxMessage)->setParameter('{{ value }}', $this->formatValue($value, self::PRETTY_DATE))->setParameter('{{ limit }}', $this->formatValue($max, self::PRETTY_DATE))->setCode(Range::TOO_HIGH_ERROR) |
/src/Symfony/Component/Validator/Constraints/RangeValidator.php:92 | 1 | $violationBuilder = $this->context->buildViolation($message)->setParameter('{{ value }}', $this->formatValue($value, self::PRETTY_DATE))->setParameter('{{ min }}', $this->formatValue($min, self::PRETTY_DATE))->setParameter('{{ max }}', $this->formatValue($max, self::PRETTY_DATE))->setCode($code) |
/src/Symfony/Component/Validator/Constraints/AbstractComparisonValidator.php:73 | 1 | $violationBuilder = $this->context->buildViolation($constraint->message)->setParameter('{{ value }}', $this->formatValue($value, self::OBJECT_TO_STRING | self::PRETTY_DATE))->setParameter('{{ compared_value }}', $this->formatValue($comparedValue, self::OBJECT_TO_STRING | self::PRETTY_DATE))->setParameter('{{ compared_value_type }}', $this->formatTypeOf($comparedValue))->setCode($this->getErrorCode( )) |
/src/Symfony/Component/Validator/Constraints/RangeValidator.php:131 | 1 | $violationBuilder = $this->context->buildViolation($constraint->minMessage)->setParameter('{{ value }}', $this->formatValue($value, self::PRETTY_DATE))->setParameter('{{ limit }}', $this->formatValue($min, self::PRETTY_DATE))->setCode(Range::TOO_LOW_ERROR) |
/src/Symfony/Component/Validator/Tests/ConstraintViolationListTest.php:101 | 1 | $this->list = new ConstraintViolationList([$this->getViolation('Error 1', 'Root'), $this->getViolation('Error 2', 'Root', 'foo.bar'), $this->getViolation('Error 3', 'Root', '[baz]'), $this->getViolation('Error 4', '', 'foo.bar'), $this->getViolation('Error 5', '', '[baz]'), ]) |
/src/Symfony/Component/Validator/Constraints/LengthValidator.php:54 | 1 | $length = $invalidCharset ? 0 : match ($constraint->countUnit) { /**/ } |
/src/Symfony/Component/Validator/Tests/Mapping/Factory/LazyLoadingMetadataFactoryTest.php:53 | 1 | $constraints = [new ConstraintA(['groups' => ['Default', 'Entity', ]]), new ConstraintA(['groups' => ['Default', 'EntityParent', 'Entity', ]]), new ConstraintA(['groups' => ['Default', 'EntityInterfaceA', 'EntityParent', 'Entity', ]]), new ConstraintA(['groups' => ['Default', 'EntityInterfaceB', 'Entity', ]]), new ConstraintA(['groups' => ['Default', 'EntityParentInterface', 'Entity', ]]), ] |
/src/Symfony/Component/Validator/Tests/ConstraintValidatorTest.php:38 | 1 | $data = [['true', true], ['false', false], ['null', null], ['resource', fopen('php://memory', 'r')], ['"foo"', 'foo'], ['array', [ ]], ['object', $toString = new TestToStringObject( )], ['ccc', $toString, ConstraintValidator::OBJECT_TO_STRING], ['object', $dateTime = new \DateTimeImmutable('1971-02-02T08:00:00UTC')], [class_exists(\IntlDateFormatter::class) ? static::normalizeIcuSpaces("Oct 4, 2019, 11:02\u{202F}AM") : '2019-10-04 11:02:03', new \DateTimeImmutable('2019-10-04T11:02:03+09:00'), ConstraintValidator::PRETTY_DATE], [class_exists(\IntlDateFormatter::class) ? static::normalizeIcuSpaces("Feb 2, 1971, 8:00\u{202F}AM") : '1971-02-02 08:00:00', $dateTime, ConstraintValidator::PRETTY_DATE], [class_exists(\IntlDateFormatter::class) ? static::normalizeIcuSpaces("Jan 1, 1970, 6:00\u{202F}AM") : '1970-01-01 06:00:00', new \DateTimeImmutable('1970-01-01T06:00:00Z'), ConstraintValidator::PRETTY_DATE], [class_exists(\IntlDateFormatter::class) ? static::normalizeIcuSpaces("Jan 1, 1970, 3:00\u{202F}PM") : '1970-01-01 15:00:00', (new \DateTimeImmutable('1970-01-01T23:00:00'))->setTimezone(new \DateTimeZone('America/New_York')), ConstraintValidator::PRETTY_DATE], ['FirstCase', TestEnum::FirstCase], ] |
/src/Symfony/Component/HttpKernel/HttpCache/SubRequestHandler.php:35 | 1 | $trustedHeaders = ['FORWARDED' => $trustedHeaderSet & Request::HEADER_FORWARDED, 'X_FORWARDED_FOR' => $trustedHeaderSet & Request::HEADER_X_FORWARDED_FOR, 'X_FORWARDED_HOST' => $trustedHeaderSet & Request::HEADER_X_FORWARDED_HOST, 'X_FORWARDED_PROTO' => $trustedHeaderSet & Request::HEADER_X_FORWARDED_PROTO, 'X_FORWARDED_PORT' => $trustedHeaderSet & Request::HEADER_X_FORWARDED_PORT, 'X_FORWARDED_PREFIX' => $trustedHeaderSet & Request::HEADER_X_FORWARDED_PREFIX, ] |
/src/Symfony/Component/HttpKernel/HttpCache/AbstractSurrogate.php:75 | 1 | $subRequest = Request::create($uri, Request::METHOD_GET, [ ], $cache->getRequest( )->cookies->all( ), [ ], $cache->getRequest( )->server->all( )) |
/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:96 | 1 | $this->options = array_merge(['debug' => false, 'default_ttl' => 0, 'private_headers' => ['Authorization', 'Cookie'], 'skip_response_headers' => ['Set-Cookie'], 'allow_reload' => false, 'allow_revalidate' => false, 'stale_while_revalidate' => 2, 'stale_if_error' => 60, 'trace_level' => 'none', 'trace_header' => 'X-Symfony-Cache', ], $options) |
/src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/RequestAttributeValueResolver.php:27 | 1 | return !$argument->isVariadic( ) && $request->attributes->has($argument->getName( )) ? [$request->attributes->get($argument->getName( ))] : [ ] |
/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/RegisterControllerArgumentLocatorsPassTest.php:459 | 1 | $expected = ['apiKey' => new ServiceClosureArgument(new Reference('the_api_key')), 'service1' => new ServiceClosureArgument(new TypedReference(ControllerDummy::class, ControllerDummy::class, ContainerInterface::RUNTIME_EXCEPTION_ON_INVALID_REFERENCE, 'imageStorage')), 'service2' => new ServiceClosureArgument(new TypedReference(ControllerDummy::class, ControllerDummy::class, ContainerInterface::RUNTIME_EXCEPTION_ON_INVALID_REFERENCE, 'service2')), ] |
/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/ServicesResetterTest.php:34 | 1 | $resetter = new ServicesResetter(new \ArrayIterator(['id1' => new ResettableService( ), 'id2' => new ClearableService( ), 'id3' => new MultiResettableService( ), ]), ['id1' => ['reset'], 'id2' => ['clear'], 'id3' => ['resetFirst', 'resetSecond'], ]) |
/src/Symfony/Component/HttpKernel/Tests/Log/LoggerTest.php:149 | 2 | $context = ['bool' => true, 'null' => null, 'string' => 'Foo', 'int' => 0, 'float' => 0.5, 'nested' => ['with object' => new DummyTest( )], 'object' => new \DateTimeImmutable( ), 'resource' => fopen('php://memory', 'r'), ] |
/src/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php:1495 | 2 | $responses = [['status' => 200, 'body' => '<esi:include src="/hey" />', 'headers' => ['Surrogate-Control' => 'content="ESI/1.0"', 'ETag' => 'hey', 'Last-Modified' => $time->format(\DATE_RFC2822), ], ], ['status' => 200, 'body' => 'Hey!', 'headers' => [ ], ], ] |
/src/Symfony/Component/Form/Extension/Core/DataTransformer/DateIntervalToArrayTransformer.php:149 | 1 | $interval = sprintf('P%sY%sM%sDT%sH%sM%sS', empty($value['years']) ? '0' : $value['years'], empty($value['months']) ? '0' : $value['months'], empty($value['days']) ? '0' : $value['days'], empty($value['hours']) ? '0' : $value['hours'], empty($value['minutes']) ? '0' : $value['minutes'], empty($value['seconds']) ? '0' : $value['seconds']) |
/src/Symfony/Component/Form/Extension/Core/DataTransformer/DateIntervalToArrayTransformer.php:139 | 1 | $interval = sprintf('P%sY%sM%sWT%sH%sM%sS', empty($value['years']) ? '0' : $value['years'], empty($value['months']) ? '0' : $value['months'], empty($value['weeks']) ? '0' : $value['weeks'], empty($value['hours']) ? '0' : $value['hours'], empty($value['minutes']) ? '0' : $value['minutes'], empty($value['seconds']) ? '0' : $value['seconds']) |
/src/Symfony/Component/Form/Extension/Core/DataTransformer/DateIntervalToArrayTransformer.php:67 | 1 | return array_intersect_key(['years' => '', 'months' => '', 'weeks' => '', 'days' => '', 'hours' => '', 'minutes' => '', 'seconds' => '', 'invert' => false, ], array_flip($this->fields)) |
/src/Symfony/Component/Form/Extension/Core/CoreExtension.php:44 | 1 | return [new Type\FormType($this->propertyAccessor), new Type\BirthdayType( ), new Type\CheckboxType( ), new Type\ChoiceType($this->choiceListFactory, $this->translator), new Type\CollectionType( ), new Type\CountryType( ), new Type\DateIntervalType( ), new Type\DateType( ), new Type\DateTimeType( ), new Type\EmailType( ), new Type\HiddenType( ), new Type\IntegerType( ), new Type\LanguageType( ), new Type\LocaleType( ), new Type\MoneyType( ), new Type\NumberType( ), new Type\PasswordType( ), new Type\PercentType( ), new Type\RadioType( ), new Type\RangeType( ), new Type\RepeatedType( ), new Type\SearchType( ), new Type\TextareaType( ), new Type\TextType( ), new Type\TimeType( ), new Type\TimezoneType( ), new Type\UrlType( ), new Type\FileType($this->translator), new Type\ButtonType( ), new Type\SubmitType( ), new Type\ResetType( ), new Type\CurrencyType( ), new Type\TelType( ), new Type\ColorType($this->translator), new Type\WeekType( ), ] |
/src/Symfony/Component/Form/Extension/DataCollector/FormDataExtractor.php:27 | 1 | $data = ['id' => $this->buildId($form), 'name' => $form->getName( ), 'type_class' => $form->getConfig( )->getType( )->getInnerType( )::class, 'synchronized' => $form->isSynchronized( ), 'passed_options' => [ ], 'resolved_options' => [ ], ] |
/src/Symfony/Component/Form/Form.php:635 | 1 | return FormUtil::isEmpty($this->modelData) || (is_countable($this->modelData) && 0 === \count($this->modelData)) || ($this->modelData instanceof \Traversable && 0 === iterator_count($this->modelData)) |
/src/Symfony/Component/Form/NativeRequestHandler.php:204 | 1 | $files[$key] = self::fixPhpFilesArray(['error' => $data['error'][$key], 'name' => $name, 'type' => $data['type'][$key], 'tmp_name' => $data['tmp_name'][$key], 'size' => $data['size'][$key], ]) |
/src/Symfony/Component/HttpKernel/Profiler/FileProfilerStorage.php:151 | 1 | $data = ['token' => $profileToken, 'parent' => $parentToken, 'children' => $childrenToken, 'data' => $profile->getCollectors( ), 'ip' => $profile->getIp( ), 'method' => $profile->getMethod( ), 'url' => $profile->getUrl( ), 'time' => $profile->getTime( ), 'status_code' => $profile->getStatusCode( ), 'virtual_type' => $profile->getVirtualType( ) ?? 'request', ] |
/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php:409 | 1 | $choiceOpts = ['value' => $choiceView->value, 'label' => $choiceView->label, 'label_html' => $options['label_html'], 'attr' => $choiceView->attr, 'label_translation_parameters' => $choiceView->labelTranslationParameters, 'translation_domain' => $options['choice_translation_domain'], 'block_name' => 'entry', ] |
/src/Symfony/Component/Form/Extension/Validator/Constraints/FormValidator.php:57 | 1 | $validateDataGraph = $form->isRoot( ) && (\is_object($data) || \is_array($data)) && (($groups && \is_array($groups)) || ($groups instanceof GroupSequence && $groups->groups)) |
/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php:177 | 1 | $clientDataAsString = \is_scalar($form->getViewData( )) ? (string) $form->getViewData( ) : (\is_array($form->getViewData( )) ? implode('", "', array_keys($unknownValues)) : \gettype($form->getViewData( ))) |
/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php:234 | 1 | $view->vars = array_replace($view->vars, ['multiple' => $options['multiple'], 'expanded' => $options['expanded'], 'preferred_choices' => $choiceListView->preferredChoices, 'choices' => $choiceListView->choices, 'separator' => '-------------------', 'placeholder' => null, 'placeholder_attr' => [ ], 'choice_translation_domain' => $choiceTranslationDomain, 'choice_translation_parameters' => $options['choice_translation_parameters'], ]) |
/src/Symfony/Component/Form/Extension/Core/Type/BaseType.php:94 | 1 | $view->vars = array_replace($view->vars, ['form' => $view, 'id' => $id, 'name' => $name, 'full_name' => $fullName, 'disabled' => $form->isDisabled( ), 'label' => $options['label'], 'label_format' => $labelFormat, 'label_html' => $options['label_html'], 'multipart' => false, 'attr' => $options['attr'], 'block_prefixes' => $blockPrefixes, 'unique_block_prefix' => $uniqueBlockPrefix, 'row_attr' => $options['row_attr'], 'translation_domain' => $translationDomain, 'label_translation_parameters' => $labelTranslationParameters, 'attr_translation_parameters' => $attrTranslationParameters, 'priority' => $options['priority'], AbstractRendererEngine::CACHE_KEY_VAR => $uniqueBlockPrefix . '_' . $form->getConfig( )->getType( )->getBlockPrefix( ), ]) |
/src/Symfony/Component/Form/Extension/Core/Type/FormType.php:90 | 1 | $view->vars = array_replace($view->vars, ['errors' => $form->getErrors( ), 'valid' => $form->isSubmitted( ) ? $form->isValid( ) : true, 'value' => $form->getViewData( ), 'data' => $form->getNormData( ), 'required' => $form->isRequired( ), 'label_attr' => $options['label_attr'], 'help' => $options['help'], 'help_attr' => $options['help_attr'], 'help_html' => $options['help_html'], 'help_translation_parameters' => $helpTranslationParameters, 'compound' => $formConfig->getCompound( ), 'method' => $formConfig->getMethod( ), 'action' => $formConfig->getAction( ), 'submitted' => $form->isSubmitted( ), ]) |
/src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToArrayTransformer.php:74 | 1 | $result = array_intersect_key(['year' => $dateTime->format('Y'), 'month' => $dateTime->format('m'), 'day' => $dateTime->format('d'), 'hour' => $dateTime->format('H'), 'minute' => $dateTime->format('i'), 'second' => $dateTime->format('s'), ], array_flip($this->fields)) |
/src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToArrayTransformer.php:158 | 1 | $dateTime = new \DateTime(sprintf('%s-%s-%s %s:%s:%s', empty($value['year']) ? $this->referenceDate->format('Y') : $value['year'], empty($value['month']) ? $this->referenceDate->format('m') : $value['month'], empty($value['day']) ? $this->referenceDate->format('d') : $value['day'], $value['hour'] ?? $this->referenceDate->format('H'), $value['minute'] ?? $this->referenceDate->format('i'), $value['second'] ?? $this->referenceDate->format('s')), new \DateTimeZone($this->outputTimezone)) |
/src/Symfony/Component/Form/Tests/SimpleFormTest.php:624 | 1 | $form = $this->getBuilder( )->addModelTransformer(new FixedDataTransformer(['' => '', 'second' => 'first', ]))->addModelTransformer(new FixedDataTransformer(['' => '', 'third' => 'second', ]))->getForm( ) |
/src/Symfony/Component/Form/Tests/CompoundFormPerformanceTest.php:31 | 1 | $form = $this->factory->createBuilder('Symfony\Component\Form\Extension\Core\Type\FormType')->add('firstName', 'Symfony\Component\Form\Extension\Core\Type\TextType')->add('lastName', 'Symfony\Component\Form\Extension\Core\Type\TextType')->add('color', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', ['choices' => ['red' => 'Red', 'blue' => 'Blue'], 'required' => false, ])->add('age', 'Symfony\Component\Form\Extension\Core\Type\NumberType')->add('birthDate', 'Symfony\Component\Form\Extension\Core\Type\BirthdayType')->add('city', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', ['choices' => range(1, 300), ])->getForm( ) |
/src/Symfony/Component/Form/Tests/SimpleFormTest.php:575 | 1 | $form = $this->getBuilder('name')->addEventSubscriber(new FixedFilterListener(['preSubmit' => ['client' => 'filteredclient', ], 'onSubmit' => ['norm' => 'filterednorm', ], ]))->addViewTransformer(new FixedDataTransformer(['' => '', 'norm' => 'filteredclient', 'filterednorm' => 'cleanedclient', ]))->addModelTransformer(new FixedDataTransformer(['' => '', 'app' => 'filterednorm', ]))->getForm( ) |
/src/Symfony/Component/Form/Tests/SimpleFormTest.php:606 | 1 | $form = $this->getBuilder( )->addViewTransformer(new FixedDataTransformer(['' => '', 'third' => 'second', ]))->addViewTransformer(new FixedDataTransformer(['' => '', 'second' => 'first', ]))->getForm( ) |
/src/Symfony/Component/Form/Tests/SimpleFormTest.php:449 | 1 | $form = $this->getBuilder( )->addViewTransformer(new FixedDataTransformer(['' => '', 'first' => 'second', ]))->addViewTransformer(new FixedDataTransformer(['' => '', 'second' => 'third', ]))->getForm( ) |
/src/Symfony/Component/Form/Tests/SimpleFormTest.php:467 | 1 | $form = $this->getBuilder( )->addModelTransformer(new FixedDataTransformer(['' => '', 'second' => 'third', ]))->addModelTransformer(new FixedDataTransformer(['' => '', 'first' => 'second', ]))->getForm( ) |
/src/Symfony/Component/Form/Test/FormIntegrationTestCase.php:27 | 1 | $this->factory = Forms::createFormFactoryBuilder( )->addExtensions($this->getExtensions( ))->addTypeExtensions($this->getTypeExtensions( ))->addTypes($this->getTypes( ))->addTypeGuessers($this->getTypeGuessers( ))->getFormFactory( ) |
/src/Symfony/Component/Form/Tests/SimpleFormTest.php:424 | 1 | $form = $this->getBuilder('name')->addEventSubscriber(new FixedFilterListener(['preSetData' => ['app' => 'filtered', ], ]))->addModelTransformer(new FixedDataTransformer(['' => '', 'filtered' => 'norm', ]))->addViewTransformer(new FixedDataTransformer(['' => '', 'norm' => 'client', ]))->getForm( ) |
/src/Symfony/Component/Form/Tests/CompoundFormTest.php:790 | 1 | $form = $this->getBuilder('')->setMethod('GET')->setCompound(true)->setDataMapper(new DataMapper( ))->setRequestHandler(new HttpFoundationRequestHandler( ))->getForm( ) |
/src/Symfony/Component/Form/Tests/CompoundFormTest.php:763 | 1 | $form = $this->getBuilder('author')->setMethod('GET')->setCompound(true)->setDataMapper(new DataMapper( ))->setRequestHandler(new HttpFoundationRequestHandler( ))->getForm( ) |
/src/Symfony/Component/Form/Tests/AbstractRequestHandlerTestCase.php:443 | 1 | return [[1024 ** 3 + 1, '1G', true, ['{{ max }}' => '1G']], [1024 ** 3, '1G', false], [1024 ** 2 + 1, '1M', true, ['{{ max }}' => '1M']], [1024 ** 2, '1M', false], [1024 + 1, '1K', true, ['{{ max }}' => '1K']], [1024, '1K', false], [null, '1K', false], [1024, '', false], [1024, '0', false], ] |
/src/Symfony/Component/Form/Tests/CompoundFormTest.php:1087 | 1 | $form = $this->factory->createBuilder( )->setDataMapper(new DataMapper(new PropertyPathAccessor($propertyAccessor)))->add('date', DateType::class, ['auto_initialize' => false, 'format' => 'dd/MM/yyyy', 'html5' => false, 'model_timezone' => 'UTC', 'view_timezone' => 'UTC', 'widget' => 'single_text', ])->getForm( ) |
/src/Symfony/Component/Form/Tests/CompoundFormTest.php:603 | 1 | $files = ['author' => ['error' => ['image' => \UPLOAD_ERR_OK], 'name' => ['image' => 'upload.png'], 'size' => ['image' => null], 'tmp_name' => ['image' => $path], 'type' => ['image' => 'image/png'], ], ] |
/src/Symfony/Component/Form/Tests/CompoundFormTest.php:83 | 1 | $form = $this->getBuilder('person')->setDisabled(true)->setCompound(true)->setDataMapper(new DataMapper( ))->add($this->getBuilder('name'))->getForm( ) |
/src/Symfony/Component/Form/Tests/CompoundFormTest.php:664 | 1 | $form = $this->getBuilder('')->setMethod($method)->setCompound(true)->setDataMapper(new DataMapper( ))->setRequestHandler(new HttpFoundationRequestHandler( ))->getForm( ) |
/src/Symfony/Component/Form/Tests/CompoundFormTest.php:617 | 1 | $form = $this->getBuilder('author')->setMethod($method)->setCompound(true)->setDataMapper(new DataMapper( ))->setRequestHandler(new HttpFoundationRequestHandler( ))->getForm( ) |
/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php:190 | 1 | $formData = ['id' => 'name', 'name' => 'name', 'type_class' => FormType::class, 'synchronized' => true, 'passed_options' => [ ], 'resolved_options' => $this->form->getConfig( )->getOptions( ), 'default_data' => ['norm' => null, ], 'submitted_data' => [ ], 'children' => [ ], ] |
/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php:167 | 1 | $formData = ['id' => 'name', 'name' => 'name', 'type_class' => FormType::class, 'synchronized' => true, 'passed_options' => [ ], 'resolved_options' => $this->form->getConfig( )->getOptions( ), 'children' => [ ], ] |
/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php:268 | 1 | $formData = ['id' => 'name', 'name' => 'name', 'type_class' => FormType::class, 'synchronized' => true, 'passed_options' => [ ], 'resolved_options' => $this->form->getConfig( )->getOptions( ), 'default_data' => ['norm' => null, ], 'submitted_data' => ['norm' => null, ], 'errors' => [ ], 'view_vars' => ['attr' => [ ], 'value' => null, ], 'has_children_error' => false, 'children' => ['child' => $childFormData, ], ] |
/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php:245 | 1 | $childFormData = ['id' => 'name_child', 'name' => 'child', 'type_class' => FormType::class, 'synchronized' => true, 'passed_options' => [ ], 'resolved_options' => $this->childForm->getConfig( )->getOptions( ), 'default_data' => ['norm' => null, 'view' => '', ], 'submitted_data' => ['norm' => null, 'view' => '', ], 'errors' => [ ], 'view_vars' => ['attr' => [ ], 'value' => null, ], 'children' => [ ], ] |
/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php:76 | 1 | $formData = ['id' => 'name', 'name' => 'name', 'type_class' => FormType::class, 'synchronized' => true, 'passed_options' => [ ], 'resolved_options' => $this->form->getConfig( )->getOptions( ), 'default_data' => ['norm' => null, ], 'submitted_data' => ['norm' => null, ], 'errors' => [ ], 'has_children_error' => false, 'children' => ['child' => $childFormData, ], ] |
/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php:57 | 1 | $childFormData = ['id' => 'name_child', 'name' => 'child', 'type_class' => FormType::class, 'synchronized' => true, 'passed_options' => [ ], 'resolved_options' => $this->childForm->getConfig( )->getOptions( ), 'default_data' => ['norm' => null, 'view' => '', ], 'submitted_data' => ['norm' => null, 'view' => '', ], 'errors' => [ ], 'children' => [ ], ] |
/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php:139 | 1 | $form2Data = ['id' => 'form2', 'name' => 'form2', 'type_class' => FormType::class, 'synchronized' => true, 'passed_options' => [ ], 'resolved_options' => $form2->getConfig( )->getOptions( ), 'children' => [ ], ] |
/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php:117 | 1 | $form1Data = ['id' => 'form1', 'name' => 'form1', 'type_class' => FormType::class, 'synchronized' => true, 'passed_options' => [ ], 'resolved_options' => $form1->getConfig( )->getOptions( ), 'children' => [ ], ] |
/src/Symfony/Component/Form/Tests/Extension/Core/DataMapper/DataMapperTest.php:390 | 1 | $form = (new FormFactoryBuilder( ))->getFormFactory( )->createBuilder( )->setDataMapper(new DataMapper(new PropertyPathAccessor($propertyAccessor)))->add('date', DateType::class, ['auto_initialize' => false, 'format' => 'dd/MM/yyyy', 'html5' => false, 'model_timezone' => 'UTC', 'view_timezone' => 'UTC', 'widget' => 'single_text', ])->getForm( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToArrayTransformerTest.php:109 | 2 | $output = ['year' => (string) (int) $dateTime->format('Y'), 'month' => (string) (int) $dateTime->format('m'), 'day' => (string) (int) $dateTime->format('d'), 'hour' => (string) (int) $dateTime->format('H'), 'minute' => (string) (int) $dateTime->format('i'), 'second' => (string) (int) $dateTime->format('s'), ] |
/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToArrayTransformerTest.php:129 | 2 | $output = ['year' => (string) (int) $dateTime->format('Y'), 'month' => (string) (int) $dateTime->format('m'), 'day' => (string) (int) $dateTime->format('d'), 'hour' => (string) (int) $dateTime->format('H'), 'minute' => (string) (int) $dateTime->format('i'), 'second' => (string) (int) $dateTime->format('s'), ] |
/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeImmutableToDateTimeTransformerTest.php:35 | 1 | return [[new \DateTime('2010-02-03 04:05:06 UTC'), new \DateTimeImmutable('2010-02-03 04:05:06 UTC'), ], [(new \DateTime('2019-10-07 +11:00'))->setTime(14, 27, 11, 10042), (new \DateTimeImmutable('2019-10-07 +11:00'))->setTime(14, 27, 11, 10042), ], ] |
/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php:413 | 2 | $formData = ['id' => 'name', 'name' => 'name', 'type_class' => FormType::class, 'synchronized' => true, 'passed_options' => [ ], 'resolved_options' => $this->form->getConfig( )->getOptions( ), 'children' => ['child' => $childFormData, ], ] |
/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php:452 | 1 | $childFormData = ['id' => 'child', 'name' => 'child', 'type_class' => FormType::class, 'synchronized' => true, 'passed_options' => [ ], 'resolved_options' => $this->childForm->getConfig( )->getOptions( ), 'children' => [ ], ] |
/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php:462 | 2 | $formData = ['id' => 'name', 'name' => 'name', 'type_class' => FormType::class, 'synchronized' => true, 'passed_options' => [ ], 'resolved_options' => $this->form->getConfig( )->getOptions( ), 'children' => ['child' => $childFormData, ], ] |
/src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php:565 | 1 | $form = $this->factory->createNamedBuilder('root', FormType::class, ['items' => null])->add('items', CollectionType::class, ['entry_type' => TextType::class, 'allow_add' => true, 'data' => ['foo'], ])->getForm( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php:119 | 1 | $view = $this->factory->createNamedBuilder('parent', static::TESTED_TYPE, null, ['attr' => ['readonly' => true]])->add('child', static::TESTED_TYPE)->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php:129 | 1 | $view = $this->factory->createNamedBuilder('parent', static::TESTED_TYPE)->add('child', static::TESTED_TYPE, ['attr' => ['readonly' => true]])->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php:194 | 2 | $form = $this->factory->createBuilder(static::TESTED_TYPE, null, ['data_class' => 'Symfony\Component\Form\Tests\Fixtures\Author', 'required' => false, ])->add('firstName', TextTypeTest::TESTED_TYPE)->add('lastName', TextTypeTest::TESTED_TYPE)->getForm( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php:217 | 1 | $form = $this->factory->createBuilder(static::TESTED_TYPE, null, ['data' => $defaultAuthor, 'required' => false, ])->add('firstName', TextTypeTest::TESTED_TYPE)->add('lastName', TextTypeTest::TESTED_TYPE)->getForm( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/ButtonTypeTest.php:44 | 1 | $view = $this->factory->createNamedBuilder('parent', FormType::class, null, ['form_attr' => true, ])->add('child1', $this->getTestedType( ))->add('child2', $this->getTestedType( ))->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/ButtonTypeTest.php:59 | 1 | $view = $this->factory->createNamedBuilder('parent')->add('child1', $this->getTestedType( ), ['form_attr' => true, ])->add('child2', $this->getTestedType( ))->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/ButtonTypeTest.php:89 | 1 | $view = $this->factory->createNamedBuilder('', FormType::class, null, ['form_attr' => $stringId, ])->add('child1', $this->getTestedType( ))->add('child2', $this->getTestedType( ))->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php:103 | 1 | $form = $this->factory->createBuilder(static::TESTED_TYPE, null, ['trim' => false])->addViewTransformer(new FixedDataTransformer(['' => '', 'reverse[ a ]' => ' a ', ]))->setCompound(false)->getForm( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php:638 | 1 | $view = $this->factory->createBuilder(static::TESTED_TYPE)->addModelTransformer(new FixedDataTransformer(['foo' => 'bar', ]))->addViewTransformer(new FixedDataTransformer(['bar' => 'baz', ]))->setData('foo')->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php:482 | 1 | $view = $this->factory->createBuilder(static::TESTED_TYPE)->add('foo', TextTypeTest::TESTED_TYPE)->add('bar', FileTypeTest::TESTED_TYPE)->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php:272 | 1 | $form = $this->factory->createBuilder(static::TESTED_TYPE, null, ['data_class' => 'Symfony\Component\Form\Tests\Fixtures\Author', 'required' => true, ])->add('firstName', TextTypeTest::TESTED_TYPE)->add('lastName', TextTypeTest::TESTED_TYPE)->getForm( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php:255 | 2 | $form = $this->factory->createBuilder(static::TESTED_TYPE, null, ['data_class' => 'Symfony\Component\Form\Tests\Fixtures\Author', 'required' => false, ])->add('firstName', TextTypeTest::TESTED_TYPE)->add('lastName', TextTypeTest::TESTED_TYPE)->getForm( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php:757 | 1 | $form = $this->factory->createNamedBuilder('form', self::TESTED_TYPE)->add($this->factory->createNamedBuilder('inherit_data_type', self::TESTED_TYPE, null, ['inherit_data' => true, ])->add('child', self::TESTED_TYPE, ['compound' => false, 'error_bubbling' => true, ]))->getForm( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php:742 | 1 | $view = $this->factory->createNamedBuilder('parent', self::TESTED_TYPE, null, ['help_translation_parameters' => ['%parent_param%' => 'parent_value', '%override_param%' => 'parent_override_value'], ])->add('child', $this->getTestedType( ), ['help_translation_parameters' => ['%override_param%' => 'child_value'], ])->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php:729 | 1 | $view = $this->factory->createNamedBuilder('parent', self::TESTED_TYPE, null, ['help_translation_parameters' => ['%param%' => 'value'], ])->add('child', $this->getTestedType( ))->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php:697 | 1 | $view = $this->factory->createNamedBuilder('parent', static::TESTED_TYPE)->add('child', $this->getTestedType( ), ['block_prefix' => 'child', ])->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php:840 | 1 | $view = $this->factory->createNamedBuilder('parent', self::TESTED_TYPE)->add('child1', null, ['priority' => -1])->add('child2')->add('child3', null, ['priority' => -1])->add('child4')->add('child5', null, ['priority' => 1])->add('child6')->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php:824 | 1 | $view = $this->factory->createNamedBuilder('', self::TESTED_TYPE, null, ['form_attr' => $stringId, ])->add('child1', $this->getTestedType( ))->add('child2', $this->getTestedType( ))->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php:794 | 1 | $view = $this->factory->createNamedBuilder('parent', self::TESTED_TYPE)->add('child1', $this->getTestedType( ), ['form_attr' => true, ])->add('child2', $this->getTestedType( ))->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php:779 | 1 | $view = $this->factory->createNamedBuilder('parent', self::TESTED_TYPE, null, ['form_attr' => true, ])->add('child1', $this->getTestedType( ))->add('child2', $this->getTestedType( ))->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTimeTypeTest.php:400 | 1 | $view = $this->factory->create(static::TESTED_TYPE, null, ['placeholder' => ['year' => 'Empty year', 'month' => 'Empty month', 'day' => 'Empty day', 'hour' => 'Empty hour', 'minute' => 'Empty minute', 'second' => 'Empty second', ], 'with_seconds' => true, 'widget' => 'choice', ])->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTimeTypeTest.php:210 | 1 | $form = $this->factory->create(static::TESTED_TYPE, null, ['model_timezone' => 'America/New_York', 'view_timezone' => 'Pacific/Tahiti', 'date_widget' => 'choice', 'years' => [2010], 'time_widget' => 'choice', 'input' => 'string', 'with_seconds' => true, ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTimeTypeTest.php:178 | 1 | $form = $this->factory->create(static::TESTED_TYPE, null, ['model_timezone' => 'UTC', 'view_timezone' => 'UTC', 'date_widget' => 'choice', 'years' => [2010], 'time_widget' => 'choice', 'input' => 'datetime', 'with_seconds' => true, ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTimeTypeTest.php:148 | 1 | $form = $this->factory->create(static::TESTED_TYPE, null, ['model_timezone' => 'UTC', 'view_timezone' => 'UTC', 'date_widget' => 'choice', 'years' => [2010], 'time_widget' => 'choice', 'input' => 'datetime', 'with_minutes' => false, ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTimeTypeTest.php:629 | 1 | $form = $this->factory->create(static::TESTED_TYPE, null, ['choice_translation_domain' => ['year' => 'foo', 'month' => 'test', 'hour' => 'foo', 'second' => 'test', ], 'with_seconds' => true, 'widget' => 'choice', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTimeTypeTest.php:728 | 1 | return ['Simple field' => ['single_text', '2018-11-11T21:23', $expectedData], 'Compound text field' => ['text', ['date' => ['year' => '2018', 'month' => '11', 'day' => '11'], 'time' => ['hour' => '21', 'minute' => '23']], $expectedData], 'Compound choice field' => ['choice', ['date' => ['year' => '2018', 'month' => '11', 'day' => '11'], 'time' => ['hour' => '21', 'minute' => '23']], $expectedData], 'Simple field lazy' => ['single_text', $lazyEmptyData, $expectedData], 'Compound text field lazy' => ['text', $lazyEmptyData, $expectedData], 'Compound choice field lazy' => ['choice', $lazyEmptyData, $expectedData], ] |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTimeTypeTest.php:424 | 1 | $view = $this->factory->create(static::TESTED_TYPE, null, ['required' => false, 'placeholder' => ['year' => 'Empty year', 'day' => 'Empty day', 'hour' => 'Empty hour', 'second' => 'Empty second', ], 'with_seconds' => true, 'widget' => 'choice', ])->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTimeTypeTest.php:447 | 1 | $view = $this->factory->create(static::TESTED_TYPE, null, ['required' => true, 'placeholder' => ['year' => 'Empty year', 'day' => 'Empty day', 'hour' => 'Empty hour', 'second' => 'Empty second', ], 'with_seconds' => true, 'widget' => 'choice', ])->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateIntervalTypeTest.php:295 | 1 | $view = $this->factory->create(static::TESTED_TYPE, null, ['required' => true, 'placeholder' => ['years' => 'Empty years', 'days' => 'Empty days', 'hours' => 'Empty hours', 'seconds' => 'Empty seconds', ], 'with_hours' => true, 'with_minutes' => true, 'with_seconds' => true, ])->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateIntervalTypeTest.php:358 | 1 | $form = $this->factory->create(static::TESTED_TYPE, null, ['required' => true, 'with_invert' => true, 'with_hours' => true, 'with_minutes' => true, 'with_seconds' => true, 'labels' => ['invert' => 'form.trans.invert', 'years' => 'form.trans.years', 'months' => 'form.trans.months', 'days' => 'form.trans.days', 'hours' => 'form.trans.hours', 'minutes' => 'form.trans.minutes', 'seconds' => 'form.trans.seconds', ], ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateIntervalTypeTest.php:246 | 1 | $view = $this->factory->create(static::TESTED_TYPE, null, ['placeholder' => ['years' => 'Empty years', 'months' => 'Empty months', 'days' => 'Empty days', 'hours' => 'Empty hours', 'minutes' => 'Empty minutes', 'seconds' => 'Empty seconds', ], 'with_hours' => true, 'with_minutes' => true, 'with_seconds' => true, ])->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateIntervalTypeTest.php:271 | 1 | $view = $this->factory->create(static::TESTED_TYPE, null, ['required' => false, 'placeholder' => ['years' => 'Empty years', 'days' => 'Empty days', 'hours' => 'Empty hours', 'seconds' => 'Empty seconds', ], 'with_hours' => true, 'with_minutes' => true, 'with_seconds' => true, ])->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/EnumTypeTest.php:181 | 1 | $form = $this->factory->create($this->getTestedType( ), null, ['multiple' => true, 'expanded' => true, 'class' => Suit::class, 'empty_data' => [Suit::Spades->value], ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/TimeTypeTest.php:290 | 2 | $form = $this->factory->create(static::TESTED_TYPE, null, ['model_timezone' => 'UTC', 'view_timezone' => 'Europe/Berlin', 'input' => 'datetime', 'with_seconds' => true, 'reference_date' => new \DateTimeImmutable('2019-01-01', new \DateTimeZone('UTC')), 'widget' => 'choice', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateIntervalTypeTest.php:447 | 1 | return ['Simple field' => ['single_text', 'P6Y4M0D', $expectedData], 'Compound text field' => ['text', ['years' => '06', 'months' => '04', 'days' => '00'], $expectedData], 'Compound integer field' => ['integer', ['years' => '6', 'months' => '4', 'days' => '0'], $expectedData], 'Compound choice field' => ['choice', ['years' => '6', 'months' => '4', 'days' => '0'], $expectedData], ] |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/EnumTypeTest.php:153 | 1 | $form = $this->factory->create($this->getTestedType( ), null, ['multiple' => true, 'expanded' => false, 'class' => Suit::class, 'empty_data' => [Suit::Diamonds->value], ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/TimeTypeTest.php:346 | 2 | $form = $this->factory->create(static::TESTED_TYPE, null, ['model_timezone' => 'UTC', 'view_timezone' => 'Europe/Berlin', 'input' => 'datetime', 'with_seconds' => true, 'reference_date' => new \DateTimeImmutable('2019-07-12', new \DateTimeZone('UTC')), 'widget' => 'single_text', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/TimeTypeTest.php:362 | 2 | $form = $this->factory->create(static::TESTED_TYPE, null, ['model_timezone' => 'UTC', 'view_timezone' => 'Europe/Berlin', 'input' => 'datetime', 'with_seconds' => true, 'reference_date' => new \DateTimeImmutable('2019-01-01', new \DateTimeZone('UTC')), 'widget' => 'choice', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/TimeTypeTest.php:310 | 3 | $form = $this->factory->create(static::TESTED_TYPE, null, ['model_timezone' => 'UTC', 'view_timezone' => 'Europe/Berlin', 'input' => 'datetime', 'with_seconds' => true, 'reference_date' => new \DateTimeImmutable('2019-07-12', new \DateTimeZone('UTC')), 'widget' => 'choice', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/TimeTypeTest.php:330 | 1 | $form = $this->factory->create(static::TESTED_TYPE, null, ['model_timezone' => 'UTC', 'view_timezone' => 'Europe/Berlin', 'input' => 'datetime', 'with_seconds' => true, 'reference_date' => new \DateTimeImmutable('2019-01-01', new \DateTimeZone('UTC')), 'widget' => 'single_text', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/TimeTypeTest.php:400 | 2 | $form = $this->factory->create(static::TESTED_TYPE, null, ['model_timezone' => 'UTC', 'view_timezone' => 'Europe/Berlin', 'input' => 'datetime', 'with_seconds' => true, 'reference_date' => new \DateTimeImmutable('2019-07-12', new \DateTimeZone('UTC')), 'widget' => 'single_text', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/TimeTypeTest.php:381 | 3 | $form = $this->factory->create(static::TESTED_TYPE, null, ['model_timezone' => 'UTC', 'view_timezone' => 'Europe/Berlin', 'input' => 'datetime', 'with_seconds' => true, 'reference_date' => new \DateTimeImmutable('2019-07-12', new \DateTimeZone('UTC')), 'widget' => 'choice', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/TimeTypeTest.php:521 | 1 | $form = $this->factory->create(static::TESTED_TYPE, null, ['model_timezone' => 'America/New_York', 'view_timezone' => 'Asia/Hong_Kong', 'input' => 'datetime', 'with_seconds' => true, 'reference_date' => new \DateTimeImmutable('now', new \DateTimeZone('America/New_York')), 'widget' => 'choice', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/TimeTypeTest.php:493 | 1 | $form = $this->factory->create(static::TESTED_TYPE, null, ['model_timezone' => 'America/New_York', 'view_timezone' => 'Asia/Hong_Kong', 'input' => 'string', 'with_seconds' => true, 'reference_date' => new \DateTimeImmutable('2013-01-01 00:00:00', new \DateTimeZone('America/New_York')), 'widget' => 'choice', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/TimeTypeTest.php:1087 | 1 | $form = $this->factory->create(static::TESTED_TYPE, null, ['model_timezone' => 'UTC', 'view_timezone' => 'Europe/Berlin', 'reference_date' => new \DateTimeImmutable('01-01-2021 12:34:56', new \DateTimeZone('UTC')), 'input' => 'array', 'widget' => 'choice', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/TimeTypeTest.php:550 | 3 | $form = $this->factory->create(static::TESTED_TYPE, null, ['model_timezone' => 'UTC', 'view_timezone' => 'Europe/Berlin', 'input' => 'datetime', 'with_seconds' => true, 'reference_date' => new \DateTimeImmutable('2019-07-12', new \DateTimeZone('UTC')), 'widget' => 'choice', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/TimeTypeTest.php:1154 | 1 | return ['Simple field' => ['single_text', '21:23', $expectedData], 'Compound text field' => ['text', ['hour' => '21', 'minute' => '23'], $expectedData], 'Compound choice field' => ['choice', ['hour' => '21', 'minute' => '23'], $expectedData], 'Simple field lazy' => ['single_text', $lazyEmptyData, $expectedData], 'Compound text field lazy' => ['text', $lazyEmptyData, $expectedData], 'Compound choice field lazy' => ['choice', $lazyEmptyData, $expectedData], ] |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/TimeTypeTest.php:1115 | 1 | $form = $this->factory->create(static::TESTED_TYPE, $input, ['model_timezone' => 'UTC', 'view_timezone' => 'Europe/Berlin', 'reference_date' => new \DateTimeImmutable('01-05-2021 12:34:56', new \DateTimeZone('UTC')), 'input' => 'array', 'widget' => 'choice', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTypeTest.php:102 | 1 | $form = $this->factory->create(static::TESTED_TYPE, null, ['format' => \IntlDateFormatter::MEDIUM, 'html5' => false, 'model_timezone' => 'UTC', 'view_timezone' => 'UTC', 'widget' => 'single_text', 'input' => 'datetime', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/RepeatedTypeTest.php:56 | 1 | $form = $this->factory->create(static::TESTED_TYPE, null, ['type' => TextTypeTest::TESTED_TYPE, 'first_options' => ['label' => 'Test', 'required' => false], 'second_options' => ['label' => 'Test2'], ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTypeTest.php:155 | 1 | $form = $this->factory->create(static::TESTED_TYPE, null, ['format' => \IntlDateFormatter::MEDIUM, 'html5' => false, 'model_timezone' => 'UTC', 'view_timezone' => 'UTC', 'widget' => 'single_text', 'input' => 'string', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTypeTest.php:128 | 1 | $form = $this->factory->create(static::TESTED_TYPE, null, ['format' => \IntlDateFormatter::MEDIUM, 'html5' => false, 'model_timezone' => 'UTC', 'view_timezone' => 'UTC', 'widget' => 'single_text', 'input' => 'datetime_immutable', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTypeTest.php:209 | 1 | $form = $this->factory->create(static::TESTED_TYPE, null, ['format' => \IntlDateFormatter::MEDIUM, 'html5' => false, 'model_timezone' => 'UTC', 'view_timezone' => 'UTC', 'widget' => 'single_text', 'input' => 'array', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTypeTest.php:181 | 1 | $form = $this->factory->create(static::TESTED_TYPE, null, ['format' => \IntlDateFormatter::MEDIUM, 'html5' => false, 'model_timezone' => 'UTC', 'view_timezone' => 'UTC', 'widget' => 'single_text', 'input' => 'timestamp', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTypeTest.php:510 | 1 | $form = $this->factory->create(static::TESTED_TYPE, null, ['format' => \IntlDateFormatter::MEDIUM, 'html5' => false, 'model_timezone' => 'UTC', 'view_timezone' => 'America/New_York', 'input' => 'string', 'widget' => 'single_text', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTypeTest.php:243 | 1 | $form = $this->factory->create(static::TESTED_TYPE, $input, ['format' => \IntlDateFormatter::MEDIUM, 'html5' => false, 'model_timezone' => 'UTC', 'view_timezone' => 'Europe/Berlin', 'input' => 'array', 'widget' => 'single_text', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTypeTest.php:533 | 1 | $form = $this->factory->create(static::TESTED_TYPE, null, ['format' => \IntlDateFormatter::MEDIUM, 'html5' => false, 'model_timezone' => 'UTC', 'view_timezone' => 'America/New_York', 'input' => 'datetime', 'widget' => 'single_text', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTypeTest.php:1113 | 1 | return ['Simple field' => ['single_text', '2018-11-11', $expectedData], 'Compound text fields' => ['text', ['year' => '2018', 'month' => '11', 'day' => '11'], $expectedData], 'Compound choice fields' => ['choice', ['year' => '2018', 'month' => '11', 'day' => '11'], $expectedData], 'Simple field lazy' => ['single_text', $lazyEmptyData, $expectedData], 'Compound text fields lazy' => ['text', $lazyEmptyData, $expectedData], 'Compound choice fields lazy' => ['choice', $lazyEmptyData, $expectedData], ] |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php:71 | 1 | $this->objectChoices = [(object) ['id' => 1, 'name' => 'Bernhard'], (object) ['id' => 2, 'name' => 'Fabien'], (object) ['id' => 3, 'name' => 'Kris'], (object) ['id' => 4, 'name' => 'Jon'], (object) ['id' => 5, 'name' => 'Roman'], ] |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php:252 | 1 | $view = $this->factory->create(static::TESTED_TYPE, null, ['multiple' => false, 'expanded' => false, 'required' => false, 'choices' => ['Yes' => true, 'No' => false, ], 'placeholder' => 'Select an option', ])->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php:272 | 1 | $view = $this->factory->create(static::TESTED_TYPE, false, ['multiple' => false, 'expanded' => false, 'required' => false, 'choices' => ['Yes' => true, 'No' => false, ], 'placeholder' => 'Select an option', ])->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php:292 | 1 | $form = $this->factory->create(static::TESTED_TYPE, null, ['multiple' => false, 'expanded' => true, 'required' => false, 'choices' => ['Yes' => true, 'No' => false, ], 'placeholder' => 'Select an option', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php:316 | 1 | $form = $this->factory->create(static::TESTED_TYPE, false, ['multiple' => false, 'expanded' => true, 'required' => false, 'choices' => ['Yes' => true, 'No' => false, ], 'placeholder' => 'Select an option', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php:365 | 1 | $form = $this->factory->create(static::TESTED_TYPE, null, ['expanded' => true, 'choices' => ['Symfony' => [$obj1, $obj2, $obj3], 'Doctrine' => [$obj4, $obj5], ], 'choice_name' => 'id', ]) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php:1526 | 1 | $view = $this->factory->create(static::TESTED_TYPE, $this->objectChoices[3], ['multiple' => false, 'expanded' => false, 'choices' => $this->objectChoices, 'choice_label' => 'name', 'choice_value' => 'id', ])->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php:1544 | 1 | $view = $this->factory->create(static::TESTED_TYPE, [$this->objectChoices[3]], ['multiple' => true, 'expanded' => false, 'choices' => $this->objectChoices, 'choice_label' => 'name', 'choice_value' => 'id', ])->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php:1677 | 1 | $view = $this->factory->create(static::TESTED_TYPE, null, ['multiple' => $multiple, 'expanded' => $expanded, 'required' => $required, 'placeholder' => $placeholder, 'placeholder_attr' => $placeholderAttr, 'choices' => $this->choices, ])->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php:1697 | 1 | $view = $this->factory->create(static::TESTED_TYPE, null, ['multiple' => $multiple, 'expanded' => $expanded, 'required' => $required, 'placeholder' => $placeholder, 'placeholder_attr' => $placeholderAttr, 'choices' => ['Empty' => '', 'A' => 'a'], ])->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php:1828 | 1 | $view = $this->factory->create(static::TESTED_TYPE, null, ['choices' => [$obj1, $obj2, $obj3, $obj4], 'choice_label' => 'label', 'choice_value' => 'value', 'choice_attr' => [['attr1' => 'value1'], ['attr2' => 'value2'], ['attr3' => 'value3'], ['attr4' => 'value4'], ], 'choice_translation_parameters' => [['%placeholder1%' => 'value1'], ['%placeholder2%' => 'value2'], ['%placeholder3%' => 'value3'], ['%placeholder4%' => 'value4'], ], ])->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php:2003 | 1 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE, null, ['translation_domain' => 'parent_domain', ])->add('child', static::TESTED_TYPE, ['translation_domain' => 'domain', ])->getForm( )->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php:2099 | 1 | $form = $this->factory->create(static::TESTED_TYPE, null, ['label' => 'label', 'translation_domain' => 'label_translation_domain', 'choices' => ['choice1' => true, 'choice2' => false, ], 'choice_translation_domain' => 'choice_translation_domain', 'expanded' => true, ])->createView( ) |
/src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php:2260 | 1 | $view = $this->factory->create(FormTypeTest::TESTED_TYPE)->add('choice_one', self::TESTED_TYPE, ['choice_loader' => $choiceLoader, ])->add('choice_two', self::TESTED_TYPE, ['choice_loader' => $choiceLoader, 'choice_value' => fn ($choice) => $choice ? (string) $choice * 10 : '', ])->createView( ) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTestCase.php:581 | 1 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'preferred_choices' => ['&b'], 'duplicate_preferred_choices' => false, 'multiple' => false, 'expanded' => false, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTestCase.php:533 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'choice_attr' => ['Choice&B' => ['class' => 'foo&bar']], 'multiple' => false, 'expanded' => false, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTestCase.php:770 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'required' => true, 'multiple' => false, 'expanded' => false, 'placeholder' => 'Test&Me', ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTestCase.php:745 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'multiple' => false, 'expanded' => false, 'required' => false, 'placeholder' => 'Select&Anything&Not&Me', ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTestCase.php:405 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'multiple' => false, 'expanded' => false, 'attr' => ['class' => 'bar&baz'], ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php:2561 | 1 | $view = $this->factory->createNamedBuilder('name', 'Symfony\Component\Form\Extension\Core\Type\FormType', null, ['translation_domain' => false, ])->add('firstName', 'Symfony\Component\Form\Extension\Core\Type\TextType', ['attr' => ['title' => 'Foo']])->add('lastName', 'Symfony\Component\Form\Extension\Core\Type\TextType', ['attr' => ['placeholder' => 'Bar']])->getForm( )->createView( ) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTestCase.php:507 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'multiple' => false, 'expanded' => false, 'required' => false, 'translation_domain' => false, 'placeholder' => 'Placeholder&Not&Translated', ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTestCase.php:428 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'multiple' => false, 'expanded' => true, 'attr' => ['class' => 'bar&baz'], ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php:2297 | 1 | $form = $this->factory->createNamedBuilder('name', 'Symfony\Component\Form\Extension\Core\Type\FormType', ['items' => ['one', 'two', 'three']])->add('items', 'Symfony\Component\Form\Extension\Core\Type\CollectionType', ['allow_add' => true])->getForm( )->createView( ) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php:1209 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', ['&a', '&c'], ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b', 'Choice&C' => '&c'], 'choice_attr' => ['Choice&B' => ['class' => 'foo&bar']], 'multiple' => true, 'expanded' => true, 'required' => true, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php:2547 | 1 | $view = $this->factory->createNamedBuilder('name', 'Symfony\Component\Form\Extension\Core\Type\FormType')->add('firstName', 'Symfony\Component\Form\Extension\Core\Type\TextType', ['attr' => ['title' => 'Foo']])->add('lastName', 'Symfony\Component\Form\Extension\Core\Type\TextType', ['attr' => ['placeholder' => 'Bar']])->getForm( )->createView( ) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php:2442 | 2 | $form = $this->factory->createNamed('text', 'Symfony\Component\Form\Extension\Core\Type\TextType', 'value', ['required' => true, 'disabled' => true, 'attr' => ['readonly' => true, 'maxlength' => 10, 'pattern' => '\d+', 'class' => 'foobar', 'data-foo' => 'bar'], ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php:1109 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'multiple' => false, 'expanded' => true, 'required' => false, 'choice_translation_domain' => false, 'placeholder' => 'Placeholder&Not&Translated', ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php:1083 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'multiple' => false, 'expanded' => true, 'placeholder' => 'Test&Me', 'required' => false, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php:1183 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', ['&a', '&c'], ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b', 'Choice&C' => '&c'], 'multiple' => true, 'expanded' => true, 'required' => true, 'choice_translation_domain' => false, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php:1158 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', ['&a', '&c'], ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b', 'Choice&C' => '&c'], 'multiple' => true, 'expanded' => true, 'required' => true, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php:893 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', ['choices' => ['Group&1' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'Group&2' => ['Choice&C' => '&c'], ], 'multiple' => false, 'expanded' => false, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php:946 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', ['&a'], ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'choice_attr' => ['Choice&B' => ['class' => 'foo&bar']], 'required' => true, 'multiple' => true, 'expanded' => false, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php:1036 | 1 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'multiple' => false, 'expanded' => true, 'choice_translation_domain' => false, 'placeholder' => 'Placeholder&Not&Translated', ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php:1060 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'choice_attr' => ['Choice&B' => ['class' => 'foo&bar']], 'multiple' => false, 'expanded' => true, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php:628 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'multiple' => false, 'expanded' => false, 'attr' => ['class' => 'bar&baz'], ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php:651 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'multiple' => false, 'expanded' => true, 'attr' => ['class' => 'bar&baz'], ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php:816 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'multiple' => false, 'expanded' => false, 'required' => false, 'placeholder' => 'Select&Anything&Not&Me', ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php:840 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'required' => true, 'multiple' => false, 'expanded' => false, 'placeholder' => 'Test&Me', ]) |
/src/Symfony/Bridge/Twig/Extension/RoutingExtension.php:37 | 1 | return [new TwigFunction('url', $this->getUrl(...), ['is_safe_callback' => $this->isUrlGenerationSafe(...)]), new TwigFunction('path', $this->getPath(...), ['is_safe_callback' => $this->isUrlGenerationSafe(...)]), ] |
/src/Symfony/Bridge/Twig/Extension/WorkflowExtension.php:37 | 1 | return [new TwigFunction('workflow_can', $this->canTransition(...)), new TwigFunction('workflow_transitions', $this->getEnabledTransitions(...)), new TwigFunction('workflow_transition', $this->getEnabledTransition(...)), new TwigFunction('workflow_has_marked_place', $this->hasMarkedPlace(...)), new TwigFunction('workflow_marked_places', $this->getMarkedPlaces(...)), new TwigFunction('workflow_metadata', $this->getMetadata(...)), new TwigFunction('workflow_transition_blockers', $this->buildTransitionBlockerList(...)), ] |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php:581 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'multiple' => false, 'expanded' => false, 'required' => false, 'translation_domain' => false, 'placeholder' => 'Placeholder&Not&Translated', ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php:606 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'choice_attr' => ['Choice&B' => ['class' => 'foo&bar']], 'multiple' => false, 'expanded' => false, ]) |
/src/Symfony/Bridge/Twig/Extension/HttpKernelExtension.php:27 | 1 | return [new TwigFunction('render', [HttpKernelRuntime::class, 'renderFragment'], ['is_safe' => ['html']]), new TwigFunction('render_*', [HttpKernelRuntime::class, 'renderFragmentStrategy'], ['is_safe' => ['html']]), new TwigFunction('fragment_uri', [HttpKernelRuntime::class, 'generateFragmentUri']), new TwigFunction('controller', [self::class, 'controller']), ] |
/src/Symfony/Bridge/Twig/Extension/WebLinkExtension.php:36 | 1 | return [new TwigFunction('link', $this->link(...)), new TwigFunction('preload', $this->preload(...)), new TwigFunction('dns_prefetch', $this->dnsPrefetch(...)), new TwigFunction('preconnect', $this->preconnect(...)), new TwigFunction('prefetch', $this->prefetch(...)), new TwigFunction('prerender', $this->prerender(...)), ] |
/src/Symfony/Bridge/Twig/Extension/SecurityExtension.php:92 | 1 | return [new TwigFunction('is_granted', $this->isGranted(...)), new TwigFunction('impersonation_exit_url', $this->getImpersonateExitUrl(...)), new TwigFunction('impersonation_exit_path', $this->getImpersonateExitPath(...)), new TwigFunction('impersonation_url', $this->getImpersonateUrl(...)), new TwigFunction('impersonation_path', $this->getImpersonatePath(...)), ] |
/src/Symfony/Bridge/Twig/Extension/FormExtension.php:53 | 1 | return [new TwigFunction('form_widget', null, ['node_class' => SearchAndRenderBlockNode::class, 'is_safe' => ['html']]), new TwigFunction('form_errors', null, ['node_class' => SearchAndRenderBlockNode::class, 'is_safe' => ['html']]), new TwigFunction('form_label', null, ['node_class' => SearchAndRenderBlockNode::class, 'is_safe' => ['html']]), new TwigFunction('form_help', null, ['node_class' => SearchAndRenderBlockNode::class, 'is_safe' => ['html']]), new TwigFunction('form_row', null, ['node_class' => SearchAndRenderBlockNode::class, 'is_safe' => ['html']]), new TwigFunction('form_rest', null, ['node_class' => SearchAndRenderBlockNode::class, 'is_safe' => ['html']]), new TwigFunction('form', null, ['node_class' => RenderBlockNode::class, 'is_safe' => ['html']]), new TwigFunction('form_start', null, ['node_class' => RenderBlockNode::class, 'is_safe' => ['html']]), new TwigFunction('form_end', null, ['node_class' => RenderBlockNode::class, 'is_safe' => ['html']]), new TwigFunction('csrf_token', [FormRenderer::class, 'renderCsrfToken']), new TwigFunction('form_parent', 'Symfony\Bridge\Twig\Extension\twig_get_form_parent'), new TwigFunction('field_name', $this->getFieldName(...)), new TwigFunction('field_value', $this->getFieldValue(...)), new TwigFunction('field_label', $this->getFieldLabel(...)), new TwigFunction('field_help', $this->getFieldHelp(...)), new TwigFunction('field_errors', $this->getFieldErrors(...)), new TwigFunction('field_choices', $this->getFieldChoices(...)), ] |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap4LayoutTestCase.php:930 | 1 | $form = $this->factory->createNamed('name', ChoiceType::class, ['&a', '&c'], ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b', 'Choice&C' => '&c'], 'multiple' => true, 'expanded' => true, 'required' => true, 'choice_translation_domain' => false, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap4LayoutTestCase.php:856 | 1 | $form = $this->factory->createNamed('name', ChoiceType::class, ['&a'], ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b', 'Choice&C' => '&c'], 'choice_label' => function ($choice, $label, $value) { /**/ } , 'multiple' => true, 'expanded' => true, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap4LayoutTestCase.php:787 | 1 | $form = $this->factory->createNamed('name', ChoiceType::class, ['&a', '&c'], ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b', 'Choice&C' => '&c'], 'multiple' => true, 'expanded' => true, 'required' => true, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap4LayoutTestCase.php:715 | 1 | $form = $this->factory->createNamed('name', ChoiceType::class, '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'multiple' => false, 'expanded' => true, 'required' => false, 'choice_translation_domain' => false, 'placeholder' => 'Placeholder&Not&Translated', ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap4LayoutTestCase.php:675 | 1 | $form = $this->factory->createNamed('name', ChoiceType::class, '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'multiple' => false, 'expanded' => true, 'placeholder' => 'Test&Me', 'required' => false, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap4LayoutTestCase.php:643 | 1 | $form = $this->factory->createNamed('name', ChoiceType::class, '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'choice_attr' => ['Choice&B' => ['class' => 'foo&bar']], 'multiple' => false, 'expanded' => true, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap4LayoutTestCase.php:537 | 1 | $form = $this->factory->createNamed('name', ChoiceType::class, '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b', 'Choice&C' => '&c'], 'choice_label' => function ($choice, $label, $value) { /**/ } , 'multiple' => false, 'expanded' => true, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap4LayoutTestCase.php:394 | 1 | $form = $this->factory->createNamed('name', ChoiceType::class, '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'multiple' => false, 'expanded' => true, 'attr' => ['class' => 'bar&baz'], ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap4LayoutTestCase.php:371 | 2 | $form = $this->factory->createNamed('name', ChoiceType::class, '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'multiple' => false, 'expanded' => false, 'attr' => ['class' => 'bar&baz'], ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractDivLayoutTestCase.php:808 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', ['&a'], ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b', 'Choice&C' => '&c'], 'choice_label' => function ($choice, $label, $value) { /**/ } , 'multiple' => true, 'expanded' => true, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractDivLayoutTestCase.php:478 | 2 | $form = $this->factory->createNamedBuilder('name', 'Symfony\Component\Form\Extension\Core\Type\FormType')->add($this->factory->createNamedBuilder('child', 'Symfony\Component\Form\Extension\Core\Type\FormType')->add($this->factory->createNamedBuilder('grandchild', 'Symfony\Component\Form\Extension\Core\Type\TextType')))->getForm( ) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractDivLayoutTestCase.php:452 | 2 | $form = $this->factory->createNamedBuilder('name', 'Symfony\Component\Form\Extension\Core\Type\FormType')->add($this->factory->createNamedBuilder('child', 'Symfony\Component\Form\Extension\Core\Type\FormType', null, ['error_bubbling' => false])->add('grandChild', 'Symfony\Component\Form\Extension\Core\Type\FormType'))->getForm( ) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractDivLayoutTestCase.php:103 | 2 | $view = $this->factory->createNamedBuilder('name', 'Symfony\Component\Form\Extension\Core\Type\FormType')->add('field1', 'Symfony\Component\Form\Extension\Core\Type\TextType')->add('field2', 'Symfony\Component\Form\Extension\Core\Type\RepeatedType')->add('field3', 'Symfony\Component\Form\Extension\Core\Type\TextType')->add('field4', 'Symfony\Component\Form\Extension\Core\Type\TextType')->getForm( )->createView( ) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap5LayoutTestCase.php:882 | 1 | $form = $this->factory->createNamed('name', ChoiceType::class, ['&a'], ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'choice_attr' => ['Choice&B' => ['class' => 'foo&bar']], 'required' => true, 'multiple' => true, 'expanded' => false, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap5LayoutTestCase.php:827 | 1 | $form = $this->factory->createNamed('name', ChoiceType::class, '&a', ['choices' => ['Group&1' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'Group&2' => ['Choice&C' => '&c'], ], 'multiple' => false, 'expanded' => false, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap5LayoutTestCase.php:778 | 1 | $form = $this->factory->createNamed('name', ChoiceType::class, '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'required' => true, 'multiple' => false, 'expanded' => false, 'placeholder' => 'Test&Me', ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap5LayoutTestCase.php:688 | 1 | $form = $this->factory->createNamed('name', ChoiceType::class, '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'preferred_choices' => ['&a', '&b'], 'multiple' => false, 'expanded' => false, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap5LayoutTestCase.php:753 | 1 | $form = $this->factory->createNamed('name', ChoiceType::class, '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'multiple' => false, 'expanded' => false, 'required' => false, 'placeholder' => 'Select&Anything&Not&Me', ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap5LayoutTestCase.php:541 | 1 | $form = $this->factory->createNamed('name', ChoiceType::class, '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'choice_attr' => ['Choice&B' => ['class' => 'foo&bar']], 'multiple' => false, 'expanded' => false, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap5LayoutTestCase.php:589 | 1 | $form = $this->factory->createNamed('name', ChoiceType::class, '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'preferred_choices' => ['&b'], 'duplicate_preferred_choices' => false, 'multiple' => false, 'expanded' => false, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap5LayoutTestCase.php:358 | 2 | $form = $this->factory->createNamed('name', ChoiceType::class, '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'multiple' => false, 'expanded' => false, 'attr' => ['class' => 'bar&baz'], ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap5LayoutTestCase.php:515 | 1 | $form = $this->factory->createNamed('name', ChoiceType::class, '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'multiple' => false, 'expanded' => false, 'required' => false, 'translation_domain' => false, 'placeholder' => 'Placeholder&Not&Translated', ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTestCase.php:1507 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', ['&a', '&c'], ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b', 'Choice&C' => '&c'], 'choice_attr' => ['Choice&B' => ['class' => 'foo&bar']], 'multiple' => true, 'expanded' => true, 'required' => true, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTestCase.php:2791 | 2 | $form = $this->factory->createNamed('text', 'Symfony\Component\Form\Extension\Core\Type\TextType', 'value', ['required' => true, 'disabled' => true, 'attr' => ['readonly' => true, 'maxlength' => 10, 'pattern' => '\d+', 'class' => 'foobar', 'data-foo' => 'bar'], ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTestCase.php:1377 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', ['&a'], ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b', 'Choice&C' => '&c'], 'choice_label' => function ($choice, $label, $value) { /**/ } , 'multiple' => true, 'expanded' => true, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTestCase.php:1461 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', ['&a', '&c'], ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b', 'Choice&C' => '&c'], 'multiple' => true, 'expanded' => true, 'required' => true, 'choice_translation_domain' => false, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTestCase.php:1216 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'multiple' => false, 'expanded' => true, 'required' => false, 'choice_translation_domain' => false, 'placeholder' => 'Placeholder&Not&Translated', ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTestCase.php:1298 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', ['&a', '&c'], ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b', 'Choice&C' => '&c'], 'multiple' => true, 'expanded' => true, 'required' => true, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTestCase.php:1134 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'choice_attr' => ['Choice&B' => ['class' => 'foo&bar']], 'multiple' => false, 'expanded' => true, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTestCase.php:1170 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'multiple' => false, 'expanded' => true, 'placeholder' => 'Test&Me', 'required' => false, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTestCase.php:819 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', '&a', ['choices' => ['Group&1' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'Group&2' => ['Choice&C' => '&c'], ], 'multiple' => false, 'expanded' => false, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTestCase.php:874 | 2 | $form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', ['&a'], ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b'], 'choice_attr' => ['Choice&B' => ['class' => 'foo&bar']], 'required' => true, 'multiple' => true, 'expanded' => false, ]) |
/src/Symfony/Component/HttpKernel/DataCollector/RequestDataCollector.php:443 | 1 | return ['class' => \is_object($controller[0]) ? get_debug_type($controller[0]) : $controller[0], 'method' => $controller[1], 'file' => $r->getFileName( ), 'line' => $r->getStartLine( ), ] |
/src/Symfony/Component/HttpKernel/DataCollector/RequestDataCollector.php:169 | 1 | $this->data['identifier'] = $this->data['route'] ?: (\is_array($this->data['controller']) ? $this->data['controller']['class'] . '::' . $this->data['controller']['method'] . '()' : $this->data['controller']) |
/src/Symfony/Component/HttpKernel/DataCollector/ConfigDataCollector.php:43 | 1 | $this->data = ['token' => $response->headers->get('X-Debug-Token'), 'symfony_version' => Kernel::VERSION, 'symfony_minor_version' => sprintf('%s.%s', Kernel::MAJOR_VERSION, Kernel::MINOR_VERSION), 'symfony_lts' => 4 === Kernel::MINOR_VERSION, 'symfony_state' => $this->determineSymfonyState( ), 'symfony_eom' => $eom->format('F Y'), 'symfony_eol' => $eol->format('F Y'), 'env' => isset($this->kernel) ? $this->kernel->getEnvironment( ) : 'n/a', 'debug' => isset($this->kernel) ? $this->kernel->isDebug( ) : 'n/a', 'php_version' => \PHP_VERSION, 'php_architecture' => \PHP_INT_SIZE * 8, 'php_intl_locale' => class_exists(\Locale::class, false) && \Locale::getDefault( ) ? \Locale::getDefault( ) : 'n/a', 'php_timezone' => date_default_timezone_get( ), 'xdebug_enabled' => \extension_loaded('xdebug'), 'apcu_enabled' => \extension_loaded('apcu') && filter_var(\ini_get('apc.enabled'), \FILTER_VALIDATE_BOOL), 'zend_opcache_enabled' => \extension_loaded('Zend OPcache') && filter_var(\ini_get('opcache.enable'), \FILTER_VALIDATE_BOOL), 'bundles' => [ ], 'sapi_name' => \PHP_SAPI, ] |
/src/Symfony/Component/HttpKernel/DataCollector/LoggerDataCollector.php:91 | 1 | $logs[] = ['type' => $logType, 'errorCount' => $rawLog['errorCount'] ?? 1, 'timestamp' => $rawLogData['timestamp_rfc3339']->getValue( ), 'priority' => $rawLogData['priority']->getValue( ), 'priorityName' => $rawLogData['priorityName']->getValue( ), 'channel' => $rawLogData['channel']->getValue( ), 'message' => $rawLogData['message'], 'context' => $rawLogData['context'], ] |
/src/Symfony/Component/HttpKernel/Tests/DataCollector/LoggerDataCollectorTest.php:192 | 1 | yield 'logs with some deprecations' => [1, [['message' => 'foo3', 'context' => ['exception' => new \ErrorException('warning', 0, \E_USER_WARNING)], 'priority' => 100, 'priorityName' => 'DEBUG'], ['message' => 'foo', 'context' => ['exception' => new \ErrorException('deprecated', 0, \E_DEPRECATED)], 'priority' => 100, 'priorityName' => 'DEBUG'], ['message' => 'foo2', 'context' => ['exception' => new \ErrorException('deprecated', 0, \E_USER_DEPRECATED)], 'priority' => 100, 'priorityName' => 'DEBUG'], ], [['message' => 'foo3', 'context' => ['exception' => ['warning', \E_USER_WARNING]], 'priority' => 100, 'priorityName' => 'DEBUG'], ['message' => 'foo', 'context' => ['exception' => ['deprecated', \E_DEPRECATED]], 'priority' => 100, 'priorityName' => 'DEBUG', 'errorCount' => 1, 'scream' => false], ['message' => 'foo2', 'context' => ['exception' => ['deprecated', \E_USER_DEPRECATED]], 'priority' => 100, 'priorityName' => 'DEBUG', 'errorCount' => 1, 'scream' => false], ], 2, 0, [100 => ['count' => 3, 'name' => 'DEBUG']], ] |
/src/Symfony/Component/HttpKernel/ControllerMetadata/ArgumentMetadataFactory.php:34 | 1 | $arguments[] = new ArgumentMetadata($param->getName( ), $this->getType($param), $param->isVariadic( ), $param->isDefaultValueAvailable( ), $param->isDefaultValueAvailable( ) ? $param->getDefaultValue( ) : null, $param->allowsNull( ), $attributes) |
/src/Symfony/Component/HttpKernel/Tests/DataCollector/RequestDataCollectorTest.php:105 | 1 | return [['"Regular" callable', [$controller, 'regularCallable'], ['class' => DummyController::class, 'method' => 'regularCallable', 'file' => $r1->getFileName( ), 'line' => $r1->getStartLine( ), ], ], ['Closure', fn ( ) => 'foo', ['class' => \PHP_VERSION_ID >= 80400 ? sprintf('{closure:%s():%d}', __METHOD__, __LINE__ - 2) : __NAMESPACE__ . '\{closure}', 'method' => null, 'file' => __FILE__, 'line' => __LINE__ - 5, ], ], ['First-class callable closure', $controller->regularCallable(...), ['class' => DummyController::class, 'method' => 'regularCallable', 'file' => $r1->getFileName( ), 'line' => $r1->getStartLine( ), ], ], ['Static callback as string', DummyController::class . '::staticControllerMethod', ['class' => DummyController::class, 'method' => 'staticControllerMethod', 'file' => $r2->getFileName( ), 'line' => $r2->getStartLine( ), ], ], ['Static callable with instance', [$controller, 'staticControllerMethod'], ['class' => DummyController::class, 'method' => 'staticControllerMethod', 'file' => $r2->getFileName( ), 'line' => $r2->getStartLine( ), ], ], ['Static callable with class name', [DummyController::class, 'staticControllerMethod'], ['class' => DummyController::class, 'method' => 'staticControllerMethod', 'file' => $r2->getFileName( ), 'line' => $r2->getStartLine( ), ], ], ['Callable with instance depending on __call()', [$controller, 'magicMethod'], ['class' => DummyController::class, 'method' => 'magicMethod', 'file' => 'n/a', 'line' => 'n/a', ], ], ['Callable with class name depending on __callStatic()', [DummyController::class, 'magicMethod'], ['class' => DummyController::class, 'method' => 'magicMethod', 'file' => 'n/a', 'line' => 'n/a', ], ], ['Invokable controller', $controller, ['class' => DummyController::class, 'method' => null, 'file' => $r3->getFileName( ), 'line' => $r3->getStartLine( ), ], ], ] |
/src/Symfony/Component/HttpKernel/Tests/DataCollector/LoggerDataCollectorTest.php:209 | 1 | yield 'logs with some silent errors' => [1, [['message' => 'foo3', 'context' => ['exception' => new \ErrorException('warning', 0, \E_USER_WARNING)], 'priority' => 100, 'priorityName' => 'DEBUG'], ['message' => 'foo3', 'context' => ['exception' => new SilencedErrorContext(\E_USER_WARNING, __FILE__, __LINE__)], 'priority' => 100, 'priorityName' => 'DEBUG'], ['message' => '0', 'context' => ['exception' => new SilencedErrorContext(\E_USER_WARNING, __FILE__, __LINE__)], 'priority' => 100, 'priorityName' => 'DEBUG'], ], [['message' => 'foo3', 'context' => ['exception' => ['warning', \E_USER_WARNING]], 'priority' => 100, 'priorityName' => 'DEBUG'], ['message' => 'foo3', 'context' => ['exception' => [\E_USER_WARNING]], 'priority' => 100, 'priorityName' => 'DEBUG', 'errorCount' => 1, 'scream' => true], ['message' => '0', 'context' => ['exception' => [\E_USER_WARNING]], 'priority' => 100, 'priorityName' => 'DEBUG', 'errorCount' => 1, 'scream' => true], ], 0, 2, ] |
/src/Symfony/Contracts/Tests/Service/ServiceSubscriberTraitTest.php:28 | 1 | $expected = [TestService::class . '::aService' => Service2::class, TestService::class . '::nullableService' => '?' . Service2::class, new SubscribedService(TestService::class . '::withAttribute', Service2::class, true, new Required( )), ] |
/src/Symfony/Contracts/Translation/Test/TranslatorTest.php:151 | 1 | return [['foo', 3, '{1,2, 3 ,4}'], ['bar', 10, '{1,2, 3 ,4}'], ['bar', 3, '[1,2]'], ['foo', 1, '[1,2]'], ['foo', 2, '[1,2]'], ['bar', 1, ']1,2['], ['bar', 2, ']1,2['], ['foo', log(0), '[-Inf,2['], ['foo', -log(0), '[-2,+Inf]'], ] |
/src/Symfony/Component/HttpKernel/Kernel.php:551 | 1 | return ['kernel.project_dir' => realpath($this->getProjectDir( )) ?: $this->getProjectDir( ), 'kernel.environment' => $this->environment, 'kernel.runtime_environment' => '%env(default:kernel.environment:APP_RUNTIME_ENV)%', 'kernel.runtime_mode' => '%env(query_string:default:container.runtime_mode:APP_RUNTIME_MODE)%', 'kernel.runtime_mode.web' => '%env(bool:default::key:web:default:kernel.runtime_mode:)%', 'kernel.runtime_mode.cli' => '%env(not:default:kernel.runtime_mode.web:)%', 'kernel.runtime_mode.worker' => '%env(bool:default::key:worker:default:kernel.runtime_mode:)%', 'kernel.debug' => $this->debug, 'kernel.build_dir' => realpath($buildDir = $this->warmupDir ?: $this->getBuildDir( )) ?: $buildDir, 'kernel.cache_dir' => realpath($cacheDir = ($this->getCacheDir( ) === $this->getBuildDir( ) ? ($this->warmupDir ?: $this->getCacheDir( )) : $this->getCacheDir( ))) ?: $cacheDir, 'kernel.logs_dir' => realpath($this->getLogDir( )) ?: $this->getLogDir( ), 'kernel.bundles' => $bundles, 'kernel.bundles_metadata' => $bundlesMetadata, 'kernel.charset' => $this->getCharset( ), 'kernel.container_class' => $this->getContainerClass( ), ] |
/src/Symfony/Component/HttpKernel/HttpClientKernel.php:53 | 1 | $response = $this->client->request($request->getMethod( ), $request->getUri( ), ['headers' => $headers, 'body' => $body, ] + $request->attributes->get('http_client_options', [ ])) |
/src/Symfony/Component/HttpKernel/Kernel.php:698 | 1 | $resolver = new LoaderResolver([new XmlFileLoader($container, $locator, $env), new YamlFileLoader($container, $locator, $env), new IniFileLoader($container, $locator, $env), new PhpFileLoader($container, $locator, $env, class_exists(ConfigBuilderGenerator::class) ? new ConfigBuilderGenerator($this->getBuildDir( )) : null), new GlobFileLoader($container, $locator, $env), new DirectoryLoader($container, $locator, $env), new ClosureLoader($container, $env), ]) |
/src/Symfony/Component/HttpKernel/Kernel.php:663 | 1 | $content = $dumper->dump(['class' => $class, 'base_class' => $baseClass, 'file' => $cache->getPath( ), 'as_files' => true, 'debug' => $this->debug, 'inline_factories' => $buildParameters['.container.dumper.inline_factories'] ?? false, 'inline_class_loader' => $buildParameters['.container.dumper.inline_class_loader'] ?? $this->debug, 'build_time' => $container->hasParameter('kernel.container_build_time') ? $container->getParameter('kernel.container_build_time') : time( ), 'preload_classes' => array_map('get_class', $this->bundles), ]) |
/src/Symfony/Component/HttpKernel/DataCollector/RequestDataCollector.php:91 | 1 | $this->data = ['method' => $request->getMethod( ), 'format' => $request->getRequestFormat( ), 'content_type' => $response->headers->get('Content-Type', 'text/html'), 'status_text' => Response::$statusTexts[$statusCode] ?? '', 'status_code' => $statusCode, 'request_query' => $request->query->all( ), 'request_request' => $request->request->all( ), 'request_files' => $request->files->all( ), 'request_headers' => $request->headers->all( ), 'request_server' => $request->server->all( ), 'request_cookies' => $request->cookies->all( ), 'request_attributes' => $attributes, 'route' => $route, 'response_headers' => $response->headers->all( ), 'response_cookies' => $responseCookies, 'session_metadata' => $sessionMetadata, 'session_attributes' => $sessionAttributes, 'session_usages' => array_values($this->sessionUsages), 'stateless_check' => $this->requestStack?->getMainRequest( )?->attributes->get('_stateless') ?? false, 'flashes' => $flashes, 'path_info' => $request->getPathInfo( ), 'controller' => 'n/a', 'locale' => $request->getLocale( ), 'dotenv_vars' => $dotenvVars, ] |
/src/Symfony/Component/HttpKernel/HttpKernelBrowser.php:124 | 1 | $httpRequest = Request::create($request->getUri( ), $request->getMethod( ), $request->getParameters( ), $request->getCookies( ), $request->getFiles( ), $server = $request->getServer( ), $request->getContent( )) |
/src/Symfony/Bridge/Twig/Tests/NodeVisitor/TwigNodeProvider.php:28 | 1 | return new ModuleNode(new ConstantExpression($content, 0), null, new ArrayExpression([ ], 0), new ArrayExpression([ ], 0), new ArrayExpression([ ], 0), null, new Source('', '')) |
/src/Symfony/Bridge/Twig/Tests/Translation/TwigExtractorTest.php:146 | 1 | return [[$directory . 'with_translations.html.twig'], [[$directory . 'with_translations.html.twig']], [[new \SplFileInfo($directory . 'with_translations.html.twig')]], [new \ArrayObject([$directory . 'with_translations.html.twig'])], [new \ArrayObject([new \SplFileInfo($directory . 'with_translations.html.twig')])], ] |
/src/Symfony/Bridge/Twig/Tests/Mime/NotificationEmailTest.php:21 | 1 | $email = (new NotificationEmail( ))->markdown('Foo')->exception(new \Exception( ))->importance(NotificationEmail::IMPORTANCE_HIGH)->action('Bar', 'http://example.com/')->context(['a' => 'b']) |
/src/Symfony/Bridge/Twig/Tests/Mime/NotificationEmailTest.php:44 | 1 | $email = unserialize(serialize((new NotificationEmail( ))->content('Foo', true)->exception(new \Exception( ))->importance(NotificationEmail::IMPORTANCE_HIGH)->action('Bar', 'http://example.com/')->context(['a' => 'b'])->theme('example'))) |
/src/Symfony/Bridge/Twig/Tests/TokenParser/FormThemeTokenParserTest.php:45 | 1 | return [['{% form_theme form "tpl1" %}', new FormThemeNode(new NameExpression('form', 1), new ArrayExpression([new ConstantExpression(0, 1), new ConstantExpression('tpl1', 1), ], 1), 1, 'form_theme'), ], ['{% form_theme form "tpl1" "tpl2" %}', new FormThemeNode(new NameExpression('form', 1), new ArrayExpression([new ConstantExpression(0, 1), new ConstantExpression('tpl1', 1), new ConstantExpression(1, 1), new ConstantExpression('tpl2', 1), ], 1), 1, 'form_theme'), ], ['{% form_theme form with "tpl1" %}', new FormThemeNode(new NameExpression('form', 1), new ConstantExpression('tpl1', 1), 1, 'form_theme'), ], ['{% form_theme form with ["tpl1"] %}', new FormThemeNode(new NameExpression('form', 1), new ArrayExpression([new ConstantExpression(0, 1), new ConstantExpression('tpl1', 1), ], 1), 1, 'form_theme'), ], ['{% form_theme form with ["tpl1", "tpl2"] %}', new FormThemeNode(new NameExpression('form', 1), new ArrayExpression([new ConstantExpression(0, 1), new ConstantExpression('tpl1', 1), new ConstantExpression(1, 1), new ConstantExpression('tpl2', 1), ], 1), 1, 'form_theme'), ], ['{% form_theme form with ["tpl1", "tpl2"] only %}', new FormThemeNode(new NameExpression('form', 1), new ArrayExpression([new ConstantExpression(0, 1), new ConstantExpression('tpl1', 1), new ConstantExpression(1, 1), new ConstantExpression('tpl2', 1), ], 1), 1, 'form_theme', true), ], ] |
/src/Symfony/Bridge/Twig/Tests/Node/SearchAndRenderBlockNodeTest.php:182 | 1 | $arguments = new Node([new NameExpression('form', 0), new ConstantExpression('value in argument', 0), new ArrayExpression([new ConstantExpression('foo', 0), new ConstantExpression('bar', 0), new ConstantExpression('label', 0), new ConstantExpression('value in attributes', 0), ], 0), ]) |
/src/Symfony/Bridge/Twig/Tests/Node/SearchAndRenderBlockNodeTest.php:240 | 1 | $arguments = new Node([new NameExpression('form', 0), new ConditionalExpression(new ConstantExpression(true, 0), new ConstantExpression(null, 0), new ConstantExpression(null, 0), 0), new ArrayExpression([new ConstantExpression('foo', 0), new ConstantExpression('bar', 0), new ConstantExpression('label', 0), new ConstantExpression('value in attributes', 0), ], 0), ]) |
/src/Symfony/Bridge/Twig/Command/DebugCommand.php:561 | 1 | return strspn($file, '/\\', 0, 1) || (\strlen($file) > 3 && ctype_alpha($file[0]) && ':' === $file[1] && strspn($file, '/\\', 2, 1)) || null !== parse_url($file, \PHP_URL_SCHEME) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap4LayoutTestCase.php:970 | 1 | $form = $this->factory->createNamed('name', ChoiceType::class, ['&a', '&c'], ['choices' => ['Choice&A' => '&a', 'Choice&B' => '&b', 'Choice&C' => '&c'], 'choice_attr' => ['Choice&B' => ['class' => 'foo&bar']], 'multiple' => true, 'expanded' => true, 'required' => true, ]) |
/src/Symfony/Bridge/Twig/Tests/Extension/FormExtensionFieldHelpersTest.php:46 | 1 | $form = $this->factory->createNamedBuilder('register', FormType::class, $data)->add('username', TextType::class, ['label' => 'base.username', 'label_translation_parameters' => ['%label_brand%' => 'Symfony'], 'help' => 'base.username_help', 'help_translation_parameters' => ['%help_brand%' => 'Symfony'], 'translation_domain' => 'forms', ])->add('choice_flat', ChoiceType::class, ['choices' => ['base.yes' => 'yes', 'base.no' => 'no', ], 'choice_translation_domain' => 'forms', ])->add('choice_grouped', ChoiceType::class, ['choices' => ['base.europe' => ['base.fr' => 'fr', 'base.de' => 'de', ], 'base.asia' => ['base.cn' => 'cn', 'base.jp' => 'jp', ], ], 'choice_translation_domain' => 'forms', 'label_format' => 'label format for field "%name%" with id "%id%"', ])->add('choice_multiple', ChoiceType::class, ['choices' => ['base.sugar' => 'sugar', 'base.salt' => 'salt', ], 'multiple' => true, 'expanded' => true, 'label' => false, ])->getForm( ) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractTableLayoutTestCase.php:150 | 2 | $view = $this->factory->createNamedBuilder('name', 'Symfony\Component\Form\Extension\Core\Type\FormType')->add('field1', 'Symfony\Component\Form\Extension\Core\Type\TextType')->add('field2', 'Symfony\Component\Form\Extension\Core\Type\RepeatedType')->add('field3', 'Symfony\Component\Form\Extension\Core\Type\TextType')->add('field4', 'Symfony\Component\Form\Extension\Core\Type\TextType')->getForm( )->createView( ) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractTableLayoutTestCase.php:229 | 1 | $view = $this->factory->createNamedBuilder('name', 'Symfony\Component\Form\Extension\Core\Type\FormType')->setMethod('PUT')->setAction('http://example.com')->add('firstName', 'Symfony\Component\Form\Extension\Core\Type\TextType')->add('lastName', 'Symfony\Component\Form\Extension\Core\Type\TextType')->getForm( )->createView( ) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractTableLayoutTestCase.php:318 | 2 | $form = $this->factory->createNamedBuilder('name', 'Symfony\Component\Form\Extension\Core\Type\FormType')->add($this->factory->createNamedBuilder('child', 'Symfony\Component\Form\Extension\Core\Type\FormType', null, ['error_bubbling' => false])->add('grandChild', 'Symfony\Component\Form\Extension\Core\Type\FormType'))->getForm( ) |
/src/Symfony/Bridge/Twig/Tests/Extension/AbstractTableLayoutTestCase.php:344 | 2 | $form = $this->factory->createNamedBuilder('name', 'Symfony\Component\Form\Extension\Core\Type\FormType')->add($this->factory->createNamedBuilder('child', 'Symfony\Component\Form\Extension\Core\Type\FormType')->add($this->factory->createNamedBuilder('grandchild', 'Symfony\Component\Form\Extension\Core\Type\TextType')))->getForm( ) |
/src/Symfony/Bridge/Twig/Tests/NodeVisitor/TranslationDefaultDomainNodeVisitorTest.php:81 | 1 | return [[TwigNodeProvider::getTransFilter(self::$message)], [TwigNodeProvider::getTransTag(self::$message)], [TwigNodeProvider::getTransFilter(self::$message, null, ['arguments' => new ArrayExpression([ ], 0), ])], ] |
/src/Symfony/Bridge/Twig/Tests/NodeVisitor/TranslationNodeVisitorTest.php:59 | 1 | return [[TwigNodeProvider::getTransFilter($message), [[$message, null]]], [TwigNodeProvider::getTransTag($message), [[$message, null]]], [TwigNodeProvider::getTransFilter($message, $domain), [[$message, $domain]]], [TwigNodeProvider::getTransTag($message, $domain), [[$message, $domain]]], ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:281 | 1 | yield 'unsupported type variadic' => [Request::create('/', 'GET', ['standardClass' => 'test']), new ArgumentMetadata('standardClass', \stdClass::class, true, false, false, attributes : [new MapQueryParameter( )]), [ ], \LogicException::class, '#[MapQueryParameter] cannot be used on controller argument "...$standardClass" of type "stdClass"; one of array, string, int, float, bool or \BackedEnum should be used.', ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:274 | 1 | yield 'unsupported type' => [Request::create('/', 'GET', ['standardClass' => 'test']), new ArgumentMetadata('standardClass', \stdClass::class, false, false, false, attributes : [new MapQueryParameter( )]), [ ], \LogicException::class, '#[MapQueryParameter] cannot be used on controller argument "$standardClass" of type "stdClass"; one of array, string, int, float, bool or \BackedEnum should be used.', ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:245 | 1 | yield 'parameter found and backing type variadic and at least one value not valid backing value that falls back to null on failure' => [Request::create('/', 'GET', ['suits' => ['B', 'D']]), new ArgumentMetadata('suits', Suit::class, false, false, false, attributes : [new MapQueryParameter(flags : \FILTER_NULL_ON_FAILURE)]), [null], null, ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:238 | 1 | yield 'parameter found and backing type variadic and at least one value not valid backing value' => [Request::create('/', 'GET', ['suits' => ['B', 'D']]), new ArgumentMetadata('suits', Suit::class, false, false, false, attributes : [new MapQueryParameter( )]), [ ], NotFoundHttpException::class, 'Invalid query parameter "suits".', ] |
/src/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php:1467 | 2 | $responses = [['status' => 200, 'body' => '<esi:include src="/hey" />', 'headers' => ['Surrogate-Control' => 'content="ESI/1.0"', 'ETag' => 'hey', 'Last-Modified' => $time->format(\DATE_RFC2822), ], ], ['status' => 200, 'body' => 'Hey!', 'headers' => [ ], ], ] |
/src/Symfony/Component/HttpKernel/Tests/Fragment/RoutableFragmentRendererTest.php:70 | 1 | return [[new ControllerReference('controller', ['foo' => new Foo( ), 'bar' => 'bar'], [ ])], [new ControllerReference('controller', ['foo' => ['foo' => 'foo'], 'bar' => ['bar' => new Foo( )]], [ ])], ] |
/src/Symfony/Component/HttpKernel/Tests/Fragment/RoutableFragmentRendererTest.php:39 | 1 | return [['/_fragment?_path=_format%3Dhtml%26_locale%3Den%26_controller%3Dcontroller', new ControllerReference('controller', [ ], [ ])], ['/_fragment?_path=_format%3Dxml%26_locale%3Den%26_controller%3Dcontroller', new ControllerReference('controller', ['_format' => 'xml'], [ ])], ['/_fragment?_path=foo%3Dfoo%26_format%3Djson%26_locale%3Den%26_controller%3Dcontroller', new ControllerReference('controller', ['foo' => 'foo', '_format' => 'json'], [ ])], ['/_fragment?bar=bar&_path=foo%3Dfoo%26_format%3Dhtml%26_locale%3Den%26_controller%3Dcontroller', new ControllerReference('controller', ['foo' => 'foo'], ['bar' => 'bar'])], ['/_fragment?foo=foo&_path=_format%3Dhtml%26_locale%3Den%26_controller%3Dcontroller', new ControllerReference('controller', [ ], ['foo' => 'foo'])], ['/_fragment?_path=foo%255B0%255D%3Dfoo%26foo%255B1%255D%3Dbar%26_format%3Dhtml%26_locale%3Den%26_controller%3Dcontroller', new ControllerReference('controller', ['foo' => ['foo', 'bar']], [ ])], ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/DateTimeValueResolverTest.php:232 | 1 | return ['invalid date' => [new ArgumentMetadata('dummy', \DateTimeImmutable::class, false, false, null), self::requestWithAttributes(['dummy' => 'Invalid DateTime Format']), ], 'invalid format' => [new ArgumentMetadata('dummy', \DateTimeImmutable::class, false, false, null, false, [new MapDateTime(format : 'd.m.Y')]), self::requestWithAttributes(['dummy' => '2012-07-21']), ], 'invalid ymd format' => [new ArgumentMetadata('dummy', \DateTimeImmutable::class, false, false, null, false, [new MapDateTime(format : 'Y-m-d')]), self::requestWithAttributes(['dummy' => '2012-21-07']), ], ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:199 | 1 | yield 'parameter found and backing value not int nor string' => [Request::create('/', 'GET', ['suit' => 1]), new ArgumentMetadata('suit', Suit::class, false, false, false, attributes : [new MapQueryParameter(filter : \FILTER_VALIDATE_BOOL)]), [ ], NotFoundHttpException::class, 'Invalid query parameter "suit".', ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:193 | 1 | yield 'parameter found and backing value variadic' => [Request::create('/', 'GET', ['suits' => ['H', 'D']]), new ArgumentMetadata('suits', Suit::class, true, false, false, attributes : [new MapQueryParameter( )]), [Suit::Hearts, Suit::Diamonds], null, ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:187 | 1 | yield 'parameter found and backing value' => [Request::create('/', 'GET', ['suit' => 'H']), new ArgumentMetadata('suit', Suit::class, false, false, false, attributes : [new MapQueryParameter( )]), [Suit::Hearts], null, ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:179 | 1 | yield 'parameter found and boolean invalid' => [Request::create('/', 'GET', ['isVerified' => 'whatever']), new ArgumentMetadata('isVerified', 'bool', false, false, false, attributes : [new MapQueryParameter( )]), [ ], NotFoundHttpException::class, 'Invalid query parameter "isVerified".', ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:232 | 1 | yield 'parameter found and backing type variadic and at least one backing value not int nor string that fallbacks to null on failure' => [Request::create('/', 'GET', ['suits' => [1, 'D']]), new ArgumentMetadata('suits', Suit::class, false, false, false, attributes : [new MapQueryParameter(flags : \FILTER_NULL_ON_FAILURE)]), [null], null, ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:225 | 1 | yield 'parameter found and backing type variadic and at least one backing value not int nor string' => [Request::create('/', 'GET', ['suits' => [1, 'D']]), new ArgumentMetadata('suits', Suit::class, false, false, false, attributes : [new MapQueryParameter(filter : \FILTER_VALIDATE_BOOL)]), [ ], NotFoundHttpException::class, 'Invalid query parameter "suits".', ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:212 | 1 | yield 'parameter found and value not valid backing value' => [Request::create('/', 'GET', ['suit' => 'B']), new ArgumentMetadata('suit', Suit::class, false, false, false, attributes : [new MapQueryParameter( )]), [ ], NotFoundHttpException::class, 'Invalid query parameter "suit".', ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:206 | 1 | yield 'parameter found and backing value not int nor string that fallbacks to null on failure' => [Request::create('/', 'GET', ['suit' => 1]), new ArgumentMetadata('suit', Suit::class, false, false, false, attributes : [new MapQueryParameter(filter : \FILTER_VALIDATE_BOOL, flags : \FILTER_NULL_ON_FAILURE)]), [null], null, ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:106 | 1 | yield 'parameter found and string variadic with regexp filter that matches' => [Request::create('/', 'GET', ['firstName' => ['John', 'John']]), new ArgumentMetadata('firstName', 'string', true, false, false, attributes : [new MapQueryParameter(filter : \FILTER_VALIDATE_REGEXP, flags : \FILTER_NULL_ON_FAILURE, options : ['regexp' => '/John/'])]), ['John', 'John'], null, ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:112 | 1 | yield 'parameter found and string variadic with regexp filter that falls back to null on failure' => [Request::create('/', 'GET', ['firstName' => ['John', 'Fabien']]), new ArgumentMetadata('firstName', 'string', true, false, false, attributes : [new MapQueryParameter(filter : \FILTER_VALIDATE_REGEXP, flags : \FILTER_NULL_ON_FAILURE, options : ['regexp' => '/John/'])]), ['John'], null, ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:93 | 1 | yield 'parameter found and string with regexp filter that falls back to null on failure' => [Request::create('/', 'GET', ['firstName' => 'Fabien']), new ArgumentMetadata('firstName', 'string', false, false, false, attributes : [new MapQueryParameter(filter : \FILTER_VALIDATE_REGEXP, flags : \FILTER_NULL_ON_FAILURE, options : ['regexp' => '/John/'])]), [null], null, ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:99 | 1 | yield 'parameter found and string with regexp filter that does not match' => [Request::create('/', 'GET', ['firstName' => 'Fabien']), new ArgumentMetadata('firstName', 'string', false, false, false, attributes : [new MapQueryParameter(filter : \FILTER_VALIDATE_REGEXP, options : ['regexp' => '/John/'])]), [ ], NotFoundHttpException::class, 'Invalid query parameter "firstName".', ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:143 | 1 | yield 'parameter found and float variadic' => [Request::create('/', 'GET', ['price' => [10.99, 5.99]]), new ArgumentMetadata('price', 'float', true, false, false, attributes : [new MapQueryParameter( )]), [10.99, 5.99], null, ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:155 | 1 | yield 'parameter found and boolean yes variadic' => [Request::create('/', 'GET', ['isVerified' => ['yes', 'yes']]), new ArgumentMetadata('isVerified', 'bool', true, false, false, attributes : [new MapQueryParameter( )]), [true, true], null, ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:118 | 1 | yield 'parameter found and string variadic with regexp filter that does not match' => [Request::create('/', 'GET', ['firstName' => ['Fabien']]), new ArgumentMetadata('firstName', 'string', true, false, false, attributes : [new MapQueryParameter(filter : \FILTER_VALIDATE_REGEXP, options : ['regexp' => '/John/'])]), [ ], NotFoundHttpException::class, 'Invalid query parameter "firstName".', ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:131 | 1 | yield 'parameter found and integer variadic' => [Request::create('/', 'GET', ['age' => [123, 222]]), new ArgumentMetadata('age', 'int', true, false, false, attributes : [new MapQueryParameter( )]), [123, 222], null, ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/UidValueResolverTest.php:63 | 1 | return [[$uuidV1 = new UuidV1( ), (string) $uuidV1], [$uuidV1, $uuidV1->toBase58( )], [$uuidV1, $uuidV1->toBase32( )], [$ulid = Ulid::fromBase32('01FQC6Y03WDZ73DQY9RXQMPHB1'), (string) $ulid], [$ulid, $ulid->toBase58( )], [$ulid, $ulid->toRfc4122( )], [$customUid = new TestCustomUid( ), (string) $customUid], [$customUid, $customUid->toBase58( )], [$customUid, $customUid->toBase32( )], ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:56 | 1 | yield 'parameter found and array' => [Request::create('/', 'GET', ['ids' => ['1', '2']]), new ArgumentMetadata('ids', 'array', false, false, false, attributes : [new MapQueryParameter( )]), [['1', '2']], null, ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ControllerResolverTest.php:172 | 1 | return [['foo', \Error::class, 'Class "foo" not found'], ['oof::bar', \Error::class, 'Class "oof" not found'], [['oof', 'bar'], \Error::class, 'Class "oof" not found'], ['Symfony\Component\HttpKernel\Tests\Controller\ControllerTest::staticsAction', \InvalidArgumentException::class, 'The controller for URI "/" is not callable: Expected method "staticsAction" on class "Symfony\Component\HttpKernel\Tests\Controller\ControllerTest", did you mean "staticAction"?'], ['Symfony\Component\HttpKernel\Tests\Controller\ControllerTest::privateAction', \InvalidArgumentException::class, 'The controller for URI "/" is not callable: Method "privateAction" on class "Symfony\Component\HttpKernel\Tests\Controller\ControllerTest" should be public and non-abstract'], ['Symfony\Component\HttpKernel\Tests\Controller\ControllerTest::protectedAction', \InvalidArgumentException::class, 'The controller for URI "/" is not callable: Method "protectedAction" on class "Symfony\Component\HttpKernel\Tests\Controller\ControllerTest" should be public and non-abstract'], ['Symfony\Component\HttpKernel\Tests\Controller\ControllerTest::undefinedAction', \InvalidArgumentException::class, 'The controller for URI "/" is not callable: Expected method "undefinedAction" on class "Symfony\Component\HttpKernel\Tests\Controller\ControllerTest". Available methods: "publicAction", "staticAction"'], ['Symfony\Component\HttpKernel\Tests\Controller\ControllerTest', \InvalidArgumentException::class, 'The controller for URI "/" is not callable: Controller class "Symfony\Component\HttpKernel\Tests\Controller\ControllerTest" cannot be called without a method name. You need to implement "__invoke" or use one of the available methods: "publicAction", "staticAction".'], [[$controller, 'staticsAction'], \InvalidArgumentException::class, 'The controller for URI "/" is not callable: Expected method "staticsAction" on class "Symfony\Component\HttpKernel\Tests\Controller\ControllerTest", did you mean "staticAction"?'], [[$controller, 'privateAction'], \InvalidArgumentException::class, 'The controller for URI "/" is not callable: Method "privateAction" on class "Symfony\Component\HttpKernel\Tests\Controller\ControllerTest" should be public and non-abstract'], [[$controller, 'protectedAction'], \InvalidArgumentException::class, 'The controller for URI "/" is not callable: Method "protectedAction" on class "Symfony\Component\HttpKernel\Tests\Controller\ControllerTest" should be public and non-abstract'], [[$controller, 'undefinedAction'], \InvalidArgumentException::class, 'The controller for URI "/" is not callable: Expected method "undefinedAction" on class "Symfony\Component\HttpKernel\Tests\Controller\ControllerTest". Available methods: "publicAction", "staticAction"'], [$controller, \InvalidArgumentException::class, 'The controller for URI "/" is not callable: Controller class "Symfony\Component\HttpKernel\Tests\Controller\ControllerTest" cannot be called without a method name. You need to implement "__invoke" or use one of the available methods: "publicAction", "staticAction".'], [['a' => 'foo', 'b' => 'bar'], \InvalidArgumentException::class, 'The controller for URI "/" is not callable: Invalid array callable, expected [controller, method].'], ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/UidValueResolverTest.php:37 | 1 | return ['Variadic argument' => [false, new Request([ ], [ ], ['foo' => (string) $uuidV4 = new UuidV4( )]), new ArgumentMetadata('foo', UuidV4::class, true, false, null)], 'No attribute for argument' => [false, new Request([ ], [ ], [ ]), new ArgumentMetadata('foo', UuidV4::class, false, false, null)], 'Attribute is not a string' => [false, new Request([ ], [ ], ['foo' => ['bar']]), new ArgumentMetadata('foo', UuidV4::class, false, false, null)], 'Argument has no type' => [false, new Request([ ], [ ], ['foo' => (string) $uuidV4]), new ArgumentMetadata('foo', null, false, false, null)], 'Argument type is not a class' => [false, new Request([ ], [ ], ['foo' => (string) $uuidV4]), new ArgumentMetadata('foo', 'string', false, false, null)], 'Argument type is not a subclass of AbstractUid' => [false, new Request([ ], [ ], ['foo' => (string) $uuidV4]), new ArgumentMetadata('foo', UlidFactory::class, false, false, null)], 'AbstractUid is not supported' => [false, new Request([ ], [ ], ['foo' => (string) $uuidV4]), new ArgumentMetadata('foo', AbstractUid::class, false, false, null)], 'Known subclass' => [true, new Request([ ], [ ], ['foo' => (string) $uuidV4]), new ArgumentMetadata('foo', UuidV4::class, false, false, null)], 'Format does not matter' => [true, new Request([ ], [ ], ['foo' => (string) $uuidV4]), new ArgumentMetadata('foo', Ulid::class, false, false, null)], ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:81 | 1 | yield 'parameter found and string variadic' => [Request::create('/', 'GET', ['ids' => ['1', '2']]), new ArgumentMetadata('ids', 'string', true, false, false, attributes : [new MapQueryParameter( )]), ['1', '2'], null, ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:87 | 1 | yield 'parameter found and string with regexp filter that matches' => [Request::create('/', 'GET', ['firstName' => 'John']), new ArgumentMetadata('firstName', 'string', false, false, false, attributes : [new MapQueryParameter(filter : \FILTER_VALIDATE_REGEXP, flags : \FILTER_NULL_ON_FAILURE, options : ['regexp' => '/John/'])]), ['John'], null, ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:62 | 1 | yield 'parameter found and array variadic' => [Request::create('/', 'GET', ['ids' => [['1', '2'], ['2']]]), new ArgumentMetadata('ids', 'array', true, false, false, attributes : [new MapQueryParameter( )]), [['1', '2'], ['2']], null, ] |
/src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/QueryParameterValueResolverTest.php:68 | 1 | yield 'parameter found and array variadic with parameter not array failure' => [Request::create('/', 'GET', ['ids' => [['1', '2'], 1]]), new ArgumentMetadata('ids', 'array', true, false, false, attributes : [new MapQueryParameter( )]), [ ], NotFoundHttpException::class, 'Invalid query parameter "ids".', ] |
/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php:1319 | 5 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE)->add('child', static::TESTED_TYPE, ['em' => 'default', 'class' => self::SINGLE_IDENT_CLASS, ])->getForm( )->createView( ) |
/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php:1361 | 1 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE, null, ['translation_domain' => 'domain', ])->add('child', static::TESTED_TYPE, ['em' => 'default', 'class' => self::SINGLE_IDENT_CLASS, ])->getForm( )->createView( ) |
/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php:1377 | 1 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE, null, ['translation_domain' => 'parent_domain', ])->add('child', static::TESTED_TYPE, ['em' => 'default', 'class' => self::SINGLE_IDENT_CLASS, 'translation_domain' => 'domain', ])->getForm( )->createView( ) |
/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php:1394 | 5 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE)->add('child', static::TESTED_TYPE, ['em' => 'default', 'class' => self::SINGLE_IDENT_CLASS, ])->getForm( )->createView( ) |
/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php:1444 | 1 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE, null, ['label_translation_parameters' => ['%param%' => 'value'], ])->add('child', static::TESTED_TYPE, ['em' => 'default', 'class' => self::SINGLE_IDENT_CLASS, ])->getForm( )->createView( ) |
/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php:1460 | 1 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE, null, ['help_translation_parameters' => ['%param%' => 'value'], ])->add('child', static::TESTED_TYPE, ['em' => 'default', 'class' => self::SINGLE_IDENT_CLASS, ])->getForm( )->createView( ) |
/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php:1476 | 1 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE, null, ['attr_translation_parameters' => ['%param%' => 'value'], ])->add('child', static::TESTED_TYPE, ['em' => 'default', 'class' => self::SINGLE_IDENT_CLASS, ])->getForm( )->createView( ) |
/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php:1492 | 1 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE, null, ['label_translation_parameters' => ['%parent_param%' => 'parent_value', '%override_param%' => 'parent_override_value'], ])->add('child', static::TESTED_TYPE, ['label_translation_parameters' => ['%override_param%' => 'child_value'], 'em' => 'default', 'class' => self::SINGLE_IDENT_CLASS, ])->getForm( )->createView( ) |
/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php:1509 | 1 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE, null, ['help_translation_parameters' => ['%parent_param%' => 'parent_value', '%override_param%' => 'parent_override_value'], ])->add('child', static::TESTED_TYPE, ['help_translation_parameters' => ['%override_param%' => 'child_value'], 'em' => 'default', 'class' => self::SINGLE_IDENT_CLASS, ])->getForm( )->createView( ) |
/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php:1526 | 1 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE, null, ['attr_translation_parameters' => ['%parent_param%' => 'parent_value', '%override_param%' => 'parent_override_value'], ])->add('child', static::TESTED_TYPE, ['attr_translation_parameters' => ['%override_param%' => 'child_value'], 'em' => 'default', 'class' => self::SINGLE_IDENT_CLASS, ])->getForm( )->createView( ) |
/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php:1543 | 5 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE)->add('child', static::TESTED_TYPE, ['em' => 'default', 'class' => self::SINGLE_IDENT_CLASS, ])->getForm( )->createView( ) |
/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php:1556 | 5 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE)->add('child', static::TESTED_TYPE, ['em' => 'default', 'class' => self::SINGLE_IDENT_CLASS, ])->getForm( )->createView( ) |
/src/Symfony/Bridge/PsrHttpMessage/Tests/Factory/PsrHttpFactoryTest.php:44 | 1 | $request = new Request(['bar' => ['baz' => '42'], 'foo' => '1', ], ['twitter' => ['@dunglas' => 'Kévin Dunglas', '@coopTilleuls' => 'Les-Tilleuls.coop', ], 'baz' => '2', ], ['a1' => $stdClass, 'a2' => ['foo' => 'bar'], ], ['c1' => 'foo', 'c2' => ['c3' => 'bar'], ], ['f1' => $this->createUploadedFile('F1', 'f1.txt', 'text/plain', \UPLOAD_ERR_OK), 'foo' => ['f2' => $this->createUploadedFile('F2', 'f2.txt', 'text/plain', \UPLOAD_ERR_OK)], ], ['REQUEST_METHOD' => 'POST', 'HTTP_HOST' => 'dunglas.fr', 'HTTP_X_SYMFONY' => '2.8', 'REQUEST_URI' => '/testCreateRequest?bar[baz]=42&foo=1', 'QUERY_STRING' => 'bar[baz]=42&foo=1', ], 'Content') |
/src/Symfony/Bridge/PsrHttpMessage/Tests/Factory/PsrHttpFactoryTest.php:216 | 1 | $request = new Request([ ], [ ], [ ], [ ], ['f1' => $file, 'f2' => ['name' => null, 'type' => null, 'tmp_name' => null, 'error' => \UPLOAD_ERR_NO_FILE, 'size' => 0], ], ['REQUEST_METHOD' => 'POST', 'HTTP_HOST' => 'dunglas.fr', 'HTTP_X_SYMFONY' => '2.8', ], 'Content') |
/src/Symfony/Bridge/PsrHttpMessage/Tests/Functional/CovertTest.php:134 | 1 | $psr7Requests = [(new Psr7Request('POST', 'http://tnyholm.se/foo/?bar=biz'))->withQueryParams(['bar' => 'biz']), new Psr7Request('GET', 'https://hey-octave.com/'), new Psr7Request('GET', 'https://hey-octave.com:443/'), new Psr7Request('GET', 'https://hey-octave.com:4242/'), new Psr7Request('GET', 'http://hey-octave.com:80/'), ] |
/src/Symfony/Bridge/PsrHttpMessage/Tests/Factory/HttpFoundationFactoryTest.php:46 | 1 | $serverRequest = new ServerRequest('1.1', ['X-Dunglas-API-Platform' => '1.0', 'X-data' => ['a', 'b'], ], new Stream('The body'), '/about/kevin', 'GET', 'http://les-tilleuls.coop/about/kevin', ['country' => 'France'], ['city' => 'Lille'], ['url' => 'http://les-tilleuls.coop'], ['doc1' => $this->createUploadedFile('Doc 1', \UPLOAD_ERR_OK, 'doc1.txt', 'text/plain'), 'nested' => ['docs' => [$this->createUploadedFile('Doc 2', \UPLOAD_ERR_OK, 'doc2.txt', 'text/plain'), $this->createUploadedFile('Doc 3', \UPLOAD_ERR_OK, 'doc3.txt', 'text/plain'), ], ], ], ['url' => 'http://dunglas.fr'], ['custom' => $stdClass]) |
/src/Symfony/Bridge/PsrHttpMessage/Factory/PsrHttpFactory.php:142 | 1 | return $this->uploadedFileFactory->createUploadedFile($this->streamFactory->createStreamFromFile($symfonyUploadedFile->getRealPath( )), (int) $symfonyUploadedFile->getSize( ), $symfonyUploadedFile->getError( ), $symfonyUploadedFile->getClientOriginalName( ), $symfonyUploadedFile->getClientMimeType( )) |
/src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php:151 | 1 | return new ConsoleFormatter(array_replace(['colors' => $this->output->isDecorated( ), 'multiline' => OutputInterface::VERBOSITY_DEBUG <= $this->output->getVerbosity( ), ], $this->consoleFormatterOptions)) |
/src/Symfony/Bridge/PsrHttpMessage/Factory/HttpFoundationFactory.php:65 | 1 | $request = new Request($psrRequest->getQueryParams( ), $parsedBody, $psrRequest->getAttributes( ), $psrRequest->getCookieParams( ), $this->getFiles($psrRequest->getUploadedFiles( )), $server, $streamed ? $psrRequest->getBody( )->detach( ) : $psrRequest->getBody( )->__toString( )) |
/src/Symfony/Bridge/PsrHttpMessage/Factory/PsrHttpFactory.php:100 | 1 | $request = $request->withBody($body)->withUploadedFiles($this->getFiles($symfonyRequest->files->all( )))->withCookieParams($symfonyRequest->cookies->all( ))->withQueryParams($symfonyRequest->query->all( ))->withParsedBody($parsedBody) |
/src/Symfony/Bridge/Monolog/Tests/Handler/FingersCrossed/NotFoundActivationStrategyTest.php:41 | 1 | return [['/test', RecordFactory::create(Level::Debug), false], ['/foo', RecordFactory::create(Level::Debug, context : self::getContextException(404)), false], ['/baz/bar', RecordFactory::create(Level::Error, context : self::getContextException(404)), false], ['/foo', RecordFactory::create(Level::Error, context : self::getContextException(404)), false], ['/foo', RecordFactory::create(Level::Error, context : self::getContextException(500)), true], ['/test', RecordFactory::create(Level::Error), true], ['/baz', RecordFactory::create(Level::Error, context : self::getContextException(404)), true], ['/baz', RecordFactory::create(Level::Error, context : self::getContextException(500)), true], ] |
/src/Symfony/Bridge/Monolog/Tests/Handler/FingersCrossed/HttpCodeActivationStrategyTest.php:45 | 1 | $strategy = new HttpCodeActivationStrategy($requestStack, [['code' => 403, 'urls' => [ ]], ['code' => 404, 'urls' => [ ]], ['code' => 405, 'urls' => [ ]], ['code' => 400, 'urls' => ['^/400/a', '^/400/b']], ], new ErrorLevelActivationStrategy(Level::Warning)) |
/src/Symfony/Bridge/Monolog/Processor/DebugProcessor.php:36 | 1 | $this->records[$key][] = ['timestamp' => $record->datetime->getTimestamp( ), 'timestamp_rfc3339' => $record->datetime->format(\DateTimeInterface::RFC3339_EXTENDED), 'message' => $record->message, 'priority' => $record->level->value, 'priorityName' => $record->level->getName( ), 'context' => $record->context, 'channel' => $record->channel ?? '', ] |
/src/Symfony/Bridge/Monolog/Tests/Handler/MailerHandlerTest.php:97 | 1 | return [$this->getRecord(Level::Debug, 'debug message 1'), $this->getRecord(Level::Debug, 'debug message 2'), $this->getRecord(Level::Info, 'information'), $this->getRecord(Level::Warning, 'warning'), $this->getRecord(Level::Error, 'error'), ] |
/src/Symfony/Bridge/Monolog/Formatter/ConsoleFormatter.php:117 | 1 | $formatted = strtr($this->options['format'], ['%datetime%' => $record->datetime->format($this->options['date_format']), '%start_tag%' => sprintf('<%s>', self::LEVEL_COLOR_MAP[$record->level->value]), '%level_name%' => sprintf($this->options['level_name_format'], $record->level->getName( )), '%end_tag%' => '</>', '%channel%' => $record->channel, '%message%' => $this->replacePlaceHolder($record)->message, '%context%' => $context, '%extra%' => $extra, ]) |
/src/Symfony/Bridge/Monolog/Command/ServerLogCommand.php:157 | 1 | $record = new LogRecord($record['datetime'], $record['channel'], Level::fromValue($record['level']), $record['message'], ['data' => $record['context']], ['data' => $record['extra']], ) |
/src/Symfony/Bridge/Monolog/Tests/Handler/FingersCrossed/HttpCodeActivationStrategyTest.php:61 | 1 | return [['/test', RecordFactory::create(Level::Error), true], ['/400', RecordFactory::create(Level::Error, context : self::getContextException(400)), true], ['/400/a', RecordFactory::create(Level::Error, context : self::getContextException(400)), false], ['/400/b', RecordFactory::create(Level::Error, context : self::getContextException(400)), false], ['/400/c', RecordFactory::create(Level::Error, context : self::getContextException(400)), true], ['/401', RecordFactory::create(Level::Error, context : self::getContextException(401)), true], ['/403', RecordFactory::create(Level::Error, context : self::getContextException(403)), false], ['/404', RecordFactory::create(Level::Error, context : self::getContextException(404)), false], ['/405', RecordFactory::create(Level::Error, context : self::getContextException(405)), false], ['/500', RecordFactory::create(Level::Error, context : self::getContextException(500)), true], ] |
/src/Symfony/Bridge/Monolog/Tests/Formatter/ConsoleFormatterTest.php:46 | 1 | $tests['record with string in datetime field'] = ['record' => ['message' => 'test', 'context' => [ ], 'level' => Level::Warning, 'level_name' => Logger::getLevelName(Level::Warning), 'channel' => 'test', 'datetime' => '2019-01-01T00:42:00+00:00', 'extra' => [ ], ], 'expectedMessage' => "2019-01-01T00:42:00+00:00 <fg=cyan>WARNING </> <comment>[test]</> test\n", ] |
/src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/DoctrineExtractorTest.php:152 | 1 | return [['id', [new Type(Type::BUILTIN_TYPE_INT)]], ['guid', [new Type(Type::BUILTIN_TYPE_STRING)]], ['bigint', $expectedBingIntType], ['time', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTime')]], ['timeImmutable', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeImmutable')]], ['dateInterval', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateInterval')]], ['float', [new Type(Type::BUILTIN_TYPE_FLOAT)]], ['decimal', [new Type(Type::BUILTIN_TYPE_STRING)]], ['bool', [new Type(Type::BUILTIN_TYPE_BOOL)]], ['binary', [new Type(Type::BUILTIN_TYPE_RESOURCE)]], ['jsonArray', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true)]], ['foo', [new Type(Type::BUILTIN_TYPE_OBJECT, true, 'Symfony\Bridge\Doctrine\Tests\PropertyInfo\Fixtures\DoctrineRelation')]], ['bar', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Doctrine\Common\Collections\Collection', true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Symfony\Bridge\Doctrine\Tests\PropertyInfo\Fixtures\DoctrineRelation'))]], ['indexedRguid', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Doctrine\Common\Collections\Collection', true, new Type(Type::BUILTIN_TYPE_STRING), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Symfony\Bridge\Doctrine\Tests\PropertyInfo\Fixtures\DoctrineRelation'))]], ['indexedBar', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Doctrine\Common\Collections\Collection', true, new Type(Type::BUILTIN_TYPE_STRING), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Symfony\Bridge\Doctrine\Tests\PropertyInfo\Fixtures\DoctrineRelation'))]], ['indexedFoo', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Doctrine\Common\Collections\Collection', true, new Type(Type::BUILTIN_TYPE_STRING), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Symfony\Bridge\Doctrine\Tests\PropertyInfo\Fixtures\DoctrineRelation'))]], ['indexedBaz', [new Type(Type::BUILTIN_TYPE_OBJECT, false, Collection::class, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, DoctrineRelation::class))]], ['simpleArray', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_STRING))]], ['customFoo', null], ['notMapped', null], ['indexedByDt', [new Type(Type::BUILTIN_TYPE_OBJECT, false, Collection::class, true, new Type(Type::BUILTIN_TYPE_OBJECT), new Type(Type::BUILTIN_TYPE_OBJECT, false, DoctrineRelation::class))]], ['indexedByCustomType', null], ['indexedBuz', [new Type(Type::BUILTIN_TYPE_OBJECT, false, Collection::class, true, new Type(Type::BUILTIN_TYPE_STRING), new Type(Type::BUILTIN_TYPE_OBJECT, false, DoctrineRelation::class))]], ['dummyGeneratedValueList', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Doctrine\Common\Collections\Collection', true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, DoctrineRelation::class))]], ['json', null], ] |
/src/Symfony/Bridge/Doctrine/Tests/Validator/DoctrineLoaderTest.php:160 | 1 | $validator = Validation::createValidatorBuilder( )->enableAttributeMapping( )->addXmlMappings([__DIR__ . '/../Resources/validator/BaseUser.xml'])->addLoader(new DoctrineLoader(DoctrineTestHelper::createTestEntityManager(DoctrineTestHelper::createTestConfigurationWithXmlLoader( )), '{}'))->getValidator( ) |
/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php:1742 | 1 | $view = $this->factory->create(FormTypeTest::TESTED_TYPE)->add('entity_one', self::TESTED_TYPE, ['em' => 'default', 'class' => self::SINGLE_IDENT_CLASS, ])->add('entity_two', self::TESTED_TYPE, ['em' => 'default', 'class' => self::SINGLE_IDENT_CLASS, 'choice_value' => fn ($choice) => $choice ? $choice->name : '', ])->createView( ) |
/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php:1569 | 5 | $view = $this->factory->createNamedBuilder('parent', FormTypeTest::TESTED_TYPE)->add('child', static::TESTED_TYPE, ['em' => 'default', 'class' => self::SINGLE_IDENT_CLASS, ])->getForm( )->createView( ) |
/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php:98 | 1 | $this->triggeringFile = isset($trace[1 + $j]['args'][1]) ? realpath($trace[1 + $j]['args'][1]) : (new \ReflectionClass($class))->getFileName( ) |
/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php:380 | 1 | return new $eh($frame['object']->getConvertDeprecationsToExceptions( ), $frame['object']->getConvertErrorsToExceptions( ), $frame['object']->getConvertNoticesToExceptions( ), $frame['object']->getConvertWarningsToExceptions( )) |
/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php:239 | 1 | $this->deprecationGroups = ['unsilenced' => new DeprecationGroup( ), 'self' => new DeprecationGroup( ), 'direct' => new DeprecationGroup( ), 'indirect' => new DeprecationGroup( ), 'legacy' => new DeprecationGroup( ), 'other' => new DeprecationGroup( ), ] |
/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php:336 | 1 | return new ContainerBuilder(new ParameterBag(array_merge(['kernel.bundles' => array_merge(['FrameworkBundle' => 'Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle'], $extraBundles), 'kernel.cache_dir' => __DIR__, 'kernel.build_dir' => __DIR__, 'kernel.container_class' => 'kernel', 'kernel.project_dir' => __DIR__, ], $data))) |
/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php:152 | 1 | return ['not_from_vendors_file' => [Deprecation::TYPE_SELF, '', 'MyClass1', __FILE__], 'nonexistent_file' => [Deprecation::TYPE_UNDETERMINED, '', 'MyClass1', 'dummy_vendor_path'], 'serialized_trace_with_nonexistent_triggering_file' => [Deprecation::TYPE_UNDETERMINED, serialize(['class' => '', 'method' => '', 'deprecation' => '', 'triggering_file' => 'dummy_vendor_path', 'files_stack' => [ ], ]), SymfonyTestsListenerForV7::class, '', ], ] |
/src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php:155 | 1 | $COMPOSER = ($COMPOSER = getenv('COMPOSER_BINARY')) || file_exists($COMPOSER = $oldPwd . '/composer.phar') || ($COMPOSER = rtrim((string) ('\\' === \DIRECTORY_SEPARATOR ? preg_replace('/[\r\n].*/', '', shell_exec('where.exe composer.phar 2> NUL')) : shell_exec('which composer.phar 2> /dev/null')))) || ($COMPOSER = rtrim((string) ('\\' === \DIRECTORY_SEPARATOR ? preg_replace('/[\r\n].*/', '', shell_exec('where.exe composer 2> NUL')) : shell_exec('which composer 2> /dev/null')))) || file_exists($COMPOSER = rtrim((string) ('\\' === \DIRECTORY_SEPARATOR ? shell_exec('git rev-parse --show-toplevel 2> NUL') : shell_exec('git rev-parse --show-toplevel 2> /dev/null'))) . \DIRECTORY_SEPARATOR . 'composer.phar') ? ('#!/usr/bin/env php' === file_get_contents($COMPOSER, false, null, 0, 18) ? $PHP : '') . ' ' . escapeshellarg($COMPOSER) : 'composer' |
/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php:397 | 1 | return ($this->originatesFromAnObject( ) ? 'deprecation triggered by ' . $this->originatingClass( ) . '::' . $this->originatingMethod( ) . ":\n" : '') . $this->message . "\n" . "Stack trace:\n" . str_replace(' ' . getcwd( ) . \DIRECTORY_SEPARATOR, ' ', $exception->getTraceAsString( )) . "\n" |
/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php:220 | 1 | return 0 === strpos($method, 'testLegacy') || 0 === strpos($method, 'provideLegacy') || 0 === strpos($method, 'getLegacy') || strpos($this->originClass, '\Legacy') || \in_array('legacy', $groups($this->originClass, $method), true) |
/src/Symfony/Bridge/PsrHttpMessage/Tests/Functional/CovertTest.php:99 | 1 | $sfRequest = new Request(['foo' => '1', 'bar' => ['baz' => '42'], ], ['twitter' => ['@dunglas' => 'Kévin Dunglas', '@coopTilleuls' => 'Les-Tilleuls.coop', ], 'baz' => '2', ], ['a2' => ['foo' => 'bar'], ], ['c1' => 'foo', 'c2' => ['c3' => 'bar'], ], ['f1' => self::createUploadedFile('F1', 'f1.txt', 'text/plain', \UPLOAD_ERR_OK), 'foo' => ['f2' => self::createUploadedFile('F2', 'f2.txt', 'text/plain', \UPLOAD_ERR_OK)], ], ['REQUEST_METHOD' => 'POST', 'HTTP_HOST' => 'dunglas.fr', 'SERVER_NAME' => 'dunglas.fr', 'SERVER_PORT' => null, 'HTTP_X_SYMFONY' => '2.8', 'REQUEST_URI' => '/testCreateRequest?foo=1&bar%5Bbaz%5D=42', 'QUERY_STRING' => 'foo=1&bar%5Bbaz%5D=42', ], 'Content') |
/src/Symfony/Bridge/PsrHttpMessage/Tests/Fixtures/App/Controller/PsrRequestController.php:29 | 1 | return $this->responseFactory->createResponse( )->withStatus(403)->withBody($this->streamFactory->createStream(sprintf('<html><body>%s %s</body></html>', $request->getMethod( ), $request->getBody( )->getContents( )))) |
/src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php:283 | 1 | $error = serialize(['deprecation' => $deprecation[1], 'class' => $className, 'method' => $test->getName(false), 'triggering_file' => $deprecation[2] ?? null, 'files_stack' => $deprecation[3] ?? [ ]]) |
/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php:194 | 1 | return ['no_file_in_stack' => [Deprecation::TYPE_DIRECT, '', [['function' => 'myfunc1'], ['function' => 'myfunc2']]], 'files_in_stack_from_various_packages' => [Deprecation::TYPE_INDIRECT, '', [['function' => 'myfunc1', 'file' => $vendorDir . '/myfakevendor/myfakepackage1/MyFakeFile1.php'], ['function' => 'myfunc2', 'file' => $vendorDir . '/myfakevendor/myfakepackage2/MyFakeFile.php'], ], ], 'serialized_stack_files_from_same_package' => [Deprecation::TYPE_DIRECT, serialize(['deprecation' => 'My deprecation message', 'class' => 'MyClass', 'method' => 'myMethod', 'files_stack' => [$vendorDir . '/myfakevendor/myfakepackage1/MyFakeFile1.php', $vendorDir . '/myfakevendor/myfakepackage1/MyFakeFile2.php', ], ]), $fakeTrace, ], 'serialized_stack_files_from_various_packages' => [Deprecation::TYPE_INDIRECT, serialize(['deprecation' => 'My deprecation message', 'class' => 'MyClass', 'method' => 'myMethod', 'files_stack' => [$vendorDir . '/myfakevendor/myfakepackage1/MyFakeFile1.php', $vendorDir . '/myfakevendor/myfakepackage2/MyFakeFile.php', ], ]), $fakeTrace, ], ] |
/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php:228 | 1 | return $this->renderWithCspNonces($request, '@WebProfiler/Profiler/results.html.twig', ['request' => $request, 'token' => $token, 'profile' => $profile, 'tokens' => $this->profiler->find($ip, $url, $limit, $method, $start, $end, $statusCode, fn ($profile) => $profileType === $profile['virtual_type']), 'ip' => $ip, 'method' => $method, 'status_code' => $statusCode, 'url' => $url, 'start' => $start, 'end' => $end, 'limit' => $limit, 'panel' => null, 'profile_type' => $profileType, ]) |
/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php:284 | 1 | return new RedirectResponse($this->generator->generate('_profiler_search_results', ['token' => $tokens ? $tokens[0]['token'] : 'empty', 'ip' => $ip, 'method' => $method, 'status_code' => $statusCode, 'url' => $url, 'start' => $start, 'end' => $end, 'limit' => $limit, 'type' => $profileType, ]), 302, ['Content-Type' => 'text/html']) |
/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php:160 | 1 | return $this->renderWithCspNonces($request, '@WebProfiler/Profiler/toolbar.html.twig', ['full_stack' => class_exists(FullStack::class), 'request' => $request, 'profile' => $profile, 'templates' => $this->getTemplateManager( )->getNames($profile), 'profiler_url' => $url, 'token' => $token, 'profiler_markup_version' => 3, ]) |
/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php:187 | 1 | return new Response($this->twig->render('@WebProfiler/Profiler/search.html.twig', ['token' => $request->query->get('token', $session?->get('_profiler_search_token')), 'ip' => $request->query->get('ip', $session?->get('_profiler_search_ip')), 'method' => $request->query->get('method', $session?->get('_profiler_search_method')), 'status_code' => $request->query->get('status_code', $session?->get('_profiler_search_status_code')), 'url' => $request->query->get('url', $session?->get('_profiler_search_url')), 'start' => $request->query->get('start', $session?->get('_profiler_search_start')), 'end' => $request->query->get('end', $session?->get('_profiler_search_end')), 'limit' => $request->query->get('limit', $session?->get('_profiler_search_limit')), 'request' => $request, 'render_hidden_by_default' => false, 'profile_type' => $request->query->get('type', $session?->get('_profiler_search_type', 'request')), ]), 200, ['Content-Type' => 'text/html']) |
/src/Symfony/Bundle/WebProfilerBundle/Profiler/CodeExtension.php:41 | 1 | return [new TwigFilter('abbr_class', $this->abbrClass(...), ['is_safe' => ['html'], 'pre_escape' => 'html']), new TwigFilter('abbr_method', $this->abbrMethod(...), ['is_safe' => ['html'], 'pre_escape' => 'html']), new TwigFilter('format_args', $this->formatArgs(...), ['is_safe' => ['html']]), new TwigFilter('format_args_as_text', $this->formatArgsAsText(...)), new TwigFilter('file_excerpt', $this->fileExcerpt(...), ['is_safe' => ['html']]), new TwigFilter('format_file', $this->formatFile(...), ['is_safe' => ['html']]), new TwigFilter('format_file_from_text', $this->formatFileFromText(...), ['is_safe' => ['html']]), new TwigFilter('format_log_message', $this->formatLogMessage(...), ['is_safe' => ['html']]), new TwigFilter('file_link', $this->getFileLink(...)), new TwigFilter('file_relative', $this->getFileRelative(...)), ] |
/src/Symfony/Bundle/WebProfilerBundle/Twig/WebProfilerExtension.php:61 | 1 | return [new TwigFunction('profiler_dump', $this->dumpData(...), ['is_safe' => ['html'], 'needs_environment' => true]), new TwigFunction('profiler_dump_log', $this->dumpLog(...), ['is_safe' => ['html'], 'needs_environment' => true]), ] |
/src/Symfony/Bundle/WebProfilerBundle/Controller/RouterController.php:74 | 1 | return new Response($this->twig->render('@WebProfiler/Router/panel.html.twig', ['request' => $request, 'router' => $profile->getCollector('router'), 'traces' => $this->getTraces($request, $profile->getMethod( )), ]), 200, ['Content-Type' => 'text/html']) |
/src/Symfony/Bundle/WebProfilerBundle/Controller/RouterController.php:86 | 1 | $traceRequest = Request::create($request->getPathInfo( ), $request->getRequestServer(true)->get('REQUEST_METHOD'), \in_array($request->getMethod( ), ['DELETE', 'PATCH', 'POST', 'PUT'], true) ? $request->getRequestRequest( )->all( ) : $request->getRequestQuery( )->all( ), $request->getRequestCookies(true)->all( ), [ ], $request->getRequestServer(true)->all( )) |
/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/JsonDescriptor.php:250 | 1 | $data = ['class' => (string) $definition->getClass( ), 'public' => $definition->isPublic( ) && !$definition->isPrivate( ), 'synthetic' => $definition->isSynthetic( ), 'lazy' => $definition->isLazy( ), 'shared' => $definition->isShared( ), 'abstract' => $definition->isAbstract( ), 'autowire' => $definition->isAutowired( ), 'autoconfigure' => $definition->isAutoconfigured( ), ] |
/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/MarkdownDescriptor.php:51 | 1 | $output = '- Path: ' . $route->getPath( ) . "\n" . '- Path Regex: ' . $route->compile( )->getRegex( ) . "\n" . '- Host: ' . ('' !== $route->getHost( ) ? $route->getHost( ) : 'ANY') . "\n" . '- Host Regex: ' . ('' !== $route->getHost( ) ? $route->compile( )->getHostRegex( ) : '') . "\n" . '- Scheme: ' . ($route->getSchemes( ) ? implode('|', $route->getSchemes( )) : 'ANY') . "\n" . '- Method: ' . ($route->getMethods( ) ? implode('|', $route->getMethods( )) : 'ANY') . "\n" . '- Class: ' . $route::class . "\n" . '- Defaults: ' . $this->formatRouterConfig($route->getDefaults( )) . "\n" . '- Requirements: ' . ($route->getRequirements( ) ? $this->formatRouterConfig($route->getRequirements( )) : 'NO CUSTOM') . "\n" . '- Options: ' . $this->formatRouterConfig($route->getOptions( )) |
/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php:101 | 1 | $tableRows = [['Route Name', $options['name'] ?? ''], ['Path', $route->getPath( )], ['Path Regex', $route->compile( )->getRegex( )], ['Host', '' !== $route->getHost( ) ? $route->getHost( ) : 'ANY'], ['Host Regex', '' !== $route->getHost( ) ? $route->compile( )->getHostRegex( ) : ''], ['Scheme', $route->getSchemes( ) ? implode('|', $route->getSchemes( )) : 'ANY'], ['Method', $route->getMethods( ) ? implode('|', $route->getMethods( )) : 'ANY'], ['Requirements', $route->getRequirements( ) ? $this->formatRouterConfig($route->getRequirements( )) : 'NO CUSTOM'], ['Class', $route::class], ['Defaults', $this->formatRouterConfig($defaults)], ['Options', $this->formatRouterConfig($route->getOptions( ))], ] |
/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/JsonDescriptor.php:211 | 1 | $data = ['path' => $route->getPath( ), 'pathRegex' => $route->compile( )->getRegex( ), 'host' => '' !== $route->getHost( ) ? $route->getHost( ) : 'ANY', 'hostRegex' => '' !== $route->getHost( ) ? $route->compile( )->getHostRegex( ) : '', 'scheme' => $route->getSchemes( ) ? implode('|', $route->getSchemes( )) : 'ANY', 'method' => $route->getMethods( ) ? implode('|', $route->getMethods( )) : 'ANY', 'class' => $route::class, 'defaults' => $route->getDefaults( ), 'requirements' => $route->getRequirements( ) ?: 'NO CUSTOM', 'options' => $route->getOptions( ), ] |
/src/Symfony/Bundle/WebProfilerBundle/Tests/Csp/ContentSecurityPolicyHandlerTest.php:95 | 1 | return [[$nonce, ['csp_script_nonce' => $nonce, 'csp_style_nonce' => $nonce], self::createRequest( ), self::createResponse( ), ['Content-Security-Policy' => null, 'Content-Security-Policy-Report-Only' => null, 'X-Content-Security-Policy' => null], ], [$nonce, ['csp_script_nonce' => $requestScriptNonce, 'csp_style_nonce' => $requestStyleNonce], self::createRequest($requestNonceHeaders), self::createResponse($responseNonceHeaders), ['Content-Security-Policy' => null, 'Content-Security-Policy-Report-Only' => null, 'X-Content-Security-Policy' => null], ], [$nonce, ['csp_script_nonce' => $requestScriptNonce, 'csp_style_nonce' => $requestStyleNonce], self::createRequest($requestNonceHeaders), self::createResponse( ), ['Content-Security-Policy' => null, 'Content-Security-Policy-Report-Only' => null, 'X-Content-Security-Policy' => null], ], [$nonce, ['csp_script_nonce' => $responseScriptNonce, 'csp_style_nonce' => $responseStyleNonce], self::createRequest( ), self::createResponse($responseNonceHeaders), ['Content-Security-Policy' => null, 'Content-Security-Policy-Report-Only' => null, 'X-Content-Security-Policy' => null], ], [$nonce, ['csp_script_nonce' => $nonce, 'csp_style_nonce' => $nonce], self::createRequest( ), self::createResponse(['Content-Security-Policy' => 'frame-ancestors https: ; form-action: https:', 'Content-Security-Policy-Report-Only' => 'frame-ancestors http: ; form-action: http:']), ['Content-Security-Policy' => 'frame-ancestors https: ; form-action: https:', 'Content-Security-Policy-Report-Only' => 'frame-ancestors http: ; form-action: http:', 'X-Content-Security-Policy' => null], ], [$nonce, ['csp_script_nonce' => $nonce, 'csp_style_nonce' => $nonce], self::createRequest( ), self::createResponse(['Content-Security-Policy' => 'default-src \'self\' domain.com; script-src \'self\' \'unsafe-inline\'', 'Content-Security-Policy-Report-Only' => 'default-src \'self\' domain-report-only.com; script-src \'self\' \'unsafe-inline\'']), ['Content-Security-Policy' => 'default-src \'self\' domain.com; script-src \'self\' \'unsafe-inline\'; style-src \'self\' domain.com \'unsafe-inline\' \'nonce-' . $nonce . '\'', 'Content-Security-Policy-Report-Only' => 'default-src \'self\' domain-report-only.com; script-src \'self\' \'unsafe-inline\'; style-src \'self\' domain-report-only.com \'unsafe-inline\' \'nonce-' . $nonce . '\'', 'X-Content-Security-Policy' => null], ], [$nonce, ['csp_script_nonce' => $nonce, 'csp_style_nonce' => $nonce], self::createRequest( ), self::createResponse(['Content-Security-Policy' => 'default-src \'self\' domain.com; script-src \'self\' \'unsafe-inline\'; script-src-elem \'self\'; style-src \'self\' \'unsafe-inline\'; style-src-elem \'self\'', 'Content-Security-Policy-Report-Only' => 'default-src \'self\' domain-report-only.com; script-src \'self\' \'unsafe-inline\'; script-src-elem \'self\'; style-src \'self\' \'unsafe-inline\'; style-src-elem \'self\'']), ['Content-Security-Policy' => 'default-src \'self\' domain.com; script-src \'self\' \'unsafe-inline\'; script-src-elem \'self\' \'unsafe-inline\' \'nonce-' . $nonce . '\'; style-src \'self\' \'unsafe-inline\'; style-src-elem \'self\' \'unsafe-inline\' \'nonce-' . $nonce . '\'', 'Content-Security-Policy-Report-Only' => 'default-src \'self\' domain-report-only.com; script-src \'self\' \'unsafe-inline\'; script-src-elem \'self\' \'unsafe-inline\' \'nonce-' . $nonce . '\'; style-src \'self\' \'unsafe-inline\'; style-src-elem \'self\' \'unsafe-inline\' \'nonce-' . $nonce . '\'', 'X-Content-Security-Policy' => null], ], [$nonce, ['csp_script_nonce' => $nonce, 'csp_style_nonce' => $nonce], self::createRequest( ), self::createResponse(['Content-Security-Policy' => 'default-src \'none\'', 'Content-Security-Policy-Report-Only' => 'default-src \'none\'']), ['Content-Security-Policy' => 'default-src \'none\'; script-src \'unsafe-inline\' \'nonce-' . $nonce . '\'; style-src \'unsafe-inline\' \'nonce-' . $nonce . '\'', 'Content-Security-Policy-Report-Only' => 'default-src \'none\'; script-src \'unsafe-inline\' \'nonce-' . $nonce . '\'; style-src \'unsafe-inline\' \'nonce-' . $nonce . '\'', 'X-Content-Security-Policy' => null], ], [$nonce, ['csp_script_nonce' => $nonce, 'csp_style_nonce' => $nonce], self::createRequest( ), self::createResponse(['Content-Security-Policy' => 'script-src \'self\' \'unsafe-inline\'']), ['Content-Security-Policy' => 'script-src \'self\' \'unsafe-inline\'', 'X-Content-Security-Policy' => null], ], [$nonce, ['csp_script_nonce' => $nonce, 'csp_style_nonce' => $nonce], self::createRequest( ), self::createResponse(['Content-Security-Policy' => 'script-src \'self\'; style-src \'self\'']), ['Content-Security-Policy' => 'script-src \'self\' \'unsafe-inline\' \'nonce-' . $nonce . '\'; style-src \'self\' \'unsafe-inline\' \'nonce-' . $nonce . '\'', 'X-Content-Security-Policy' => null], ], [$nonce, ['csp_script_nonce' => $nonce, 'csp_style_nonce' => $nonce], self::createRequest( ), self::createResponse(['X-Content-Security-Policy' => 'script-src \'self\' \'unsafe-inline\'']), ['X-Content-Security-Policy' => 'script-src \'self\' \'unsafe-inline\'', 'Content-Security-Policy' => null], ], [$nonce, ['csp_script_nonce' => $nonce, 'csp_style_nonce' => $nonce], self::createRequest( ), self::createResponse(['X-Content-Security-Policy' => 'script-src \'self\'']), ['X-Content-Security-Policy' => 'script-src \'self\' \'unsafe-inline\' \'nonce-' . $nonce . '\'', 'Content-Security-Policy' => null], ], [$nonce, ['csp_script_nonce' => $nonce, 'csp_style_nonce' => $nonce], self::createRequest( ), self::createResponse(['X-Content-Security-Policy' => 'script-src \'self\' \'unsafe-inline\' \'sha384-LALALALALAAL\'']), ['X-Content-Security-Policy' => 'script-src \'self\' \'unsafe-inline\' \'sha384-LALALALALAAL\' \'nonce-' . $nonce . '\'', 'Content-Security-Policy' => null], ], [$nonce, ['csp_script_nonce' => $nonce, 'csp_style_nonce' => $nonce], self::createRequest( ), self::createResponse(['Content-Security-Policy' => 'script-src \'self\'; style-src \'self\'', 'X-Content-Security-Policy' => 'script-src \'self\' \'unsafe-inline\'; style-src \'self\'']), ['Content-Security-Policy' => 'script-src \'self\' \'unsafe-inline\' \'nonce-' . $nonce . '\'; style-src \'self\' \'unsafe-inline\' \'nonce-' . $nonce . '\'', 'X-Content-Security-Policy' => 'script-src \'self\' \'unsafe-inline\'; style-src \'self\' \'unsafe-inline\' \'nonce-' . $nonce . '\''], ], ] |
/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php:111 | 1 | return $this->renderWithCspNonces($request, $this->getTemplateManager( )->getName($profile, $panel), ['token' => $token, 'profile' => $profile, 'collector' => $profile->getCollector($panel), 'panel' => $panel, 'page' => $page, 'request' => $request, 'templates' => $this->getTemplateManager( )->getNames($profile), 'is_ajax' => $request->isXmlHttpRequest( ), 'profiler_markup_version' => 3, 'profile_type' => $profileType, ]) |
/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/MarkdownDescriptor.php:217 | 1 | $output .= '- Class: `' . $definition->getClass( ) . '`' . "\n" . '- Public: ' . ($definition->isPublic( ) && !$definition->isPrivate( ) ? 'yes' : 'no') . "\n" . '- Synthetic: ' . ($definition->isSynthetic( ) ? 'yes' : 'no') . "\n" . '- Lazy: ' . ($definition->isLazy( ) ? 'yes' : 'no') . "\n" . '- Shared: ' . ($definition->isShared( ) ? 'yes' : 'no') . "\n" . '- Abstract: ' . ($definition->isAbstract( ) ? 'yes' : 'no') . "\n" . '- Autowired: ' . ($definition->isAutowired( ) ? 'yes' : 'no') . "\n" . '- Autoconfigured: ' . ($definition->isAutoconfigured( ) ? 'yes' : 'no') |
/src/Symfony/Bundle/WebProfilerBundle/Tests/Csp/ContentSecurityPolicyHandlerTest.php:68 | 1 | return [[$nonce, ['csp_script_nonce' => $nonce, 'csp_style_nonce' => $nonce], self::createRequest( ), self::createResponse( )], [$nonce, ['csp_script_nonce' => $requestScriptNonce, 'csp_style_nonce' => $requestStyleNonce], self::createRequest($requestNonceHeaders), self::createResponse($responseNonceHeaders)], [$nonce, ['csp_script_nonce' => $requestScriptNonce, 'csp_style_nonce' => $requestStyleNonce], self::createRequest($requestNonceHeaders), self::createResponse( )], [$nonce, ['csp_script_nonce' => $responseScriptNonce, 'csp_style_nonce' => $responseStyleNonce], self::createRequest( ), self::createResponse($responseNonceHeaders)], ] |
/src/Symfony/Bundle/FrameworkBundle/Routing/RedirectableCompiledUrlMatcher.php:26 | 1 | return ['_controller' => 'Symfony\\Bundle\\FrameworkBundle\\Controller\\RedirectController::urlRedirectAction', 'path' => $path, 'permanent' => true, 'scheme' => $scheme, 'httpPort' => $this->context->getHttpPort( ), 'httpsPort' => $this->context->getHttpsPort( ), '_route' => $route, ] |
/src/Symfony/Bundle/FrameworkBundle/Command/AboutCommand.php:60 | 1 | $rows = [['<info>Symfony</>'], new TableSeparator( ), ['Version', Kernel::VERSION], ['Long-Term Support', 4 === Kernel::MINOR_VERSION ? 'Yes' : 'No'], ['End of maintenance', Kernel::END_OF_MAINTENANCE . (self::isExpired(Kernel::END_OF_MAINTENANCE) ? ' <error>Expired</>' : ' (<comment>' . self::daysBeforeExpiration(Kernel::END_OF_MAINTENANCE) . '</>)')], ['End of life', Kernel::END_OF_LIFE . (self::isExpired(Kernel::END_OF_LIFE) ? ' <error>Expired</>' : ' (<comment>' . self::daysBeforeExpiration(Kernel::END_OF_LIFE) . '</>)')], new TableSeparator( ), ['<info>Kernel</>'], new TableSeparator( ), ['Type', $kernel::class], ['Environment', $kernel->getEnvironment( )], ['Debug', $kernel->isDebug( ) ? 'true' : 'false'], ['Charset', $kernel->getCharset( )], ['Cache directory', self::formatPath($kernel->getCacheDir( ), $kernel->getProjectDir( )) . ' (<comment>' . self::formatFileSize($kernel->getCacheDir( )) . '</>)'], ['Build directory', self::formatPath($buildDir, $kernel->getProjectDir( )) . ' (<comment>' . self::formatFileSize($buildDir) . '</>)'], ['Log directory', self::formatPath($kernel->getLogDir( ), $kernel->getProjectDir( )) . ' (<comment>' . self::formatFileSize($kernel->getLogDir( )) . '</>)'], new TableSeparator( ), ['<info>PHP</>'], new TableSeparator( ), ['Version', \PHP_VERSION], ['Architecture', (\PHP_INT_SIZE * 8) . ' bits'], ['Intl locale', class_exists(\Locale::class, false) && \Locale::getDefault( ) ? \Locale::getDefault( ) : 'n/a'], ['Timezone', date_default_timezone_get( ) . ' (<comment>' . (new \DateTimeImmutable( ))->format(\DateTimeInterface::W3C) . '</>)'], ['OPcache', \extension_loaded('Zend OPcache') && filter_var(\ini_get('opcache.enable'), \FILTER_VALIDATE_BOOL) ? 'true' : 'false'], ['APCu', \extension_loaded('apcu') && filter_var(\ini_get('apc.enabled'), \FILTER_VALIDATE_BOOL) ? 'true' : 'false'], ['Xdebug', \extension_loaded('xdebug') ? 'true' : 'false'], ] |
/src/Symfony/Bundle/FrameworkBundle/Controller/RedirectController.php:182 | 1 | return $this->urlRedirectAction($request, $p['path'], $p['permanent'] ?? false, $p['scheme'] ?? null, $p['httpPort'] ?? null, $p['httpsPort'] ?? null, $p['keepRequestMethod'] ?? false) |
/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/ObjectsProvider.php:266 | 1 | return ['callable_1' => 'array_key_exists', 'callable_2' => ['Symfony\\Bundle\\FrameworkBundle\\Tests\\Console\\Descriptor\\CallableClass', 'staticMethod'], 'callable_3' => [new CallableClass( ), 'method'], 'callable_4' => 'Symfony\\Bundle\\FrameworkBundle\\Tests\\Console\\Descriptor\\CallableClass::staticMethod', 'callable_6' => fn ( ) => 'Closure', 'callable_7' => new CallableClass( ), 'callable_from_callable' => (new CallableClass( ))(...), ] |
/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php:65 | 1 | $row = [$name, $route->getMethods( ) ? implode('|', $route->getMethods( )) : 'ANY', $route->getSchemes( ) ? implode('|', $route->getSchemes( )) : 'ANY', '' !== $route->getHost( ) ? $route->getHost( ) : 'ANY', $this->formatControllerLink($controller, $route->getPath( ), $options['container'] ?? null), ] |
/src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php:169 | 1 | $configuratorClass = $configureContainer->getNumberOfParameters( ) > 0 && ($type = $configureContainer->getParameters( )[0]->getType( )) instanceof \ReflectionNamedType && !$type->isBuiltin( ) ? $type->getName( ) : null |
/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php:2178 | 1 | $transportDefinition = (new Definition(TransportInterface::class))->setFactory([new Reference('messenger.transport_factory'), 'createTransport'])->setArguments([$transport['dsn'], $transport['options'] + ['transport_name' => $name], new Reference($serializerId)])->addTag('messenger.receiver', ['alias' => $name, 'is_failure_transport' => \in_array($name, $failureTransports), ]) |
/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php:1990 | 1 | return $root->arrayNode('retry_failed')->fixXmlConfig('http_code')->canBeEnabled( )->addDefaultsIfNotSet( )->beforeNormalization( )->always(function ($v) { /**/ } )->end( )->children( )->scalarNode('retry_strategy')->defaultNull( )->info('service id to override the retry strategy')->end( )->arrayNode('http_codes')->performNoDeepMerging( )->beforeNormalization( )->ifArray( )->then(static function ($v) { /**/ } )->end( )->useAttributeAsKey('code')->arrayPrototype( )->fixXmlConfig('method')->children( )->integerNode('code')->end( )->arrayNode('methods')->beforeNormalization( )->ifArray( )->then(fn ($v) => array_map('strtoupper', $v))->end( )->prototype('scalar')->end( )->info('A list of HTTP methods that triggers a retry for this status code. When empty, all methods are retried')->end( )->end( )->end( )->info('A list of HTTP status code that triggers a retry')->end( )->integerNode('max_retries')->defaultValue(3)->min(0)->end( )->integerNode('delay')->defaultValue(1000)->min(0)->info('Time in ms to delay (or the initial value when multiplier is used)')->end( )->floatNode('multiplier')->defaultValue(2)->min(1)->info('If greater than 1, delay will grow exponentially for each retry: delay * (multiple ^ retries)')->end( )->integerNode('max_delay')->defaultValue(0)->min(0)->info('Max time in ms that a retry should ever be delayed (0 = infinite)')->end( )->floatNode('jitter')->defaultValue(0.1)->min(0)->max(1)->info('Randomness in percent (between 0 and 1) to apply to the delay')->end( )->end( ) |
/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ApiAttributesTest.php:96 | 1 | [$acceptHeader, $assertion] = ['html' => ['text/html', self::assertStringContainsString(...)], 'json' => ['application/json', self::assertJsonStringEqualsJsonString(...)], 'xml' => ['text/xml', self::assertXmlStringEqualsXmlString(...)], 'dummy' => ['application/dummy', self::assertStringContainsString(...)], ][$format] |
/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/SchedulerTest.php:29 | 1 | $scheduledMessages = [RecurringMessage::every('5 minutes', $foo = new FooMessage( ), new \DateTimeImmutable('2020-01-01T00:00:00Z')), RecurringMessage::every('5 minutes', $bar = new BarMessage( ), new \DateTimeImmutable('2020-01-01T00:01:00Z')), ] |
/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/AbstractWebTestCase.php:62 | 1 | return new $class(static::getVarDir( ), $options['test_case'], $options['root_config'] ?? 'config.yml', $options['environment'] ?? strtolower(static::getVarDir( ) . $options['test_case']), $options['debug'] ?? false) |
/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/TestServiceContainerRefPassesTest.php:62 | 1 | $expected = ['Test\private_used_shared_service' => new ServiceClosureArgument(new Reference('Test\private_used_shared_service')), 'Test\private_used_non_shared_service' => new ServiceClosureArgument(new Reference('Test\private_used_non_shared_service')), 'Test\soon_private_service' => new ServiceClosureArgument(new Reference('.container.private.Test\soon_private_service')), 'Test\soon_private_service_decorator' => new ServiceClosureArgument(new Reference('.container.private.Test\soon_private_service_decorated')), 'Test\soon_private_service_decorated' => new ServiceClosureArgument(new Reference('.container.private.Test\soon_private_service_decorated')), ] |
/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/ObjectsProvider.php:208 | 1 | return ['definition_1' => $definition1->setPublic(true)->setSynthetic(true)->setFile('/path/to/file')->setLazy(false)->setAbstract(false)->addTag('tag1', ['attr1' => 'val1', 'priority' => 30])->addTag('tag1', ['attr2' => 'val2'])->addTag('tag2')->addMethodCall('setMailer', [new Reference('mailer')])->setFactory([new Reference('factory.service'), 'get']), 'definition_2' => $definition2->setPublic(true)->setSynthetic(true)->setFile('/path/to/file')->setLazy(false)->setAbstract(false)->addTag('tag1', ['attr1' => 'val1', 'attr2' => 'val2', 'priority' => -20]), 'definition_3' => $definition3->setPublic(true)->setSynthetic(true)->setFile('/path/to/file')->setLazy(false)->setAbstract(false)->addTag('tag1', ['attr1' => 'val1', 'attr2' => 'val2', 'priority' => 0])->addTag('tag1', ['attr3' => 'val3', 'priority' => 40]), 'definition_4' => $definition4->setPublic(true)->setSynthetic(true)->setFile('/path/to/file')->setLazy(false)->setAbstract(false)->addTag('tag1', ['priority' => 0]), ] |
/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/ObjectsProvider.php:154 | 1 | return ['definition_1' => $definition1->setPublic(true)->setSynthetic(false)->setLazy(true)->setAbstract(true)->addArgument(new Reference('.definition_2'))->addArgument('%parameter%')->addArgument(new Definition('inline_service', ['arg1', 'arg2']))->addArgument(['foo', new Reference('.definition_2'), new Definition('inline_service'), ])->addArgument(new IteratorArgument([new Reference('definition_1'), new Reference('.definition_2'), ]))->addArgument(new AbstractArgument('placeholder'))->setFactory(['Full\\Qualified\\FactoryClass', 'get']), '.definition_2' => $definition2->setPublic(false)->setSynthetic(true)->setFile('/path/to/file')->setLazy(false)->setAbstract(false)->addTag('tag1', ['attr1' => 'val1', 'attr2' => 'val2'])->addTag('tag1', ['attr3' => 'val3'])->addTag('tag2')->addTag('tag3', ['array_attr' => ['foo', 'bar', [[[['ccc']]]]]])->addMethodCall('setMailer', [new Reference('mailer')])->setFactory([new Reference('factory.service'), 'get']), '.definition_3' => $definition3->setFile('/path/to/file')->setFactory([new Definition('Full\\Qualified\\FactoryClass'), 'get']), 'definition_without_class' => new Definition( ), ] |
/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/ObjectsProvider.php:74 | 1 | yield 'parameters_enums' => new ParameterBag(['unit_enum' => FooUnitEnum::BAR, 'backed_enum' => Suit::Hearts, 'array_of_enums' => Suit::cases( ), 'map' => ['mixed' => [Suit::Hearts, FooUnitEnum::BAR], 'single' => FooUnitEnum::BAR, ], ]) |
/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/ObjectsProvider.php:42 | 1 | return ['route_1' => new RouteStub('/hello/{name}', ['name' => 'Joseph'], ['name' => '[a-z]+'], ['opt1' => 'val1', 'opt2' => 'val2'], 'localhost', ['http', 'https'], ['get', 'head']), 'route_2' => new RouteStub('/name/add', [ ], [ ], ['opt1' => 'val1', 'opt2' => 'val2'], 'localhost', ['http', 'https'], ['put', 'post'], "context.getMethod() in ['GET', 'HEAD', 'POST']"), ] |
/src/Symfony/Bundle/WebProfilerBundle/EventListener/WebDebugToolbarListener.php:143 | 1 | $toolbar = "\n" . str_replace("\n", '', $this->twig->render('@WebProfiler/Profiler/toolbar_js.html.twig', ['full_stack' => class_exists(FullStack::class), 'excluded_ajax_paths' => $this->excludedAjaxPaths, 'token' => $response->headers->get('X-Debug-Token'), 'request' => $request, 'csp_script_nonce' => $nonces['csp_script_nonce'] ?? null, 'csp_style_nonce' => $nonces['csp_style_nonce'] ?? null, ])) . "\n" |
/src/Symfony/Bundle/SecurityBundle/Tests/Security/FirewallConfigTest.php:35 | 1 | $config = new FirewallConfig('foo_firewall', $options['user_checker'], $options['request_matcher'], $options['security'], $options['stateless'], $options['provider'], $options['context'], $options['entry_point'], $options['access_denied_handler'], $options['access_denied_url'], $authenticators, $options['switch_user']) |
/src/Symfony/Bundle/SecurityBundle/Tests/Functional/AbstractWebTestCase.php:62 | 1 | return new $class(static::getVarDir( ), $options['test_case'], $options['root_config'] ?? 'config.yml', $options['environment'] ?? strtolower(static::getVarDir( ) . $options['test_case']), $options['debug'] ?? false, ) |
/src/Symfony/Bundle/SecurityBundle/Tests/DataCollector/SecurityDataCollectorTest.php:269 | 1 | $expectedDecisionLog = [['attributes' => ['view'], 'object' => new \stdClass( ), 'result' => true, 'voter_details' => [['class' => $voter1::class, 'attributes' => ['view'], 'vote' => VoterInterface::ACCESS_ABSTAIN], ['class' => $voter2::class, 'attributes' => ['view'], 'vote' => VoterInterface::ACCESS_ABSTAIN], ], ]] |
/src/Symfony/Bundle/SecurityBundle/Tests/DataCollector/SecurityDataCollectorTest.php:357 | 1 | $expectedDecisionLog = [['attributes' => ['view', 'edit'], 'object' => new \stdClass( ), 'result' => false, 'voter_details' => [['class' => $voter1::class, 'attributes' => ['view'], 'vote' => VoterInterface::ACCESS_DENIED], ['class' => $voter1::class, 'attributes' => ['edit'], 'vote' => VoterInterface::ACCESS_DENIED], ['class' => $voter2::class, 'attributes' => ['view'], 'vote' => VoterInterface::ACCESS_GRANTED], ['class' => $voter2::class, 'attributes' => ['edit'], 'vote' => VoterInterface::ACCESS_GRANTED], ], ], ['attributes' => ['update'], 'object' => new \stdClass( ), 'result' => true, 'voter_details' => [['class' => $voter1::class, 'attributes' => ['update'], 'vote' => VoterInterface::ACCESS_GRANTED], ['class' => $voter2::class, 'attributes' => ['update'], 'vote' => VoterInterface::ACCESS_GRANTED], ], ], ] |
/src/Symfony/Bundle/SecurityBundle/DataCollector/SecurityDataCollector.php:115 | 1 | $this->data = ['enabled' => true, 'authenticated' => (bool) $token->getUser( ), 'impersonated' => null !== $impersonatorUser, 'impersonator_user' => $impersonatorUser, 'impersonation_exit_path' => null, 'token' => $token, 'token_class' => $this->hasVarDumper ? new ClassStub($token::class) : $token::class, 'logout_url' => $logoutUrl, 'user' => $token->getUserIdentifier( ), 'roles' => $assignedRoles, 'inherited_roles' => array_unique($inheritedRoles), 'supports_role_hierarchy' => null !== $this->roleHierarchy, ] |
/src/Symfony/Bundle/SecurityBundle/DataCollector/SecurityDataCollector.php:172 | 1 | $this->data['firewall'] = ['name' => $firewallConfig->getName( ), 'request_matcher' => $firewallConfig->getRequestMatcher( ), 'security_enabled' => $firewallConfig->isSecurityEnabled( ), 'stateless' => $firewallConfig->isStateless( ), 'provider' => $firewallConfig->getProvider( ), 'context' => $firewallConfig->getContext( ), 'entry_point' => $firewallConfig->getEntryPoint( ), 'access_denied_handler' => $firewallConfig->getAccessDeniedHandler( ), 'access_denied_url' => $firewallConfig->getAccessDeniedUrl( ), 'user_checker' => $firewallConfig->getUserChecker( ), 'authenticators' => $firewallConfig->getAuthenticators( ), ] |
/src/Symfony/Bundle/SecurityBundle/DataCollector/SecurityDataCollector.php:61 | 1 | $this->data = ['enabled' => false, 'authenticated' => false, 'impersonated' => false, 'impersonator_user' => null, 'impersonation_exit_path' => null, 'token' => null, 'token_class' => null, 'logout_url' => null, 'user' => '', 'roles' => [ ], 'inherited_roles' => [ ], 'supports_role_hierarchy' => null !== $this->roleHierarchy, ] |
/src/Symfony/Bundle/SecurityBundle/DataCollector/SecurityDataCollector.php:76 | 1 | $this->data = ['enabled' => true, 'authenticated' => false, 'impersonated' => false, 'impersonator_user' => null, 'impersonation_exit_path' => null, 'token' => null, 'token_class' => null, 'logout_url' => null, 'user' => '', 'roles' => [ ], 'inherited_roles' => [ ], 'supports_role_hierarchy' => null !== $this->roleHierarchy, ] |
/src/Symfony/Component/Console/Helper/ProgressBar.php:218 | 1 | return floor($this->max ? $this->percent * $this->barWidth : (null === $this->redrawFreq ? (int) (min(5, $this->barWidth / 15) * $this->writeCount) : $this->step) % $this->barWidth) |
/src/Symfony/Component/Console/Event/ConsoleErrorEvent.php:55 | 1 | return $this->exitCode ?? (\is_int($this->error->getCode( )) && 0 !== $this->error->getCode( ) ? $this->error->getCode( ) : 1) |
/src/Symfony/Component/Console/Descriptor/JsonDescriptor.php:155 | 1 | $data += ['usage' => array_merge([$command->getSynopsis( )], $command->getUsages( ), $command->getAliases( )), 'help' => $command->getProcessedHelp( ), 'definition' => $this->getInputDefinitionData($command->getDefinition( )), ] |
/src/Symfony/Component/Console/Helper/TableStyle.php:213 | 1 | return [$this->crossingChar, $this->crossingTopLeftChar, $this->crossingTopMidChar, $this->crossingTopRightChar, $this->crossingMidRightChar, $this->crossingBottomRightChar, $this->crossingBottomMidChar, $this->crossingBottomLeftChar, $this->crossingMidLeftChar, $this->crossingTopLeftBottomChar, $this->crossingTopMidBottomChar, $this->crossingTopRightBottomChar, ] |
/src/Symfony/Component/Console/Descriptor/JsonDescriptor.php:93 | 1 | return ['name' => $argument->getName( ), 'is_required' => $argument->isRequired( ), 'is_array' => $argument->isArray( ), 'description' => preg_replace('/\s*[\r\n]\s*/', ' ', $argument->getDescription( )), 'default' => \INF === $argument->getDefault( ) ? 'INF' : $argument->getDefault( ), ] |
/src/Symfony/Component/Console/Descriptor/JsonDescriptor.php:104 | 1 | return $negated ? ['name' => '--no-' . $option->getName( ), 'shortcut' => '', 'accept_value' => false, 'is_value_required' => false, 'is_multiple' => false, 'description' => 'Negate the "--' . $option->getName( ) . '" option', 'default' => false, ] : ['name' => '--' . $option->getName( ), 'shortcut' => $option->getShortcut( ) ? '-' . str_replace('|', '|-', $option->getShortcut( )) : '', 'accept_value' => $option->acceptValue( ), 'is_value_required' => $option->isValueRequired( ), 'is_multiple' => $option->isArray( ), 'description' => preg_replace('/\s*[\r\n]\s*/', ' ', $option->getDescription( )), 'default' => \INF === $option->getDefault( ) ? 'INF' : $option->getDefault( ), ] |
/src/Symfony/Component/Console/Descriptor/XmlDescriptor.php:179 | 1 | $defaults = \is_array($argument->getDefault( )) ? $argument->getDefault( ) : (\is_bool($argument->getDefault( )) ? [var_export($argument->getDefault( ), true)] : ($argument->getDefault( ) ? [$argument->getDefault( )] : [ ])) |
/src/Symfony/Component/Console/Descriptor/XmlDescriptor.php:208 | 1 | $defaults = \is_array($option->getDefault( )) ? $option->getDefault( ) : (\is_bool($option->getDefault( )) ? [var_export($option->getDefault( ), true)] : ($option->getDefault( ) ? [$option->getDefault( )] : [ ])) |
/src/Symfony/Component/Console/Descriptor/TextDescriptor.php:69 | 1 | $synopsis = sprintf('%s%s', $option->getShortcut( ) ? sprintf('-%s, ', $option->getShortcut( )) : ' ', sprintf($option->isNegatable( ) ? '--%1$s|--no-%1$s' : '--%1$s%2$s', $option->getName( ), $value)) |
/src/Symfony/Component/Console/Output/AnsiColorMode.php:100 | 1 | return 16 + (36 * (int) round($r / 255 * 5)) + (6 * (int) round($g / 255 * 5)) + (int) round($b / 255 * 5) |
/src/Symfony/Component/Console/Tests/Helper/TableTest.php:2060 | 1 | $table = (new Table($output = $this->getOutputStream( )))->setStyle($tableStyle)->setHeaderTitle('Title')->setHeaders(['Hello', 'World'])->setRows([[1, 2], [3, 4]])->setHorizontal(false) |
/src/Symfony/Component/Console/Tests/Helper/TableTest.php:2031 | 1 | $table = (new Table($output = $this->getOutputStream( )))->setStyle($tableStyle)->setHeaderTitle('Title')->setHeaders(['Hello', 'World'])->setRows([[1, 2], [3, 4]])->setHorizontal(true) |
/src/Symfony/Component/Console/Tests/Helper/TableTest.php:1806 | 1 | yield 'With colspans but no header' => [<<<EOTXT +--------------------------------------------------------------------------------+ | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor | |--------------------------------------------------------------------------------| | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor | |--------------------------------------------------------------------------------| | Lorem ipsum dolor sit amet, consectetur | | hello world | |--------------------------------------------------------------------------------| | hello world | | Lorem ipsum dolor sit amet, consectetur adipiscing elit | |--------------------------------------------------------------------------------| | hello | | world | | Lorem ipsum dolor sit amet, consectetur | |--------------------------------------------------------------------------------| | Symfony | | Test | | Lorem ipsum dolor sit amet, consectetur | +--------------------------------------------------------------------------------+ EOTXT, [ ], [[new TableCell('Lorem ipsum dolor sit amet, <fg=white;bg=green>consectetur</> adipiscing elit, <fg=white;bg=red>sed</> do <fg=white;bg=red>eiusmod</> tempor', ['colspan' => 3])], new TableSeparator( ), [new TableCell('Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor', ['colspan' => 3])], new TableSeparator( ), [new TableCell('Lorem ipsum <fg=white;bg=red>dolor</> sit amet, consectetur ', ['colspan' => 2]), 'hello world'], new TableSeparator( ), ['hello <fg=white;bg=green>world</>', new TableCell('Lorem ipsum dolor sit amet, <fg=white;bg=green>consectetur</> adipiscing elit', ['colspan' => 2])], new TableSeparator( ), ['hello ', new TableCell('world', ['colspan' => 1]), 'Lorem ipsum dolor sit amet, consectetur'], new TableSeparator( ), ['Symfony ', new TableCell('Test', ['colspan' => 1]), 'Lorem <fg=white;bg=green>ipsum</> dolor sit amet, consectetur'], ], ] |
/src/Symfony/Component/Console/Tests/Helper/TableTest.php:100 | 1 | return [[['ISBN', 'Title', 'Author'], $books, 'default', <<<'TABLE' +---------------+--------------------------+------------------+ | ISBN | Title | Author | +---------------+--------------------------+------------------+ | 99921-58-10-7 | Divine Comedy | Dante Alighieri | | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens | | 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien | | 80-902734-1-6 | And Then There Were None | Agatha Christie | +---------------+--------------------------+------------------+ TABLE], [['ISBN', 'Title', 'Author'], $books, 'compact', implode("\n", ['ISBN Title Author ', '99921-58-10-7 Divine Comedy Dante Alighieri ', '9971-5-0210-0 A Tale of Two Cities Charles Dickens ', '960-425-059-0 The Lord of the Rings J. R. R. Tolkien ', '80-902734-1-6 And Then There Were None Agatha Christie ', '', ]), ], [['ISBN', 'Title', 'Author'], $books, 'borderless', implode("\n", [' =============== ========================== ================== ', ' ISBN Title Author ', ' =============== ========================== ================== ', ' 99921-58-10-7 Divine Comedy Dante Alighieri ', ' 9971-5-0210-0 A Tale of Two Cities Charles Dickens ', ' 960-425-059-0 The Lord of the Rings J. R. R. Tolkien ', ' 80-902734-1-6 And Then There Were None Agatha Christie ', ' =============== ========================== ================== ', '', ]), ], [['ISBN', 'Title', 'Author'], $books, 'box', <<<'TABLE' ┌───────────────┬──────────────────────────┬──────────────────┐ │ ISBN │ Title │ Author │ ├───────────────┼──────────────────────────┼──────────────────┤ │ 99921-58-10-7 │ Divine Comedy │ Dante Alighieri │ │ 9971-5-0210-0 │ A Tale of Two Cities │ Charles Dickens │ │ 960-425-059-0 │ The Lord of the Rings │ J. R. R. Tolkien │ │ 80-902734-1-6 │ And Then There Were None │ Agatha Christie │ └───────────────┴──────────────────────────┴──────────────────┘ TABLE], [['ISBN', 'Title', 'Author'], [['99921-58-10-7', 'Divine Comedy', 'Dante Alighieri'], ['9971-5-0210-0', 'A Tale of Two Cities', 'Charles Dickens'], new TableSeparator( ), ['960-425-059-0', 'The Lord of the Rings', 'J. R. R. Tolkien'], ['80-902734-1-6', 'And Then There Were None', 'Agatha Christie'], ], 'box-double', <<<'TABLE' ╔═══════════════╤══════════════════════════╤══════════════════╗ ║ ISBN │ Title │ Author ║ ╠═══════════════╪══════════════════════════╪══════════════════╣ ║ 99921-58-10-7 │ Divine Comedy │ Dante Alighieri ║ ║ 9971-5-0210-0 │ A Tale of Two Cities │ Charles Dickens ║ ╟───────────────┼──────────────────────────┼──────────────────╢ ║ 960-425-059-0 │ The Lord of the Rings │ J. R. R. Tolkien ║ ║ 80-902734-1-6 │ And Then There Were None │ Agatha Christie ║ ╚═══════════════╧══════════════════════════╧══════════════════╝ TABLE], [['ISBN', 'Title'], [['99921-58-10-7', 'Divine Comedy', 'Dante Alighieri'], ['9971-5-0210-0'], ['960-425-059-0', 'The Lord of the Rings', 'J. R. R. Tolkien'], ['80-902734-1-6', 'And Then There Were None', 'Agatha Christie'], ], 'default', <<<'TABLE' +---------------+--------------------------+------------------+ | ISBN | Title | | +---------------+--------------------------+------------------+ | 99921-58-10-7 | Divine Comedy | Dante Alighieri | | 9971-5-0210-0 | | | | 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien | | 80-902734-1-6 | And Then There Were None | Agatha Christie | +---------------+--------------------------+------------------+ TABLE], [[ ], [['99921-58-10-7', 'Divine Comedy', 'Dante Alighieri'], ['9971-5-0210-0'], ['960-425-059-0', 'The Lord of the Rings', 'J. R. R. Tolkien'], ['80-902734-1-6', 'And Then There Were None', 'Agatha Christie'], ], 'default', <<<'TABLE' +---------------+--------------------------+------------------+ | 99921-58-10-7 | Divine Comedy | Dante Alighieri | | 9971-5-0210-0 | | | | 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien | | 80-902734-1-6 | And Then There Were None | Agatha Christie | +---------------+--------------------------+------------------+ TABLE], [['ISBN', 'Title', 'Author'], [['99921-58-10-7', "Divine\nComedy", 'Dante Alighieri'], ['9971-5-0210-2', "Harry Potter\nand the Chamber of Secrets", "Rowling\nJoanne K."], ['9971-5-0210-2', "Harry Potter\nand the Chamber of Secrets", "Rowling\nJoanne K."], ['960-425-059-0', 'The Lord of the Rings', "J. R. R.\nTolkien"], ], 'default', <<<'TABLE' +---------------+----------------------------+-----------------+ | ISBN | Title | Author | +---------------+----------------------------+-----------------+ | 99921-58-10-7 | Divine | Dante Alighieri | | | Comedy | | | 9971-5-0210-2 | Harry Potter | Rowling | | | and the Chamber of Secrets | Joanne K. | | 9971-5-0210-2 | Harry Potter | Rowling | | | and the Chamber of Secrets | Joanne K. | | 960-425-059-0 | The Lord of the Rings | J. R. R. | | | | Tolkien | +---------------+----------------------------+-----------------+ TABLE], [['ISBN', 'Title'], [ ], 'default', <<<'TABLE' +------+-------+ | ISBN | Title | +------+-------+ TABLE], [[ ], [ ], 'default', '', ], 'Cell text with tags used for Output styling' => [['ISBN', 'Title', 'Author'], [['<info>99921-58-10-7</info>', '<error>Divine Comedy</error>', '<fg=blue;bg=white>Dante Alighieri</fg=blue;bg=white>'], ['9971-5-0210-0', 'A Tale of Two Cities', '<info>Charles Dickens</>'], ], 'default', <<<'TABLE' +---------------+----------------------+-----------------+ | ISBN | Title | Author | +---------------+----------------------+-----------------+ | 99921-58-10-7 | Divine Comedy | Dante Alighieri | | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens | +---------------+----------------------+-----------------+ TABLE], 'Cell text with tags not used for Output styling' => [['ISBN', 'Title', 'Author'], [['<strong>99921-58-10-700</strong>', '<f>Divine Com</f>', 'Dante Alighieri'], ['9971-5-0210-0', 'A Tale of Two Cities', 'Charles Dickens'], ], 'default', <<<'TABLE' +----------------------------------+----------------------+-----------------+ | ISBN | Title | Author | +----------------------------------+----------------------+-----------------+ | <strong>99921-58-10-700</strong> | <f>Divine Com</f> | Dante Alighieri | | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens | +----------------------------------+----------------------+-----------------+ TABLE], 'Cell with colspan' => [['ISBN', 'Title', 'Author'], [['99921-58-10-7', 'Divine Comedy', 'Dante Alighieri'], new TableSeparator( ), [new TableCell('Divine Comedy(Dante Alighieri)', ['colspan' => 3])], new TableSeparator( ), [new TableCell('Arduino: A Quick-Start Guide', ['colspan' => 2]), 'Mark Schmidt', ], new TableSeparator( ), ['9971-5-0210-0', new TableCell("A Tale of \nTwo Cities", ['colspan' => 2]), ], new TableSeparator( ), [new TableCell('Cupìdĭtâte díctá âtquè pôrrò, tèmpórà exercitátìónèm mòdí ânìmí núllà nèmò vèl níhìl!', ['colspan' => 3]), ], ], 'default', <<<'TABLE' +-------------------------------+-------------------------------+-----------------------------+ | ISBN | Title | Author | +-------------------------------+-------------------------------+-----------------------------+ | 99921-58-10-7 | Divine Comedy | Dante Alighieri | +-------------------------------+-------------------------------+-----------------------------+ | Divine Comedy(Dante Alighieri) | +-------------------------------+-------------------------------+-----------------------------+ | Arduino: A Quick-Start Guide | Mark Schmidt | +-------------------------------+-------------------------------+-----------------------------+ | 9971-5-0210-0 | A Tale of | | | Two Cities | +-------------------------------+-------------------------------+-----------------------------+ | Cupìdĭtâte díctá âtquè pôrrò, tèmpórà exercitátìónèm mòdí ânìmí núllà nèmò vèl níhìl! | +-------------------------------+-------------------------------+-----------------------------+ TABLE], 'Cell after colspan contains new line break' => [['Foo', 'Bar', 'Baz'], [[new TableCell("foo\nbar", ['colspan' => 2]), "baz\nqux", ], ], 'default', <<<'TABLE' +-----+-----+-----+ | Foo | Bar | Baz | +-----+-----+-----+ | foo | baz | | bar | qux | +-----+-----+-----+ TABLE], 'Cell after colspan contains multiple new lines' => [['Foo', 'Bar', 'Baz'], [[new TableCell("foo\nbar", ['colspan' => 2]), "baz\nqux\nquux", ], ], 'default', <<<'TABLE' +-----+-----+------+ | Foo | Bar | Baz | +-----+-----+------+ | foo | baz | | bar | qux | | | quux | +-----+-----+------+ TABLE], 'Cell with rowspan' => [['ISBN', 'Title', 'Author'], [[new TableCell('9971-5-0210-0', ['rowspan' => 3]), new TableCell('Divine Comedy', ['rowspan' => 2]), 'Dante Alighieri', ], [ ], ["The Lord of \nthe Rings", "J. R. \nR. Tolkien"], new TableSeparator( ), ['80-902734-1-6', new TableCell("And Then \nThere \nWere None", ['rowspan' => 3]), 'Agatha Christie'], ['80-902734-1-7', 'Test'], ], 'default', <<<'TABLE' +---------------+---------------+-----------------+ | ISBN | Title | Author | +---------------+---------------+-----------------+ | 9971-5-0210-0 | Divine Comedy | Dante Alighieri | | | | | | | The Lord of | J. R. | | | the Rings | R. Tolkien | +---------------+---------------+-----------------+ | 80-902734-1-6 | And Then | Agatha Christie | | 80-902734-1-7 | There | Test | | | Were None | | +---------------+---------------+-----------------+ TABLE], 'Cell with rowspan and colspan' => [['ISBN', 'Title', 'Author'], [[new TableCell('9971-5-0210-0', ['rowspan' => 2, 'colspan' => 2]), 'Dante Alighieri', ], ['Charles Dickens'], new TableSeparator( ), ['Dante Alighieri', new TableCell('9971-5-0210-0', ['rowspan' => 3, 'colspan' => 2]), ], ['J. R. R. Tolkien'], ['J. R. R'], ], 'default', <<<'TABLE' +------------------+---------+-----------------+ | ISBN | Title | Author | +------------------+---------+-----------------+ | 9971-5-0210-0 | Dante Alighieri | | | Charles Dickens | +------------------+---------+-----------------+ | Dante Alighieri | 9971-5-0210-0 | | J. R. R. Tolkien | | | J. R. R | | +------------------+---------+-----------------+ TABLE], 'Cell with rowspan and colspan contains new line break' => [['ISBN', 'Title', 'Author'], [[new TableCell("9971\n-5-\n021\n0-0", ['rowspan' => 2, 'colspan' => 2]), 'Dante Alighieri', ], ['Charles Dickens'], new TableSeparator( ), ['Dante Alighieri', new TableCell("9971\n-5-\n021\n0-0", ['rowspan' => 2, 'colspan' => 2]), ], ['Charles Dickens'], new TableSeparator( ), [new TableCell("9971\n-5-\n021\n0-0", ['rowspan' => 2, 'colspan' => 2]), new TableCell("Dante \nAlighieri", ['rowspan' => 2, 'colspan' => 1]), ], ], 'default', <<<'TABLE' +-----------------+-------+-----------------+ | ISBN | Title | Author | +-----------------+-------+-----------------+ | 9971 | Dante Alighieri | | -5- | Charles Dickens | | 021 | | | 0-0 | | +-----------------+-------+-----------------+ | Dante Alighieri | 9971 | | Charles Dickens | -5- | | | 021 | | | 0-0 | +-----------------+-------+-----------------+ | 9971 | Dante | | -5- | Alighieri | | 021 | | | 0-0 | | +-----------------+-------+-----------------+ TABLE], 'Cell with rowspan and colspan without using TableSeparator' => [['ISBN', 'Title', 'Author'], [[new TableCell("9971\n-5-\n021\n0-0", ['rowspan' => 2, 'colspan' => 2]), 'Dante Alighieri', ], ['Charles Dickens'], ['Dante Alighieri', new TableCell("9971\n-5-\n021\n0-0", ['rowspan' => 2, 'colspan' => 2]), ], ['Charles Dickens'], ], 'default', <<<'TABLE' +-----------------+-------+-----------------+ | ISBN | Title | Author | +-----------------+-------+-----------------+ | 9971 | Dante Alighieri | | -5- | Charles Dickens | | 021 | | | 0-0 | | | Dante Alighieri | 9971 | | Charles Dickens | -5- | | | 021 | | | 0-0 | +-----------------+-------+-----------------+ TABLE], 'Cell with rowspan and colspan with separator inside a rowspan' => [['ISBN', 'Author'], [[new TableCell('9971-5-0210-0', ['rowspan' => 3, 'colspan' => 1]), 'Dante Alighieri', ], [new TableSeparator( )], ['Charles Dickens'], ], 'default', <<<'TABLE' +---------------+-----------------+ | ISBN | Author | +---------------+-----------------+ | 9971-5-0210-0 | Dante Alighieri | | |-----------------| | | Charles Dickens | +---------------+-----------------+ TABLE], 'Multiple header lines' => [[[new TableCell('Main title', ['colspan' => 3])], ['ISBN', 'Title', 'Author'], ], [ ], 'default', <<<'TABLE' +------+-------+--------+ | Main title | +------+-------+--------+ | ISBN | Title | Author | +------+-------+--------+ TABLE], 'Row with multiple cells' => [[ ], [[new TableCell('1', ['colspan' => 3]), new TableCell('2', ['colspan' => 2]), new TableCell('3', ['colspan' => 2]), new TableCell('4', ['colspan' => 2]), ], ], 'default', <<<'TABLE' +---+--+--+---+--+---+--+---+--+ | 1 | 2 | 3 | 4 | +---+--+--+---+--+---+--+---+--+ TABLE], 'Coslpan and table cells with comment style' => [[new TableCell('<comment>Long Title</comment>', ['colspan' => 3]), ], [[new TableCell('9971-5-0210-0', ['colspan' => 3]), ], new TableSeparator( ), ['Dante Alighieri', 'J. R. R. Tolkien', 'J. R. R', ], ], 'default', <<<TABLE +-----------------+------------------+---------+ |\033[32m \033[39m\033[33mLong Title\033[39m\033[32m \033[39m| +-----------------+------------------+---------+ | 9971-5-0210-0 | +-----------------+------------------+---------+ | Dante Alighieri | J. R. R. Tolkien | J. R. R | +-----------------+------------------+---------+ TABLE, true, ], 'Row with formatted cells containing a newline' => [[ ], [[new TableCell('<error>Dont break' . "\n" . 'here</error>', ['colspan' => 2]), ], new TableSeparator( ), ['foo', new TableCell('<error>Dont break' . "\n" . 'here</error>', ['rowspan' => 2]), ], ['bar', ], ], 'default', <<<'TABLE' +-------+------------+ [37;41m| [39;49m[37;41mDont break[39;49m[37;41m |[39;49m [37;41m| here[39;49m | +-------+------------+ [39;49m| foo | [39;49m[37;41mDont break[39;49m[39;49m |[39;49m [39;49m| bar | [39;49m[37;41mhere[39;49m | +-------+------------+ TABLE, true, ], 'TabeCellStyle with align. Also with rowspan and colspan > 1' => [[new TableCell('ISBN', ['style' => new TableCellStyle(['align' => 'right', ]), ]), 'Title', new TableCell('Author', ['style' => new TableCellStyle(['align' => 'center', ]), ]), ], [[new TableCell('<fg=red>978</>', ['style' => new TableCellStyle(['align' => 'center', ]), ]), 'De Monarchia', new TableCell("Dante Alighieri \nspans multiple rows rows Dante Alighieri \nspans multiple rows rows", ['rowspan' => 2, 'style' => new TableCellStyle(['align' => 'center', ]), ]), ], ['<info>99921-58-10-7</info>', 'Divine Comedy', ], new TableSeparator( ), [new TableCell('<error>test</error>', ['colspan' => 2, 'style' => new TableCellStyle(['align' => 'center', ]), ]), new TableCell('tttt', ['style' => new TableCellStyle(['align' => 'right', ]), ]), ], ], 'default', <<<'TABLE' +---------------+---------------+-------------------------------------------+ | ISBN | Title | Author | +---------------+---------------+-------------------------------------------+ | 978 | De Monarchia | Dante Alighieri | | 99921-58-10-7 | Divine Comedy | spans multiple rows rows Dante Alighieri | | | | spans multiple rows rows | +---------------+---------------+-------------------------------------------+ | test | tttt | +---------------+---------------+-------------------------------------------+ TABLE, ], 'TabeCellStyle with fg,bg. Also with rowspan and colspan > 1' => [[ ], [[new TableCell('<fg=red>978</>', ['style' => new TableCellStyle(['fg' => 'black', 'bg' => 'green', ]), ]), 'De Monarchia', new TableCell("Dante Alighieri \nspans multiple rows rows Dante Alighieri \nspans multiple rows rows", ['rowspan' => 2, 'style' => new TableCellStyle(['fg' => 'red', 'bg' => 'green', 'align' => 'center', ]), ]), ], ['<info>99921-58-10-7</info>', 'Divine Comedy', ], new TableSeparator( ), [new TableCell('<error>test</error>', ['colspan' => 2, 'style' => new TableCellStyle(['fg' => 'red', 'bg' => 'green', 'align' => 'center', ]), ]), new TableCell('tttt', ['style' => new TableCellStyle(['fg' => 'red', 'bg' => 'green', 'align' => 'right', ]), ]), ], ], 'default', <<<'TABLE' +---------------+---------------+-------------------------------------------+ [39;49m| [39;49m[31m978[39m[39;49m | De Monarchia |[39;49m[31;42m Dante Alighieri [39;49m[39;49m|[39;49m [39;49m| [39;49m[32m99921-58-10-7[39m[39;49m | Divine Comedy |[39;49m[31;42m spans multiple rows rows Dante Alighieri [39;49m[39;49m|[39;49m | | |[31;42m spans multiple rows rows [39;49m| +---------------+---------------+-------------------------------------------+ | [37;41mtest[39;49m |[31;42m tttt [39;49m| +---------------+---------------+-------------------------------------------+ TABLE, true, ], 'TabeCellStyle with cellFormat. Also with rowspan and colspan > 1' => [[new TableCell('ISBN', ['style' => new TableCellStyle(['cellFormat' => '<fg=black;bg=cyan>%s</>', ]), ]), 'Title', 'Author', ], [['978-0521567817', 'De Monarchia', new TableCell("Dante Alighieri\nspans multiple rows", ['rowspan' => 2, 'style' => new TableCellStyle(['cellFormat' => '<info>%s</info>', ]), ]), ], ['978-0804169127', 'Divine Comedy'], [new TableCell('test', ['colspan' => 2, 'style' => new TableCellStyle(['cellFormat' => '<error>%s</error>', ]), ]), 'tttt', ], ], 'default', <<<'TABLE' +----------------+---------------+---------------------+ |[30;46m ISBN [39;49m|[32m Title [39m|[32m Author [39m| +----------------+---------------+---------------------+ [39;49m| 978-0521567817 | De Monarchia |[39;49m[32m Dante Alighieri [39m[39;49m|[39;49m | 978-0804169127 | Divine Comedy |[32m spans multiple rows [39m| |[37;41m test [39;49m| tttt | +----------------+---------------+---------------------+ TABLE, true, ], ] |
/src/Symfony/Component/Console/Tests/Helper/ProcessHelperTest.php:103 | 1 | return [['', 'php -r "echo 42;"', StreamOutput::VERBOSITY_VERBOSE, null], [$successOutputVerbose, 'php -r "echo 42;"', StreamOutput::VERBOSITY_VERY_VERBOSE, null], [$successOutputDebug, 'php -r "echo 42;"', StreamOutput::VERBOSITY_DEBUG, null], [$successOutputDebugWithTags, 'php -r "echo \'<info>42</info>\';"', StreamOutput::VERBOSITY_DEBUG, null], ['', 'php -r "syntax error"', StreamOutput::VERBOSITY_VERBOSE, null], [$syntaxErrorOutputVerbose, 'php -r "fwrite(STDERR, \'error message\');usleep(50000);fwrite(STDOUT, \'out message\');exit(252);"', StreamOutput::VERBOSITY_VERY_VERBOSE, null], [$syntaxErrorOutputDebug, 'php -r "fwrite(STDERR, \'error message\');usleep(500000);fwrite(STDOUT, \'out message\');exit(252);"', StreamOutput::VERBOSITY_DEBUG, null], [$errorMessage . \PHP_EOL, 'php -r "fwrite(STDERR, \'error message\');usleep(50000);fwrite(STDOUT, \'out message\');exit(252);"', StreamOutput::VERBOSITY_VERBOSE, $errorMessage], [$syntaxErrorOutputVerbose . $errorMessage . \PHP_EOL, 'php -r "fwrite(STDERR, \'error message\');usleep(50000);fwrite(STDOUT, \'out message\');exit(252);"', StreamOutput::VERBOSITY_VERY_VERBOSE, $errorMessage], [$syntaxErrorOutputDebug . $errorMessage . \PHP_EOL, 'php -r "fwrite(STDERR, \'error message\');usleep(500000);fwrite(STDOUT, \'out message\');exit(252);"', StreamOutput::VERBOSITY_DEBUG, $errorMessage], [$successOutputProcessDebug, ['php', '-r', 'echo 42;'], StreamOutput::VERBOSITY_DEBUG, null], [$successOutputDebug, Process::fromShellCommandline('php -r "echo 42;"'), StreamOutput::VERBOSITY_DEBUG, null], [$successOutputProcessDebug, [new Process(['php', '-r', 'echo 42;'])], StreamOutput::VERBOSITY_DEBUG, null], [$successOutputPhp, [Process::fromShellCommandline('php -r ' . $PHP), 'PHP' => 'echo 42;'], StreamOutput::VERBOSITY_DEBUG, null], ] |
/src/Symfony/Component/Console/Tests/Descriptor/ObjectsProvider.php:56 | 1 | return ['input_definition_1' => new InputDefinition( ), 'input_definition_2' => new InputDefinition([new InputArgument('argument_name', InputArgument::REQUIRED)]), 'input_definition_3' => new InputDefinition([new InputOption('option_name', 'o', InputOption::VALUE_NONE)]), 'input_definition_4' => new InputDefinition([new InputArgument('argument_name', InputArgument::REQUIRED), new InputOption('option_name', 'o', InputOption::VALUE_NONE), ]), ] |
/src/Symfony/Component/Console/Tests/Descriptor/ObjectsProvider.php:41 | 1 | return ['input_option_1' => new InputOption('option_name', 'o', InputOption::VALUE_NONE), 'input_option_2' => new InputOption('option_name', 'o', InputOption::VALUE_OPTIONAL, 'option description', 'default_value'), 'input_option_3' => new InputOption('option_name', 'o', InputOption::VALUE_REQUIRED, 'option description'), 'input_option_4' => new InputOption('option_name', 'o', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'option description', [ ]), 'input_option_5' => new InputOption('option_name', 'o', InputOption::VALUE_REQUIRED, "multiline\noption description"), 'input_option_6' => new InputOption('option_name', ['o', 'O'], InputOption::VALUE_REQUIRED, 'option with multiple shortcuts'), 'input_option_with_style' => new InputOption('option_name', 'o', InputOption::VALUE_REQUIRED, 'option description', '<comment>style</>'), 'input_option_with_style_array' => new InputOption('option_name', 'o', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'option description', ['<comment>Hello</comment>', '<info>world</info>']), 'input_option_with_default_inf_value' => new InputOption('option_name', 'o', InputOption::VALUE_OPTIONAL, 'option description', \INF), ] |
/src/Symfony/Component/Console/Tests/Descriptor/ObjectsProvider.php:29 | 1 | return ['input_argument_1' => new InputArgument('argument_name', InputArgument::REQUIRED), 'input_argument_2' => new InputArgument('argument_name', InputArgument::IS_ARRAY, 'argument description'), 'input_argument_3' => new InputArgument('argument_name', InputArgument::OPTIONAL, 'argument description', 'default_value'), 'input_argument_4' => new InputArgument('argument_name', InputArgument::REQUIRED, "multiline\nargument description"), 'input_argument_with_style' => new InputArgument('argument_name', InputArgument::OPTIONAL, 'argument description', '<comment>style</>'), 'input_argument_with_default_inf_value' => new InputArgument('argument_name', InputArgument::OPTIONAL, 'argument description', \INF), ] |
/src/Symfony/Component/Console/Tests/Question/QuestionTest.php:109 | 1 | return ['array' => [['a', 'b', 'c', 'd'], ['a', 'b', 'c', 'd'], ], 'associative array' => [['a' => 'c', 'b' => 'd'], ['a', 'b', 'c', 'd'], ], 'iterator' => [new \ArrayIterator(['a', 'b', 'c', 'd']), ['a', 'b', 'c', 'd'], ], 'null' => [null, null], ] |
/src/Symfony/Component/Console/Tests/Completion/CompletionInputTest.php:27 | 1 | $definition = new InputDefinition([new InputOption('with-required-value', 'r', InputOption::VALUE_REQUIRED), new InputOption('with-optional-value', 'o', InputOption::VALUE_OPTIONAL), new InputOption('without-value', 'n', InputOption::VALUE_NONE), new InputArgument('required-arg', InputArgument::REQUIRED), new InputArgument('optional-arg', InputArgument::OPTIONAL), ]) |
/src/Symfony/Component/Console/Tests/Input/ArrayInputTest.php:138 | 1 | return [[['foo' => 'foo'], new InputDefinition([new InputArgument('name')]), 'The "foo" argument does not exist.', ], [['--foo' => null], new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_REQUIRED)]), 'The "--foo" option requires a value.', ], [['--foo' => 'foo'], new InputDefinition( ), 'The "--foo" option does not exist.', ], [['-o' => 'foo'], new InputDefinition( ), 'The "-o" option does not exist.', ], ] |
/src/Symfony/Component/Console/Tests/Input/ArrayInputTest.php:79 | 1 | return [[['--foo' => 'bar'], [new InputOption('foo')], ['foo' => 'bar'], '->parse() parses long options', ], [['--foo' => 'bar'], [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL, '', 'default')], ['foo' => 'bar'], '->parse() parses long options with a default value', ], [[ ], [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL, '', 'default')], ['foo' => 'default'], '->parse() uses the default value for long options with value optional which are not passed', ], [['--foo' => null], [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL, '', 'default')], ['foo' => null], '->parse() parses long options with a default value', ], [['-f' => 'bar'], [new InputOption('foo', 'f')], ['foo' => 'bar'], '->parse() parses short options', ], [['--' => null, '-f' => 'bar'], [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL, '', 'default')], ['foo' => 'default'], '->parse() does not parse opts after an end of options signal', ], [['--' => null], [ ], [ ], '->parse() does not choke on end of options signal', ], ] |
/src/Symfony/Component/Console/Tests/Input/InputDefinitionTest.php:372 | 1 | return [[new InputDefinition([new InputOption('foo')]), '[--foo]', 'puts optional options in square brackets'], [new InputDefinition([new InputOption('foo', 'f')]), '[-f|--foo]', 'separates shortcut with a pipe'], [new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_REQUIRED)]), '[-f|--foo FOO]', 'uses shortcut as value placeholder'], [new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL)]), '[-f|--foo [FOO]]', 'puts optional values in square brackets'], [new InputDefinition([new InputArgument('foo', InputArgument::REQUIRED)]), '<foo>', 'puts arguments in angle brackets'], [new InputDefinition([new InputArgument('foo')]), '[<foo>]', 'puts optional arguments in square brackets'], [new InputDefinition([new InputArgument('foo'), new InputArgument('bar')]), '[<foo> [<bar>]]', 'chains optional arguments inside brackets'], [new InputDefinition([new InputArgument('foo', InputArgument::IS_ARRAY)]), '[<foo>...]', 'uses an ellipsis for array arguments'], [new InputDefinition([new InputArgument('foo', InputArgument::REQUIRED | InputArgument::IS_ARRAY)]), '<foo>...', 'uses an ellipsis for required array arguments'], [new InputDefinition([new InputOption('foo'), new InputArgument('foo', InputArgument::REQUIRED)]), '[--foo] [--] <foo>', 'puts [--] between options and arguments'], ] |
/src/Symfony/Component/Console/Tests/Input/InputDefinitionTest.php:341 | 1 | $definition = new InputDefinition([new InputOption('foo1', null, InputOption::VALUE_NONE), new InputOption('foo2', null, InputOption::VALUE_REQUIRED), new InputOption('foo3', null, InputOption::VALUE_REQUIRED, '', 'default'), new InputOption('foo4', null, InputOption::VALUE_OPTIONAL), new InputOption('foo5', null, InputOption::VALUE_OPTIONAL, '', 'default'), new InputOption('foo6', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY), new InputOption('foo7', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, '', [1, 2]), ]) |
/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php:159 | 1 | $config = $processor->processConfiguration($configuration, [['http_method_override' => false, 'handle_all_throwables' => true, 'php_errors' => ['log' => true], 'asset_mapper' => null === $polyfillValue ? [ ] : ['importmap_polyfill' => $polyfillValue, ], ]]) |
/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php:338 | 1 | $config = $processor->processConfiguration($configuration, [['http_method_override' => false, 'handle_all_throwables' => true, 'php_errors' => ['log' => true], 'lock' => ['payload' => 'flock', ], ], ['http_method_override' => false, 'handle_all_throwables' => true, 'php_errors' => ['log' => true], 'lock' => ['payload' => 'semaphore', ], ], ]) |
/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php:450 | 1 | $config = $processor->processConfiguration($configuration, [['http_method_override' => false, 'handle_all_throwables' => true, 'php_errors' => ['log' => true], 'messenger' => ['default_bus' => 'existing_bus', 'buses' => ['existing_bus' => ['middleware' => 'existing_bus.middleware', ], 'common_bus' => ['default_middleware' => false, 'middleware' => 'common_bus.old_middleware', ], ], ], ], ['http_method_override' => false, 'handle_all_throwables' => true, 'php_errors' => ['log' => true], 'messenger' => ['buses' => ['common_bus' => ['middleware' => 'common_bus.new_middleware', ], 'new_bus' => ['middleware' => 'new_bus.middleware', ], ], ], ], ]) |
/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php:571 | 1 | return ['http_method_override' => false, 'handle_all_throwables' => true, 'trust_x_sendfile_type_header' => false, 'ide' => '%env(default::SYMFONY_IDE)%', 'default_locale' => 'en', 'enabled_locales' => [ ], 'set_locale_from_accept_language' => false, 'set_content_language_from_locale' => false, 'secret' => 's3cr3t', 'trusted_hosts' => [ ], 'trusted_headers' => ['x-forwarded-for', 'x-forwarded-port', 'x-forwarded-proto', ], 'csrf_protection' => ['enabled' => false, ], 'form' => ['enabled' => !class_exists(FullStack::class), 'csrf_protection' => ['enabled' => null, 'field_name' => '_token', ], ], 'esi' => ['enabled' => false], 'ssi' => ['enabled' => false], 'fragments' => ['enabled' => false, 'path' => '/_fragment', 'hinclude_default_template' => null, ], 'profiler' => ['enabled' => false, 'only_exceptions' => false, 'only_main_requests' => false, 'dsn' => 'file:%kernel.cache_dir%/profiler', 'collect' => true, 'collect_parameter' => null, 'collect_serializer_data' => false, ], 'translator' => ['enabled' => !class_exists(FullStack::class), 'fallbacks' => [ ], 'cache_dir' => '%kernel.cache_dir%/translations', 'logging' => false, 'formatter' => 'translator.formatter.default', 'paths' => [ ], 'default_path' => '%kernel.project_dir%/translations', 'pseudo_localization' => ['enabled' => false, 'accents' => true, 'expansion_factor' => 1.0, 'brackets' => true, 'parse_html' => false, 'localizable_html_attributes' => [ ], ], 'providers' => [ ], ], 'validation' => ['enabled' => !class_exists(FullStack::class), 'enable_attributes' => !class_exists(FullStack::class), 'static_method' => ['loadValidatorMetadata'], 'translation_domain' => 'validators', 'mapping' => ['paths' => [ ], ], 'auto_mapping' => [ ], 'not_compromised_password' => ['enabled' => true, 'endpoint' => null, ], 'email_validation_mode' => 'html5', ], 'annotations' => ['enabled' => false, ], 'serializer' => ['default_context' => ['foo' => 'bar', JsonDecode::DETAILED_ERROR_MESSAGES => true], 'enabled' => true, 'enable_attributes' => !class_exists(FullStack::class), 'mapping' => ['paths' => [ ]], ], 'property_access' => ['enabled' => true, 'magic_call' => false, 'magic_get' => true, 'magic_set' => true, 'throw_exception_on_invalid_index' => false, 'throw_exception_on_invalid_property_path' => true, ], 'property_info' => ['enabled' => !class_exists(FullStack::class), ], 'router' => ['enabled' => false, 'default_uri' => null, 'http_port' => 80, 'https_port' => 443, 'strict_requirements' => true, 'utf8' => true, 'cache_dir' => '%kernel.cache_dir%', ], 'session' => ['enabled' => false, 'storage_factory_id' => 'session.storage.factory.native', 'cookie_httponly' => true, 'cookie_samesite' => 'lax', 'cookie_secure' => 'auto', 'gc_probability' => 1, 'metadata_update_threshold' => 0, ], 'request' => ['enabled' => false, 'formats' => [ ], ], 'assets' => ['enabled' => !class_exists(FullStack::class), 'version_strategy' => null, 'version' => null, 'version_format' => '%%s?%%s', 'base_path' => '', 'base_urls' => [ ], 'packages' => [ ], 'json_manifest_path' => null, 'strict_mode' => false, ], 'asset_mapper' => ['enabled' => !class_exists(FullStack::class), 'paths' => [ ], 'excluded_patterns' => [ ], 'server' => true, 'public_prefix' => '/assets/', 'missing_import_mode' => 'warn', 'extensions' => [ ], 'importmap_path' => '%kernel.project_dir%/importmap.php', 'importmap_polyfill' => 'es-module-shims', 'vendor_dir' => '%kernel.project_dir%/assets/vendor', 'importmap_script_attributes' => [ ], 'exclude_dotfiles' => true, ], 'cache' => ['pools' => [ ], 'app' => 'cache.adapter.filesystem', 'system' => 'cache.adapter.system', 'directory' => '%kernel.cache_dir%/pools/app', 'default_redis_provider' => 'redis://localhost', 'default_memcached_provider' => 'memcached://localhost', 'default_doctrine_dbal_provider' => 'database_connection', 'default_pdo_provider' => ContainerBuilder::willBeAvailable('doctrine/dbal', Connection::class, ['symfony/framework-bundle']) && class_exists(DoctrineAdapter::class) ? 'database_connection' : null, 'prefix_seed' => '_%kernel.project_dir%.%kernel.container_class%', ], 'workflows' => ['enabled' => false, 'workflows' => [ ], ], 'php_errors' => ['log' => true, 'throw' => true, ], 'web_link' => ['enabled' => !class_exists(FullStack::class), ], 'lock' => ['enabled' => !class_exists(FullStack::class), 'resources' => ['default' => [class_exists(SemaphoreStore::class) && SemaphoreStore::isSupported( ) ? 'semaphore' : 'flock', ], ], ], 'semaphore' => ['enabled' => !class_exists(FullStack::class), 'resources' => [ ], ], 'messenger' => ['enabled' => !class_exists(FullStack::class) && interface_exists(MessageBusInterface::class), 'routing' => [ ], 'transports' => [ ], 'failure_transport' => null, 'serializer' => ['default_serializer' => 'messenger.transport.native_php_serializer', 'symfony_serializer' => ['format' => 'json', 'context' => [ ], ], ], 'default_bus' => null, 'buses' => ['messenger.bus.default' => ['default_middleware' => ['enabled' => true, 'allow_no_handlers' => false, 'allow_no_senders' => true], 'middleware' => [ ]]], 'stop_worker_on_signals' => [ ], ], 'disallow_search_engine_index' => true, 'http_client' => ['enabled' => !class_exists(FullStack::class) && class_exists(HttpClient::class), 'scoped_clients' => [ ], ], 'mailer' => ['dsn' => null, 'transports' => [ ], 'enabled' => !class_exists(FullStack::class) && class_exists(Mailer::class), 'message_bus' => null, 'headers' => [ ], ], 'notifier' => ['enabled' => !class_exists(FullStack::class) && class_exists(Notifier::class), 'message_bus' => null, 'chatter_transports' => [ ], 'texter_transports' => [ ], 'channel_policy' => [ ], 'admin_recipients' => [ ], 'notification_on_failed_messages' => false, ], 'error_controller' => 'error_controller', 'secrets' => ['enabled' => true, 'vault_directory' => '%kernel.project_dir%/config/secrets/%kernel.runtime_environment%', 'local_dotenv_file' => '%kernel.project_dir%/.env.%kernel.environment%.local', 'decryption_env_var' => 'base64:default::SYMFONY_DECRYPTION_SECRET', ], 'http_cache' => ['enabled' => false, 'debug' => '%kernel.debug%', 'private_headers' => [ ], 'skip_response_headers' => [ ], ], 'rate_limiter' => ['enabled' => !class_exists(FullStack::class) && class_exists(TokenBucketLimiter::class), 'limiters' => [ ], ], 'uid' => ['enabled' => !class_exists(FullStack::class) && class_exists(UuidFactory::class), 'default_uuid_version' => 7, 'name_based_uuid_version' => 5, 'time_based_uuid_version' => 7, ], 'html_sanitizer' => ['enabled' => !class_exists(FullStack::class) && class_exists(HtmlSanitizer::class), 'sanitizers' => [ ], ], 'scheduler' => ['enabled' => !class_exists(FullStack::class) && class_exists(SchedulerTransportFactory::class), ], 'exceptions' => [ ], 'webhook' => ['enabled' => false, 'routing' => [ ], 'message_bus' => 'messenger.default_bus', ], 'remote-event' => ['enabled' => false, ], ] |
/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTestCase.php:1594 | 1 | $expectedLoaders = [new Definition(XmlFileLoader::class, [$configDir . '/serialization.xml']), new Definition(YamlFileLoader::class, [$configDir . '/serialization.yml']), new Definition(YamlFileLoader::class, [$projectDir . '/config/serializer/foo.yml']), new Definition(XmlFileLoader::class, [$configDir . '/serializer_mapping/files/foo.xml']), new Definition(YamlFileLoader::class, [$configDir . '/serializer_mapping/files/foo.yml']), new Definition(YamlFileLoader::class, [$configDir . '/serializer_mapping/serialization.yml']), new Definition(YamlFileLoader::class, [$configDir . '/serializer_mapping/serialization.yaml']), ] |
/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTestCase.php:1704 | 1 | $expected = [[(new ChildDefinition('cache.adapter.array'))->replaceArgument(0, 12), (new ChildDefinition('cache.adapter.filesystem'))->replaceArgument(0, $expectedSeed)->replaceArgument(1, 12), (new ChildDefinition('cache.adapter.redis'))->replaceArgument(0, new Reference('.cache_connection.' . (\count((new \ReflectionMethod(ContainerConfigurator::class, 'extension'))->getParameters( )) > 2 ? 'U5HliuY' : 'kYdiLgf')))->replaceArgument(1, $expectedSeed)->replaceArgument(2, 12), ], 12, ] |
/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTestCase.php:2323 | 1 | return new ContainerBuilder(new EnvPlaceholderParameterBag(array_merge(['kernel.bundles' => ['FrameworkBundle' => FrameworkBundle::class], 'kernel.bundles_metadata' => ['FrameworkBundle' => ['namespace' => 'Symfony\\Bundle\\FrameworkBundle', 'path' => __DIR__ . '/../..']], 'kernel.cache_dir' => __DIR__, 'kernel.build_dir' => __DIR__, 'kernel.project_dir' => __DIR__, 'kernel.debug' => false, 'kernel.environment' => 'test', 'kernel.runtime_mode.web' => true, 'kernel.name' => 'kernel', 'kernel.container_class' => 'testContainer', 'container.build_hash' => 'Abc1234', 'container.build_id' => hash('crc32', 'Abc123423456789'), 'container.build_time' => 23456789, ], $data))) |
/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php:38 | 1 | $config = $processor->processConfiguration(new Configuration(true), [['http_method_override' => false, 'handle_all_throwables' => true, 'php_errors' => ['log' => true], 'secret' => 's3cr3t', 'serializer' => ['default_context' => ['foo' => 'bar']], ]]) |
/src/Symfony/Bundle/FrameworkBundle/Tests/Controller/RedirectControllerTest.php:363 | 1 | return new Request($query, [ ], [ ], [ ], [ ], ['HTTPS' => 'https' === $scheme, 'HTTP_HOST' => $host . ($port ? ':' . $port : ''), 'SERVER_PORT' => $port, 'SCRIPT_FILENAME' => $baseUrl, 'REQUEST_URI' => $baseUrl, 'QUERY_STRING' => $queryString, ]) |
/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Messenger/DummySchedule.php:20 | 1 | return (new Schedule( ))->add(...self::$recurringMessages)->stateful(new ArrayAdapter( ))->lock(new Lock(new Key('dummy'), new InMemoryStore( ))) |
/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTestCase.php:912 | 1 | $expectedTransportsByFailureTransports = ['failure_transport_1' => new Reference('messenger.transport.failure_transport_global'), 'failure_transport_3' => new Reference('messenger.transport.failure_transport_global'), 'failure_transport_global' => new Reference('messenger.transport.failure_transport_global'), 'transport_1' => new Reference('messenger.transport.failure_transport_1'), 'transport_2' => new Reference('messenger.transport.failure_transport_global'), 'transport_3' => new Reference('messenger.transport.failure_transport_3'), ] |
/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTestCase.php:986 | 1 | $expectedTransportsByFailureTransports = ['beanstalkd' => new Reference('messenger.transport.failed'), 'customised' => new Reference('messenger.transport.failed'), 'default' => new Reference('messenger.transport.failed'), 'failed' => new Reference('messenger.transport.failed'), 'redis' => new Reference('messenger.transport.failed'), 'schedule' => new Reference('messenger.transport.failed'), ] |
/src/Symfony/Bundle/FrameworkBundle/Tests/Translation/TranslatorTest.php:237 | 1 | $translator = $this->getTranslator(new YamlFileLoader( ), ['cache_dir' => $this->tmpDir, 'resource_files' => ['fr' => [__DIR__ . '/../Fixtures/Resources/translations/messages.fr.yml', __DIR__ . '/../Fixtures/Resources/translations2/ccc.fr.yml', ], ], 'cache_vary' => ['scanned_directories' => ['/Fixtures/Resources/translations/', '/Fixtures/Resources/translations2/', ], ], ], 'yml') |
/src/Symfony/Bundle/FrameworkBundle/Tests/CacheWarmer/ConfigBuilderCacheWarmerTest.php:413 | 1 | $firewallNodeBuilder = $rootNode->fixXmlConfig('firewall')->children( )->arrayNode('firewalls')->isRequired( )->requiresAtLeastOneElement( )->useAttributeAsKey('name')->prototype('array')->children( ) |
/src/Symfony/Bundle/FrameworkBundle/Tests/CacheWarmer/SerializerCacheWarmerTest.php:45 | 1 | return [[[new LoaderChain([new XmlFileLoader(__DIR__ . '/../Fixtures/Serialization/Resources/person.xml'), new YamlFileLoader(__DIR__ . '/../Fixtures/Serialization/Resources/author.yml'), ]), ], ], [[new XmlFileLoader(__DIR__ . '/../Fixtures/Serialization/Resources/person.xml'), new YamlFileLoader(__DIR__ . '/../Fixtures/Serialization/Resources/author.yml'), ], ], ] |
/src/Symfony/Bundle/FrameworkBundle/Tests/Controller/RedirectControllerTest.php:72 | 1 | $attributes = ['route' => $route, 'permanent' => $permanent, '_route' => 'current-route', '_route_params' => ['route' => $route, 'permanent' => $permanent, 'additional-parameter' => 'value', 'ignoreAttributes' => $ignoreAttributes, 'keepRequestMethod' => $keepRequestMethod, 'keepQueryParams' => $keepQueryParams, ], ] |
/src/Symfony/Bundle/SecurityBundle/Debug/TraceableListenerTrait.php:45 | 1 | return ['response' => $this->response, 'time' => $this->time, 'stub' => $this->stub ??= ClassStub::wrapCallable($this->listener instanceof TraceableAuthenticatorManagerListener ? $this->listener->getAuthenticatorManagerListener( ) : $this->listener), ] |
/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/FormLoginFactory.php:55 | 2 | $authenticator = $container->setDefinition($authenticatorId, new ChildDefinition('security.authenticator.form_login'))->replaceArgument(1, new Reference($userProviderId))->replaceArgument(2, new Reference($this->createAuthenticationSuccessHandler($container, $firewallName, $config)))->replaceArgument(3, new Reference($this->createAuthenticationFailureHandler($container, $firewallName, $config)))->replaceArgument(4, $options) |
/src/Symfony/Bundle/FrameworkBundle/Tests/Translation/TranslatorTest.php:220 | 1 | $translator = $this->getTranslator(new YamlFileLoader( ), ['cache_dir' => $this->tmpDir, 'resource_files' => ['fr' => [__DIR__ . '/../Fixtures/Resources/translations/messages.fr.yml', ], ], 'cache_vary' => ['scanned_directories' => ['/Fixtures/Resources/translations/', ], ], ], 'yml') |
/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/TwigExtensionTest.php:295 | 1 | $container = new ContainerBuilder(new ParameterBag(['kernel.cache_dir' => __DIR__, 'kernel.project_dir' => __DIR__, 'kernel.charset' => 'UTF-8', 'kernel.debug' => false, 'kernel.bundles' => ['AcmeBundle' => AcmeBundle::class, ], 'kernel.bundles_metadata' => ['AcmeBundle' => ['namespace' => 'Symfony\Bundle\TwigBundle\Tests\DependencyInjection\AcmeBundle', 'path' => __DIR__ . '/AcmeBundle', ], ], ])) |
/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/AccessToken/OidcTokenHandlerFactory.php:28 | 1 | $tokenHandlerDefinition = $container->setDefinition($id, (new ChildDefinition('security.access_token_handler.oidc'))->replaceArgument(2, $config['audience'])->replaceArgument(3, $config['issuers'])->replaceArgument(4, $config['claim'])) |
/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php:775 | 1 | return ['class' => NativePasswordHasher::class, 'arguments' => [$config['time_cost'], (($config['memory_cost'] ?? 0) << 10) ?: null, $config['cost'], ] + (isset($config['native_algorithm']) ? [3 => $config['native_algorithm']] : [ ]), ] |
/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AccessTokenFactory.php:63 | 1 | $tokenHandlerNodeBuilder = $builder->arrayNode('token_handler')->example(['id' => 'App\Security\CustomTokenHandler', ])->beforeNormalization( )->ifString( )->then(fn ($v) => ['id' => $v])->end( )->beforeNormalization( )->ifTrue(fn ($v) => \is_array($v) && 1 < \count($v))->then(fn ( ) => throw new InvalidConfigurationException('You cannot configure multiple token handlers.'))->end( )->isRequired( )->beforeNormalization( )->ifTrue(fn ($v) => \is_array($v) && !$v)->then(fn ( ) => throw new InvalidConfigurationException('You must set a token handler.'))->end( )->children( ) |
/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/HttpBasicLdapFactory.php:36 | 1 | $definition = $container->setDefinition($provider, new ChildDefinition('security.authentication.provider.ldap_bind'))->replaceArgument(0, new Reference($userProvider))->replaceArgument(1, new Reference('security.user_checker.' . $id))->replaceArgument(2, $id)->replaceArgument(3, new Reference($config['service']))->replaceArgument(4, $config['dn_string'])->replaceArgument(6, $config['search_dn'])->replaceArgument(7, $config['search_password']) |
/src/Symfony/Bundle/SecurityBundle/Command/DebugFirewallCommand.php:137 | 1 | $rows = [['Name', $name], ['Context', $context->getConfig( )->getContext( )], ['Lazy', $context instanceof LazyFirewallContext ? 'Yes' : 'No'], ['Stateless', $context->getConfig( )->isStateless( ) ? 'Yes' : 'No'], ['User Checker', $context->getConfig( )->getUserChecker( )], ['Provider', $context->getConfig( )->getProvider( )], ['Entry Point', $context->getConfig( )->getEntryPoint( )], ['Access Denied URL', $context->getConfig( )->getAccessDeniedUrl( )], ['Access Denied Handler', $context->getConfig( )->getAccessDeniedHandler( )], ] |
/src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/FormLoginBundle/Controller/LocalizedController.php:39 | 1 | return new Response($this->container->get('twig')->render('@FormLogin/Localized/login.html.twig', ['last_username' => $request->getSession( )->get(SecurityRequestAttributes::LAST_USERNAME), 'error' => $error, ])) |
/src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php:346 | 1 | $providerNodeBuilder = $rootNode->fixXmlConfig('provider')->children( )->arrayNode('providers')->example(['my_memory_provider' => ['memory' => ['users' => ['foo' => ['password' => 'foo', 'roles' => 'ROLE_USER'], 'bar' => ['password' => 'bar', 'roles' => '[ROLE_USER, ROLE_ADMIN]'], ], ], ], 'my_entity_provider' => ['entity' => ['class' => 'SecurityBundle:User', 'property' => 'username']], ])->requiresAtLeastOneElement( )->useAttributeAsKey('name')->prototype('array') |
/src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php:179 | 1 | $firewallNodeBuilder = $rootNode->fixXmlConfig('firewall')->children( )->arrayNode('firewalls')->isRequired( )->requiresAtLeastOneElement( )->disallowNewKeysInSubsequentConfigs( )->useAttributeAsKey('name')->prototype('array')->fixXmlConfig('required_badge')->children( ) |
/src/Symfony/Bundle/SecurityBundle/Tests/Functional/AccessTokenTest.php:363 | 1 | $token = (new CompactSerializer( ))->serialize((new JWSBuilder(new AlgorithmManager([new ES256( ), ])))->create( )->withPayload(json_encode($claims))->addSignature(new JWK(['kty' => 'EC', 'crv' => 'P-256', 'x' => '0QEAsI1wGI-dmYatdUZoWSRWggLEpyzopuhwk-YUnA4', 'y' => 'KYl-qyZ26HobuYwlQh-r0iHX61thfP82qqEku7i0woo', 'd' => 'iA_TV2zvftni_9aFAQwFO_9aypfJFCSpcCyevDvz220', ]), ['alg' => 'ES256'])->build( )) |
/src/Symfony/Bundle/SecurityBundle/Tests/Functional/SecurityTest.php:81 | 1 | return [[new InMemoryUser('user1', 'test', ['ROLE_ADMIN']), new InMemoryUser('user1', 'test', ['ROLE_USER']), ], [new UserWithoutEquatable('user1', 'test', ['ROLE_ADMIN']), new UserWithoutEquatable('user1', 'test', ['ROLE_USER']), ], ] |
/src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/FormLoginBundle/Controller/LoginController.php:41 | 1 | return new Response($this->container->get('twig')->render('@FormLogin/Login/login.html.twig', ['last_username' => $request->getSession( )->get(SecurityRequestAttributes::LAST_USERNAME), 'error' => $error, ])) |
/src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/AuthenticatorBundle/DummyFormLoginFactory.php:30 | 2 | $authenticator = $container->setDefinition($authenticatorId, new ChildDefinition('security.authenticator.form_login'))->replaceArgument(1, new Reference($userProviderId))->replaceArgument(2, new Reference($this->createAuthenticationSuccessHandler($container, $firewallName, $config)))->replaceArgument(3, new Reference($this->createAuthenticationFailureHandler($container, $firewallName, $config)))->replaceArgument(4, $options) |
/src/Symfony/Component/VarDumper/Caster/SplCaster.php:57 | 1 | $a += [$prefix . 'mode' => new ConstStub((($mode & \SplDoublyLinkedList::IT_MODE_LIFO) ? 'IT_MODE_LIFO' : 'IT_MODE_FIFO') . ' | ' . (($mode & \SplDoublyLinkedList::IT_MODE_DELETE) ? 'IT_MODE_DELETE' : 'IT_MODE_KEEP'), $mode), $prefix . 'dllist' => iterator_to_array($c), ] |
/src/Symfony/Component/VarDumper/Caster/PgSqlCaster.php:132 | 1 | $field = ['name' => pg_field_name($result, $i), 'table' => sprintf('%s (OID: %s)', pg_field_table($result, $i), pg_field_table($result, $i, true)), 'type' => sprintf('%s (OID: %s)', pg_field_type($result, $i), pg_field_type_oid($result, $i)), 'nullable' => (bool) pg_field_is_null($result, $i), 'storage' => pg_field_size($result, $i) . ' bytes', 'display' => pg_field_prtlen($result, $i) . ' chars', ] |
/src/Symfony/Component/VarDumper/Caster/IntlCaster.php:47 | 1 | $a += [Caster::PREFIX_VIRTUAL . 'attributes' => new EnumStub(['PARSE_INT_ONLY' => $c->getAttribute(\NumberFormatter::PARSE_INT_ONLY), 'GROUPING_USED' => $c->getAttribute(\NumberFormatter::GROUPING_USED), 'DECIMAL_ALWAYS_SHOWN' => $c->getAttribute(\NumberFormatter::DECIMAL_ALWAYS_SHOWN), 'MAX_INTEGER_DIGITS' => $c->getAttribute(\NumberFormatter::MAX_INTEGER_DIGITS), 'MIN_INTEGER_DIGITS' => $c->getAttribute(\NumberFormatter::MIN_INTEGER_DIGITS), 'INTEGER_DIGITS' => $c->getAttribute(\NumberFormatter::INTEGER_DIGITS), 'MAX_FRACTION_DIGITS' => $c->getAttribute(\NumberFormatter::MAX_FRACTION_DIGITS), 'MIN_FRACTION_DIGITS' => $c->getAttribute(\NumberFormatter::MIN_FRACTION_DIGITS), 'FRACTION_DIGITS' => $c->getAttribute(\NumberFormatter::FRACTION_DIGITS), 'MULTIPLIER' => $c->getAttribute(\NumberFormatter::MULTIPLIER), 'GROUPING_SIZE' => $c->getAttribute(\NumberFormatter::GROUPING_SIZE), 'ROUNDING_MODE' => $c->getAttribute(\NumberFormatter::ROUNDING_MODE), 'ROUNDING_INCREMENT' => $c->getAttribute(\NumberFormatter::ROUNDING_INCREMENT), 'FORMAT_WIDTH' => $c->getAttribute(\NumberFormatter::FORMAT_WIDTH), 'PADDING_POSITION' => $c->getAttribute(\NumberFormatter::PADDING_POSITION), 'SECONDARY_GROUPING_SIZE' => $c->getAttribute(\NumberFormatter::SECONDARY_GROUPING_SIZE), 'SIGNIFICANT_DIGITS_USED' => $c->getAttribute(\NumberFormatter::SIGNIFICANT_DIGITS_USED), 'MIN_SIGNIFICANT_DIGITS' => $c->getAttribute(\NumberFormatter::MIN_SIGNIFICANT_DIGITS), 'MAX_SIGNIFICANT_DIGITS' => $c->getAttribute(\NumberFormatter::MAX_SIGNIFICANT_DIGITS), 'LENIENT_PARSE' => $c->getAttribute(\NumberFormatter::LENIENT_PARSE), ]), Caster::PREFIX_VIRTUAL . 'text_attributes' => new EnumStub(['POSITIVE_PREFIX' => $c->getTextAttribute(\NumberFormatter::POSITIVE_PREFIX), 'POSITIVE_SUFFIX' => $c->getTextAttribute(\NumberFormatter::POSITIVE_SUFFIX), 'NEGATIVE_PREFIX' => $c->getTextAttribute(\NumberFormatter::NEGATIVE_PREFIX), 'NEGATIVE_SUFFIX' => $c->getTextAttribute(\NumberFormatter::NEGATIVE_SUFFIX), 'PADDING_CHARACTER' => $c->getTextAttribute(\NumberFormatter::PADDING_CHARACTER), 'CURRENCY_CODE' => $c->getTextAttribute(\NumberFormatter::CURRENCY_CODE), 'DEFAULT_RULESET' => $c->getTextAttribute(\NumberFormatter::DEFAULT_RULESET), 'PUBLIC_RULESETS' => $c->getTextAttribute(\NumberFormatter::PUBLIC_RULESETS), ]), Caster::PREFIX_VIRTUAL . 'symbols' => new EnumStub(['DECIMAL_SEPARATOR_SYMBOL' => $c->getSymbol(\NumberFormatter::DECIMAL_SEPARATOR_SYMBOL), 'GROUPING_SEPARATOR_SYMBOL' => $c->getSymbol(\NumberFormatter::GROUPING_SEPARATOR_SYMBOL), 'PATTERN_SEPARATOR_SYMBOL' => $c->getSymbol(\NumberFormatter::PATTERN_SEPARATOR_SYMBOL), 'PERCENT_SYMBOL' => $c->getSymbol(\NumberFormatter::PERCENT_SYMBOL), 'ZERO_DIGIT_SYMBOL' => $c->getSymbol(\NumberFormatter::ZERO_DIGIT_SYMBOL), 'DIGIT_SYMBOL' => $c->getSymbol(\NumberFormatter::DIGIT_SYMBOL), 'MINUS_SIGN_SYMBOL' => $c->getSymbol(\NumberFormatter::MINUS_SIGN_SYMBOL), 'PLUS_SIGN_SYMBOL' => $c->getSymbol(\NumberFormatter::PLUS_SIGN_SYMBOL), 'CURRENCY_SYMBOL' => $c->getSymbol(\NumberFormatter::CURRENCY_SYMBOL), 'INTL_CURRENCY_SYMBOL' => $c->getSymbol(\NumberFormatter::INTL_CURRENCY_SYMBOL), 'MONETARY_SEPARATOR_SYMBOL' => $c->getSymbol(\NumberFormatter::MONETARY_SEPARATOR_SYMBOL), 'EXPONENTIAL_SYMBOL' => $c->getSymbol(\NumberFormatter::EXPONENTIAL_SYMBOL), 'PERMILL_SYMBOL' => $c->getSymbol(\NumberFormatter::PERMILL_SYMBOL), 'PAD_ESCAPE_SYMBOL' => $c->getSymbol(\NumberFormatter::PAD_ESCAPE_SYMBOL), 'INFINITY_SYMBOL' => $c->getSymbol(\NumberFormatter::INFINITY_SYMBOL), 'NAN_SYMBOL' => $c->getSymbol(\NumberFormatter::NAN_SYMBOL), 'SIGNIFICANT_DIGIT_SYMBOL' => $c->getSymbol(\NumberFormatter::SIGNIFICANT_DIGIT_SYMBOL), 'MONETARY_GROUPING_SEPARATOR_SYMBOL' => $c->getSymbol(\NumberFormatter::MONETARY_GROUPING_SEPARATOR_SYMBOL), ]), ] |
/src/Symfony/Component/VarDumper/Caster/SplCaster.php:245 | 1 | $a += [$prefix . 'storage' => $c->getArrayCopy( ), $prefix . 'flag::STD_PROP_LIST' => (bool) ($flags & \ArrayObject::STD_PROP_LIST), $prefix . 'flag::ARRAY_AS_PROPS' => (bool) ($flags & \ArrayObject::ARRAY_AS_PROPS), ] |
/src/Symfony/Component/VarDumper/Caster/IntlCaster.php:130 | 1 | $a += [Caster::PREFIX_VIRTUAL . 'type' => $c->getType( ), Caster::PREFIX_VIRTUAL . 'first_day_of_week' => $c->getFirstDayOfWeek( ), Caster::PREFIX_VIRTUAL . 'minimal_days_in_first_week' => $c->getMinimalDaysInFirstWeek( ), Caster::PREFIX_VIRTUAL . 'repeated_wall_time_option' => $c->getRepeatedWallTimeOption( ), Caster::PREFIX_VIRTUAL . 'skipped_wall_time_option' => $c->getSkippedWallTimeOption( ), Caster::PREFIX_VIRTUAL . 'time' => $c->getTime( ), Caster::PREFIX_VIRTUAL . 'in_daylight_time' => $c->inDaylightTime( ), Caster::PREFIX_VIRTUAL . 'is_lenient' => $c->isLenient( ), Caster::PREFIX_VIRTUAL . 'time_zone' => ($filter & Caster::EXCLUDE_VERBOSE) ? new CutStub($c->getTimeZone( )) : $c->getTimeZone( ), ] |
/src/Symfony/Component/VarDumper/Caster/IntlCaster.php:113 | 1 | $a += [Caster::PREFIX_VIRTUAL . 'display_name' => $c->getDisplayName( ), Caster::PREFIX_VIRTUAL . 'id' => $c->getID( ), Caster::PREFIX_VIRTUAL . 'raw_offset' => $c->getRawOffset( ), ] |
/src/Symfony/Component/VarDumper/Caster/RedisCaster.php:62 | 1 | return $a + [$prefix . 'isConnected' => $connected, $prefix . 'host' => $c->getHost( ), $prefix . 'port' => $c->getPort( ), $prefix . 'auth' => $c->getAuth( ), $prefix . 'mode' => isset(self::MODES[$mode]) ? new ConstStub(self::MODES[$mode], $mode) : $mode, $prefix . 'dbNum' => $c->getDbNum( ), $prefix . 'timeout' => $c->getTimeout( ), $prefix . 'lastError' => $c->getLastError( ), $prefix . 'persistentId' => $c->getPersistentID( ), $prefix . 'options' => self::getRedisOptions($c), ] |
/src/Symfony/Component/VarDumper/Caster/IntlCaster.php:147 | 1 | $a += [Caster::PREFIX_VIRTUAL . 'locale' => $c->getLocale( ), Caster::PREFIX_VIRTUAL . 'pattern' => $c->getPattern( ), Caster::PREFIX_VIRTUAL . 'calendar' => $c->getCalendar( ), Caster::PREFIX_VIRTUAL . 'time_zone_id' => $c->getTimeZoneId( ), Caster::PREFIX_VIRTUAL . 'time_type' => $c->getTimeType( ), Caster::PREFIX_VIRTUAL . 'date_type' => $c->getDateType( ), Caster::PREFIX_VIRTUAL . 'calendar_object' => ($filter & Caster::EXCLUDE_VERBOSE) ? new CutStub($c->getCalendarObject( )) : $c->getCalendarObject( ), Caster::PREFIX_VIRTUAL . 'time_zone' => ($filter & Caster::EXCLUDE_VERBOSE) ? new CutStub($c->getTimeZone( )) : $c->getTimeZone( ), ] |
/src/Symfony/Component/VarDumper/Caster/DateCaster.php:96 | 1 | $dates[] = sprintf('%s more', ($end = $p->getEndDate( )) ? ceil(($end->format('U.u') - $d->format('U.u')) / ((int) $now->add($p->getDateInterval( ))->format('U.u') - (int) $now->format('U.u'))) : $p->recurrences - $i) |
/src/Symfony/Component/VarDumper/Caster/DateCaster.php:73 | 1 | $format .= $i->h || $i->i || $i->s || $i->f ? '%H:%I:' . self::formatSeconds($i->s, substr($i->f, 2)) : '' |
/src/Symfony/Component/VarDumper/Caster/ResourceCaster.php:77 | 1 | $a += ['subject' => new EnumStub(array_intersect_key($info['subject'], ['organizationName' => true, 'commonName' => true])), 'issuer' => new EnumStub(array_intersect_key($info['issuer'], ['organizationName' => true, 'commonName' => true])), 'expiry' => new ConstStub(date(\DateTimeInterface::ISO8601, $info['validTo_time_t']), $info['validTo_time_t']), 'fingerprint' => new EnumStub(['md5' => new ConstStub(wordwrap(strtoupper(openssl_x509_fingerprint($h, 'md5')), 2, ':', true)), 'sha1' => new ConstStub(wordwrap(strtoupper(openssl_x509_fingerprint($h, 'sha1')), 2, ':', true)), 'sha256' => new ConstStub(wordwrap(strtoupper(openssl_x509_fingerprint($h, 'sha256')), 2, ':', true)), 'pin-sha256' => new ConstStub($pin), ]), ] |
/src/Symfony/Component/VarDumper/Caster/DateCaster.php:105 | 1 | $period = sprintf('every %s, from %s%s %s', self::formatInterval($p->getDateInterval( )), $p->include_start_date ? '[' : ']', self::formatDateTime($p->getStartDate( )), ($end = $p->getEndDate( )) ? 'to ' . self::formatDateTime($end) . ($p->include_end_date ? ']' : '[') : 'recurring ' . $p->recurrences . ' time/s') |
/src/Symfony/Component/VarDumper/Caster/ExceptionCaster.php:140 | 1 | $frame = new FrameStub(['object' => $f['object'] ?? null, 'class' => $f['class'] ?? null, 'type' => $f['type'] ?? null, 'function' => $f['function'] ?? null, ] + $frames[$i - 1], false, true) |
/src/Symfony/Component/VarDumper/Caster/ExceptionCaster.php:132 | 1 | $lastCall = isset($frames[$i]['function']) ? (isset($frames[$i]['class']) ? $frames[0]['class'] . $frames[$i]['type'] : '') . $frames[$i]['function'] . '()' : '' |
/src/Symfony/Component/VarDumper/Caster/RdKafkaCaster.php:179 | 1 | return [$prefix . 'orig_broker_id' => $m->getOrigBrokerId( ), $prefix . 'orig_broker_name' => $m->getOrigBrokerName( ), $prefix . 'brokers' => $m->getBrokers( ), $prefix . 'topics' => $m->getTopics( ), ] |
/src/Symfony/Component/VarDumper/Caster/LinkStub.php:55 | 1 | $this->attr['ellipsis-tail'] = 1 + ($this->inVendor ? 2 + \strlen(implode('', \array_slice(explode(\DIRECTORY_SEPARATOR, substr($href, 1 - $this->attr['ellipsis'])), 0, 2))) : 0) |
/src/Symfony/Component/VarDumper/Caster/DOMCaster.php:97 | 1 | $a += ['nodeName' => $dom->nodeName, 'nodeValue' => new CutStub($dom->nodeValue), 'nodeType' => new ConstStub(self::NODE_TYPES[$dom->nodeType], $dom->nodeType), 'parentNode' => new CutStub($dom->parentNode), 'childNodes' => $dom->childNodes, 'firstChild' => new CutStub($dom->firstChild), 'lastChild' => new CutStub($dom->lastChild), 'previousSibling' => new CutStub($dom->previousSibling), 'nextSibling' => new CutStub($dom->nextSibling), 'attributes' => $dom->attributes, 'ownerDocument' => new CutStub($dom->ownerDocument), 'namespaceURI' => $dom->namespaceURI, 'prefix' => $dom->prefix, 'localName' => $dom->localName, 'baseURI' => $dom->baseURI ? new LinkStub($dom->baseURI) : $dom->baseURI, 'textContent' => new CutStub($dom->textContent), ] |
/src/Symfony/Component/VarDumper/Caster/DOMCaster.php:121 | 1 | $a += ['nodeName' => $dom->nodeName, 'nodeValue' => new CutStub($dom->nodeValue), 'nodeType' => new ConstStub(self::NODE_TYPES[$dom->nodeType], $dom->nodeType), 'prefix' => $dom->prefix, 'localName' => $dom->localName, 'namespaceURI' => $dom->namespaceURI, 'ownerDocument' => new CutStub($dom->ownerDocument), 'parentNode' => new CutStub($dom->parentNode), ] |
/src/Symfony/Component/VarDumper/Caster/DOMCaster.php:137 | 1 | $a += ['doctype' => $dom->doctype, 'implementation' => $dom->implementation, 'documentElement' => new CutStub($dom->documentElement), 'actualEncoding' => $dom->actualEncoding, 'encoding' => $dom->encoding, 'xmlEncoding' => $dom->xmlEncoding, 'standalone' => $dom->standalone, 'xmlStandalone' => $dom->xmlStandalone, 'version' => $dom->version, 'xmlVersion' => $dom->xmlVersion, 'strictErrorChecking' => $dom->strictErrorChecking, 'documentURI' => $dom->documentURI ? new LinkStub($dom->documentURI) : $dom->documentURI, 'config' => $dom->config, 'formatOutput' => $dom->formatOutput, 'validateOnParse' => $dom->validateOnParse, 'resolveExternals' => $dom->resolveExternals, 'preserveWhiteSpace' => $dom->preserveWhiteSpace, 'recover' => $dom->recover, 'substituteEntities' => $dom->substituteEntities, ] |
/src/Symfony/Component/VarDumper/Caster/DOMCaster.php:213 | 1 | $a += ['name' => $dom->name, 'entities' => $dom->entities, 'notations' => $dom->notations, 'publicId' => $dom->publicId, 'systemId' => $dom->systemId, 'internalSubset' => $dom->internalSubset, ] |
/src/Symfony/Component/VarDumper/Caster/DOMCaster.php:237 | 1 | $a += ['publicId' => $dom->publicId, 'systemId' => $dom->systemId, 'notationName' => $dom->notationName, 'actualEncoding' => $dom->actualEncoding, 'encoding' => $dom->encoding, 'version' => $dom->version, ] |
/src/Symfony/Component/VarDumper/Caster/XmlReaderCaster.php:49 | 1 | $properties = ['LOADDTD' => @$reader->getParserProperty(\XMLReader::LOADDTD), 'DEFAULTATTRS' => @$reader->getParserProperty(\XMLReader::DEFAULTATTRS), 'VALIDATE' => @$reader->getParserProperty(\XMLReader::VALIDATE), 'SUBST_ENTITIES' => @$reader->getParserProperty(\XMLReader::SUBST_ENTITIES), ] |
/src/Symfony/Component/VarDumper/Caster/XmlReaderCaster.php:65 | 1 | $info = ['localName' => $reader->localName, 'prefix' => $reader->prefix, 'nodeType' => new ConstStub(self::NODE_TYPES[$reader->nodeType], $reader->nodeType), 'depth' => $reader->depth, 'isDefault' => $reader->isDefault, 'isEmptyElement' => \XMLReader::NONE === $reader->nodeType ? null : $reader->isEmptyElement, 'xmlLang' => $reader->xmlLang, 'attributeCount' => $reader->attributeCount, 'value' => $reader->value, 'namespaceURI' => $reader->namespaceURI, 'baseURI' => $reader->baseURI ? new LinkStub($reader->baseURI) : $reader->baseURI, $props => $properties, ] |
/src/Symfony/Component/VarDumper/Tests/Caster/IntlCasterTest.php:93 | 1 | $expected = <<<EOTXT NumberFormatter { locale: "$expectedLocale" pattern: "$expectedPattern" attributes: { PARSE_INT_ONLY: $expectedAttribute1 GROUPING_USED: $expectedAttribute2 DECIMAL_ALWAYS_SHOWN: $expectedAttribute3 MAX_INTEGER_DIGITS: $expectedAttribute4 MIN_INTEGER_DIGITS: $expectedAttribute5 INTEGER_DIGITS: $expectedAttribute6 MAX_FRACTION_DIGITS: $expectedAttribute7 MIN_FRACTION_DIGITS: $expectedAttribute8 FRACTION_DIGITS: $expectedAttribute9 MULTIPLIER: $expectedAttribute10 GROUPING_SIZE: $expectedAttribute11 ROUNDING_MODE: $expectedAttribute12 ROUNDING_INCREMENT: $expectedAttribute13 FORMAT_WIDTH: $expectedAttribute14 PADDING_POSITION: $expectedAttribute15 SECONDARY_GROUPING_SIZE: $expectedAttribute16 SIGNIFICANT_DIGITS_USED: $expectedAttribute17 MIN_SIGNIFICANT_DIGITS: $expectedAttribute18 MAX_SIGNIFICANT_DIGITS: $expectedAttribute19 LENIENT_PARSE: $expectedAttribute20 } text_attributes: { POSITIVE_PREFIX: "$expectedTextAttribute1" POSITIVE_SUFFIX: "$expectedTextAttribute2" NEGATIVE_PREFIX: "$expectedTextAttribute3" NEGATIVE_SUFFIX: "$expectedTextAttribute4" PADDING_CHARACTER: "$expectedTextAttribute5" CURRENCY_CODE: "$expectedTextAttribute6" DEFAULT_RULESET: $expectedTextAttribute7 PUBLIC_RULESETS: $expectedTextAttribute8 } symbols: { DECIMAL_SEPARATOR_SYMBOL: "$expectedSymbol1" GROUPING_SEPARATOR_SYMBOL: "$expectedSymbol2" PATTERN_SEPARATOR_SYMBOL: "$expectedSymbol3" PERCENT_SYMBOL: "$expectedSymbol4" ZERO_DIGIT_SYMBOL: "$expectedSymbol5" DIGIT_SYMBOL: "$expectedSymbol6" MINUS_SIGN_SYMBOL: "$expectedSymbol7" PLUS_SIGN_SYMBOL: "$expectedSymbol8" CURRENCY_SYMBOL: "$expectedSymbol9" INTL_CURRENCY_SYMBOL: "$expectedSymbol10" MONETARY_SEPARATOR_SYMBOL: "$expectedSymbol11" EXPONENTIAL_SYMBOL: "$expectedSymbol12" PERMILL_SYMBOL: "$expectedSymbol13" PAD_ESCAPE_SYMBOL: "$expectedSymbol14" INFINITY_SYMBOL: "$expectedSymbol15" NAN_SYMBOL: "$expectedSymbol16" SIGNIFICANT_DIGIT_SYMBOL: "$expectedSymbol17" MONETARY_GROUPING_SEPARATOR_SYMBOL: "$expectedSymbol18" } } EOTXT |
/src/Symfony/Component/VarDumper/Caster/RedisCaster.php:80 | 1 | return $a + [$prefix . 'hosts' => $c->_hosts( ), $prefix . 'function' => ClassStub::wrapCallable($c->_function( )), $prefix . 'lastError' => $c->getLastError( ), $prefix . 'options' => self::getRedisOptions($c), ] |
/src/Symfony/Component/VarDumper/Caster/RedisCaster.php:93 | 1 | $a += [$prefix . '_masters' => $c->_masters( ), $prefix . '_redir' => $c->_redir( ), $prefix . 'mode' => new ConstStub($c->getMode( ) ? 'MULTI' : 'ATOMIC', $c->getMode( )), $prefix . 'lastError' => $c->getLastError( ), $prefix . 'options' => self::getRedisOptions($c, ['SLAVE_FAILOVER' => isset(self::FAILOVER_OPTIONS[$failover]) ? new ConstStub(self::FAILOVER_OPTIONS[$failover], $failover) : $failover, ]), ] |
/src/Symfony/Component/VarDumper/Caster/RedisCaster.php:139 | 1 | $options += ['TCP_KEEPALIVE' => \defined('Redis::OPT_TCP_KEEPALIVE') ? $redis->getOption(\Redis::OPT_TCP_KEEPALIVE) : Relay::OPT_TCP_KEEPALIVE, 'READ_TIMEOUT' => $redis->getOption(\defined('Redis::OPT_READ_TIMEOUT') ? \Redis::OPT_READ_TIMEOUT : Relay::OPT_READ_TIMEOUT), 'COMPRESSION' => $compression, 'SERIALIZER' => $serializer, 'PREFIX' => $redis->getOption(\defined('Redis::OPT_PREFIX') ? \Redis::OPT_PREFIX : Relay::OPT_PREFIX), 'SCAN' => $retry, ] |
/src/Symfony/Component/VarDumper/Caster/AmqpCaster.php:69 | 1 | $a += [$prefix . 'is_connected' => $c->isConnected( ), $prefix . 'login' => $c->getLogin( ), $prefix . 'password' => $c->getPassword( ), $prefix . 'host' => $c->getHost( ), $prefix . 'vhost' => $c->getVhost( ), $prefix . 'port' => $c->getPort( ), $prefix . 'read_timeout' => $timeout, ] |
/src/Symfony/Component/VarDumper/Caster/AmqpCaster.php:118 | 1 | $a += [$prefix . 'connection' => $c->getConnection( ), $prefix . 'channel' => $c->getChannel( ), $prefix . 'name' => $c->getName( ), $prefix . 'arguments' => $c->getArguments( ), ] |
/src/Symfony/Component/VarDumper/Caster/AmqpCaster.php:136 | 1 | $type = isset(self::EXCHANGE_TYPES[$c->getType( )]) ? new ConstStub(self::EXCHANGE_TYPES[$c->getType( )], $c->getType( )) : $c->getType( ) |
/src/Symfony/Component/VarDumper/Caster/AmqpCaster.php:145 | 1 | $a += [$prefix . 'connection' => $c->getConnection( ), $prefix . 'channel' => $c->getChannel( ), $prefix . 'name' => $c->getName( ), $prefix . 'type' => $type, $prefix . 'arguments' => $c->getArguments( ), ] |
/src/Symfony/Component/VarDumper/Caster/AmqpCaster.php:173 | 1 | $a += [$prefix . 'delivery_tag' => $c->getDeliveryTag( ), $prefix . 'is_redelivery' => $c->isRedelivery( ), $prefix . 'exchange_name' => $c->getExchangeName( ), $prefix . 'routing_key' => $c->getRoutingKey( ), $prefix . 'content_type' => $c->getContentType( ), $prefix . 'content_encoding' => $c->getContentEncoding( ), $prefix . 'headers' => $c->getHeaders( ), $prefix . 'delivery_mode' => $deliveryMode, $prefix . 'priority' => $c->getPriority( ), $prefix . 'correlation_id' => $c->getCorrelationId( ), $prefix . 'reply_to' => $c->getReplyTo( ), $prefix . 'expiration' => $c->getExpiration( ), $prefix . 'message_id' => $c->getMessageId( ), $prefix . 'timestamp' => $c->getTimeStamp( ), $prefix . 'type' => $c->getType( ), $prefix . 'user_id' => $c->getUserId( ), $prefix . 'app_id' => $c->getAppId( ), ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapGeneratorTest.php:448 | 1 | yield 'it process can skip adding one importmap entry but still add a child' => [[self::createLocalEntry('app', path : 'app.js', ), self::createLocalEntry('imports_simple', path : 'imports_simple.js', ), ], [new MappedAsset('app.js', publicPath : '/assets/app-d1g3st.js', javaScriptImports : [new JavaScriptImport('imports_simple', assetLogicalPath : $eagerImportsSimpleAsset->logicalPath, assetSourcePath : $eagerImportsSimpleAsset->logicalPath, isLazy : true, addImplicitlyToImportMap : false)]), $eagerImportsSimpleAsset, $simpleAsset, ], ['app' => ['path' => '/assets/app-d1g3st.js', 'type' => 'js', ], '/assets/simple.js' => ['path' => '/assets/simple-d1g3st.js', 'type' => 'js', ], 'imports_simple' => ['path' => '/assets/imports_simple-d1g3st.js', 'type' => 'js', ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapGeneratorTest.php:416 | 1 | yield 'it processes imports recursively' => [[self::createLocalEntry('app', path : 'app.js', ), ], [new MappedAsset('app.js', publicPath : '/assets/app-d1g3st.js', javaScriptImports : [new JavaScriptImport('/assets/imports_simple.js', assetLogicalPath : $eagerImportsSimpleAsset->logicalPath, assetSourcePath : $eagerImportsSimpleAsset->sourcePath, isLazy : true, addImplicitlyToImportMap : true)]), $eagerImportsSimpleAsset, $simpleAsset, ], ['app' => ['path' => '/assets/app-d1g3st.js', 'type' => 'js', ], '/assets/imports_simple.js' => ['path' => '/assets/imports_simple-d1g3st.js', 'type' => 'js', ], '/assets/simple.js' => ['path' => '/assets/simple-d1g3st.js', 'type' => 'js', ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapGeneratorTest.php:380 | 1 | yield 'it adds dependency to the importmap from a remote asset' => [[self::createRemoteEntry('bootstrap', version : '1.2.3', path : '/assets/vendor/bootstrap.js'), ], [new MappedAsset('app.js', sourcePath : '/assets/vendor/bootstrap.js', publicPath : '/assets/vendor/bootstrap-d1g3st.js', javaScriptImports : [new JavaScriptImport('/assets/simple.js', assetLogicalPath : $simpleAsset->logicalPath, assetSourcePath : $simpleAsset->sourcePath, isLazy : false, addImplicitlyToImportMap : true)]), $simpleAsset, ], ['bootstrap' => ['path' => '/assets/vendor/bootstrap-d1g3st.js', 'type' => 'js', ], '/assets/simple.js' => ['path' => '/assets/simple-d1g3st.js', 'type' => 'js', ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapGeneratorTest.php:353 | 1 | yield 'it adds dependency to the importmap' => [[self::createLocalEntry('app', path : 'app.js', ), ], [new MappedAsset('app.js', publicPath : '/assets/app-d1g3st.js', javaScriptImports : [new JavaScriptImport('/assets/simple.js', assetLogicalPath : $simpleAsset->logicalPath, assetSourcePath : $simpleAsset->sourcePath, isLazy : false, addImplicitlyToImportMap : true)]), $simpleAsset, ], ['app' => ['path' => '/assets/app-d1g3st.js', 'type' => 'js', ], '/assets/simple.js' => ['path' => '/assets/simple-d1g3st.js', 'type' => 'js', ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapManagerTest.php:143 | 1 | yield 'require single lodash package' => ['packages' => [new PackageRequireOptions('lodash')], 'expectedProviderPackageArgumentCount' => 1, 'resolvedPackages' => [self::resolvedPackage('lodash', '1.2.3'), ], 'expectedImportMap' => ['lodash' => ['version' => '1.2.3', ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapGeneratorTest.php:681 | 1 | yield 'an entry recursive dependencies are deduplicated' => [new MappedAsset('app.js', publicPath : '/assets/app.js', javaScriptImports : [new JavaScriptImport('/assets/imports_simple.js', assetLogicalPath : $importsSimpleAsset->logicalPath, assetSourcePath : $importsSimpleAsset->sourcePath, isLazy : false), new JavaScriptImport('/assets/imports_simple2.js', assetLogicalPath : $importsSimpleAsset2->logicalPath, assetSourcePath : $importsSimpleAsset2->sourcePath, isLazy : false), ]), ['/assets/imports_simple.js', '/assets/imports_simple2.js', '/assets/simple.js'], [$simpleAsset, $importsSimpleAsset, $importsSimpleAsset2], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapGeneratorTest.php:507 | 1 | yield 'it does not process dependencies of CSS files' => [[self::createLocalEntry('app.css', path : 'app.css', type : ImportMapType::CSS, ), ], [new MappedAsset('app.css', publicPath : '/assets/app-d1g3st.css', javaScriptImports : [new JavaScriptImport('/assets/simple.js', assetLogicalPath : $simpleAsset->logicalPath, assetSourcePath : $simpleAsset->sourcePath)]), ], ['app.css' => ['path' => '/assets/app-d1g3st.css', 'type' => 'css', ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapGeneratorTest.php:484 | 1 | yield 'imports with a module name are not added to the importmap' => [[self::createLocalEntry('app', path : 'app.js', ), ], [new MappedAsset('app.js', publicPath : '/assets/app-d1g3st.js', javaScriptImports : [new JavaScriptImport('simple', assetLogicalPath : $simpleAsset->logicalPath, assetSourcePath : $simpleAsset->sourcePath, isLazy : false)]), $simpleAsset, ], ['app' => ['path' => '/assets/app-d1g3st.js', 'type' => 'js', ], ], ] |
/src/Symfony/Component/VarDumper/Tests/Caster/DateCasterTest.php:380 | 1 | return [['-12:00', '-12:00', ''], ['+00:00', '+00:00', ''], ['+14:00', '+14:00', ''], ['GMT', '+00:00', ''], ['a', '+01:00', ''], ['b', '+02:00', ''], ['z', '+00:00', ''], ['Africa/Tunis', 'Africa/Tunis (%s:00)', $xRegion], ['America/Panama', 'America/Panama (%s:00)', $xRegion], ['Asia/Jerusalem', 'Asia/Jerusalem (%s:00)', $xRegion], ['Atlantic/Canary', 'Atlantic/Canary (%s:00)', $xRegion], ['Australia/Perth', 'Australia/Perth (%s:00)', $xRegion], ['Europe/Zurich', 'Europe/Zurich (%s:00)', $xRegion], ['Pacific/Tahiti', 'Pacific/Tahiti (%s:00)', $xRegion], ] |
/src/Symfony/Component/VarDumper/Tests/Caster/ExceptionCasterTest.php:281 | 1 | $f = [new FrameStub(['file' => \dirname(__DIR__) . '/Fixtures/Twig.php', 'line' => 33, 'class' => '__TwigTemplate_VarDumperFixture_u75a09', ]), new FrameStub(['file' => \dirname(__DIR__) . '/Fixtures/Twig.php', 'line' => 34, 'class' => '__TwigTemplate_VarDumperFixture_u75a09', 'object' => new \__TwigTemplate_VarDumperFixture_u75a09(null, __FILE__), ]), ] |
/src/Symfony/Component/VarDumper/Tests/Caster/CasterTest.php:51 | 1 | return [[0, [ ], ], [Caster::EXCLUDE_PUBLIC, ['null' => null, 'empty' => false, 'public' => 'pub', ], ], [Caster::EXCLUDE_NULL, ['null' => null, ], ], [Caster::EXCLUDE_EMPTY, ['null' => null, 'empty' => false, ], ], [Caster::EXCLUDE_VIRTUAL, ["\0~\0virtual" => 'virt', ], ], [Caster::EXCLUDE_DYNAMIC, ["\0+\0dynamic" => 'dyn', ], ], [Caster::EXCLUDE_PROTECTED, ["\0*\0protected" => 'prot', ], ], [Caster::EXCLUDE_PRIVATE, ["\0Foo\0private" => 'priv', ], ], [Caster::EXCLUDE_VERBOSE, ['public' => 'pub', "\0*\0protected" => 'prot', ], ['public', "\0*\0protected"], ], [Caster::EXCLUDE_NOT_IMPORTANT, ['null' => null, 'empty' => false, "\0~\0virtual" => 'virt', "\0+\0dynamic" => 'dyn', "\0Foo\0private" => 'priv', ], ['public', "\0*\0protected"], ], [Caster::EXCLUDE_VIRTUAL | Caster::EXCLUDE_DYNAMIC, ["\0~\0virtual" => 'virt', "\0+\0dynamic" => 'dyn', ], ], [Caster::EXCLUDE_NOT_IMPORTANT | Caster::EXCLUDE_VERBOSE, self::$referenceArray, ['public', "\0*\0protected"], ], [Caster::EXCLUDE_NOT_IMPORTANT | Caster::EXCLUDE_EMPTY, ['null' => null, 'empty' => false, "\0~\0virtual" => 'virt', "\0+\0dynamic" => 'dyn', "\0*\0protected" => 'prot', "\0Foo\0private" => 'priv', ], ['public', 'empty'], ], [Caster::EXCLUDE_VERBOSE | Caster::EXCLUDE_EMPTY | Caster::EXCLUDE_STRICT, ['empty' => false, ], ['public', 'empty'], ], ] |
/src/Symfony/Component/VarDumper/Tests/Caster/IntlCasterTest.php:265 | 1 | $expected = <<<EOTXT IntlDateFormatter { locale: "$expectedLocale" pattern: "$expectedPattern" calendar: $expectedCalendar time_zone_id: "$expectedTimeZoneId" time_type: $expectedTimeType date_type: $expectedDateType calendar_object: IntlGregorianCalendar { type: "$expectedCalendarObjectType" first_day_of_week: $expectedCalendarObjectFirstDayOfWeek minimal_days_in_first_week: $expectedCalendarObjectMinimalDaysInFirstWeek repeated_wall_time_option: $expectedCalendarObjectRepeatedWallTimeOption skipped_wall_time_option: $expectedCalendarObjectSkippedWallTimeOption time: $expectedCalendarObjectTime in_daylight_time: $expectedCalendarObjectInDaylightTime is_lenient: $expectedCalendarObjectIsLenient time_zone: IntlTimeZone { display_name: "$expectedCalendarObjectTimeZoneDisplayName" id: "$expectedCalendarObjectTimeZoneID" raw_offset: $expectedCalendarObjectTimeZoneRawOffset$expectedCalendarObjectTimeZoneDSTSavings } } time_zone: IntlTimeZone { display_name: "$expectedTimeZoneDisplayName" id: "$expectedTimeZoneID" raw_offset: $expectedTimeZoneRawOffset$expectedTimeZoneDSTSavings } } EOTXT |
/src/Symfony/Component/AssetMapper/Tests/AssetMapperRepositoryTest.php:94 | 1 | $expectedAllAssets = array_map('realpath', ['file1.css' => __DIR__ . '/Fixtures/dir1/file1.css', 'file2.js' => __DIR__ . '/Fixtures/dir1/file2.js', 'already-abcdefVWXYZ0123456789.digested.css' => __DIR__ . '/Fixtures/dir2/already-abcdefVWXYZ0123456789.digested.css', 'file3.css' => __DIR__ . '/Fixtures/dir2/file3.css', 'file4.js' => __DIR__ . '/Fixtures/dir2/file4.js', 'subdir/file5.js' => __DIR__ . '/Fixtures/dir2/subdir/file5.js', 'subdir/file6.js' => __DIR__ . '/Fixtures/dir2/subdir/file6.js', 'test.gif.foo' => __DIR__ . '/Fixtures/dir3/test.gif.foo', ]) |
/src/Symfony/Component/VarDumper/Dumper/ContextProvider/RequestContextProvider.php:44 | 1 | return ['uri' => $request->getUri( ), 'method' => $request->getMethod( ), 'controller' => $controller ? $this->cloner->cloneVar($controller) : $controller, 'identifier' => spl_object_hash($request), ] |
/src/Symfony/Component/VarDumper/Dumper/CliDumper.php:298 | 1 | $prefix .= $this->style('ref', (Cursor::HASH_RESOURCE === $type ? '@' : '#') . (0 < $cursor->softRefHandle ? $cursor->softRefHandle : $cursor->softRefTo), ['count' => $cursor->softRefCount]) |
/src/Symfony/Component/VarDumper/Tests/Fixtures/dumb-var.php:27 | 1 | $var = ['number' => 1, null, 'const' => 1.1, true, false, \NAN, \INF, -\INF, \PHP_INT_MAX, 'str' => "déjà\n", "\xE9\x01test\t\ning", "bo\u{feff}m" => "te\u{feff}st", '[]' => [ ], 'res' => $g, 'obj' => $foo, 'closure' => function ($a, ?\PDO &$b = null) { /**/ } , 'line' => __LINE__ - 1, 'nobj' => [(object) [ ]], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapVersionCheckerTest.php:223 | 1 | yield 'single with npm-style constraint' => [[self::createRemoteEntry('foo', version : '1.0.0'), self::createRemoteEntry('bar', version : '1.5.0'), ], ['foo' => ['bar'], 'bar' => [ ], ], [['url' => '/foo/1.0.0', 'response' => ['dependencies' => ['bar' => '1.0.0 - v2.0.0'], ], ], ], [ ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapVersionCheckerTest.php:243 | 1 | yield 'single with invalid constraint shows as problem' => [[self::createRemoteEntry('foo', version : '1.0.0'), self::createRemoteEntry('bar', version : '1.5.0'), ], ['foo' => ['bar'], 'bar' => [ ], ], [['url' => '/foo/1.0.0', 'response' => ['dependencies' => ['bar' => 'some/repo'], ], ], ], [new PackageVersionProblem('foo', 'bar', 'some/repo', '1.5.0'), ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapVersionCheckerTest.php:170 | 1 | yield 'multiple package and problems' => [[self::createRemoteEntry('foo', version : '1.0.0'), self::createRemoteEntry('bar', version : '1.5.0'), self::createRemoteEntry('baz', version : '2.0.0'), ], ['foo' => ['bar'], 'bar' => ['baz'], 'baz' => [ ], ], [['url' => '/foo/1.0.0', 'response' => ['dependencies' => ['bar' => '^2.0.0'], ], ], ['url' => '/bar/1.5.0', 'response' => ['dependencies' => ['baz' => '^1.0.0'], ], ], ], [new PackageVersionProblem('foo', 'bar', '^2.0.0', '1.5.0'), new PackageVersionProblem('bar', 'baz', '^1.0.0', '2.0.0'), ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapVersionCheckerTest.php:201 | 1 | yield 'single with problem on peerDependency' => [[self::createRemoteEntry('foo', version : '1.0.0'), self::createRemoteEntry('bar', version : '1.5.0'), ], ['foo' => ['bar'], 'bar' => [ ], ], [['url' => '/foo/1.0.0', 'response' => ['peerDependencies' => ['bar' => '^2.0.0'], ], ], ], [new PackageVersionProblem('foo', 'bar', '^2.0.0', '1.5.0'), ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/Resolver/JsDelivrEsmResolverTest.php:82 | 1 | yield 'require non-scoped package with version' => ['packages' => [new PackageRequireOptions('lodash', '^2')], 'expectedRequests' => [['url' => '/v1/packages/npm/lodash/resolved?specifier=%5E2', 'response' => ['body' => ['version' => '2.1.3']], ], ['url' => '/lodash@2.1.3/+esm', ], ['url' => '/v1/packages/npm/lodash@2.1.3/entrypoints', 'response' => ['body' => ['entrypoints' => [ ]]], ], ], 'expectedResolvedPackages' => ['lodash' => ['version' => '2.1.3', ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/Resolver/JsDelivrEsmResolverTest.php:104 | 1 | yield 'require scoped package with version' => ['packages' => [new PackageRequireOptions('@hotwired/stimulus', '^3')], 'expectedRequests' => [['url' => '/v1/packages/npm/@hotwired/stimulus/resolved?specifier=%5E3', 'response' => ['body' => ['version' => '3.1.3']], ], ['url' => '/@hotwired/stimulus@3.1.3/+esm', ], ['url' => '/v1/packages/npm/@hotwired/stimulus@3.1.3/entrypoints', 'response' => ['body' => ['entrypoints' => [ ]]], ], ], 'expectedResolvedPackages' => ['@hotwired/stimulus' => ['version' => '3.1.3', ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapUpdateCheckerTest.php:190 | 1 | $map = ['https://registry.npmjs.org/@hotwired/stimulus' => new JsonMockResponse(['dist-tags' => ['latest' => '4.0.1'], ]), 'https://registry.npmjs.org/json5' => new JsonMockResponse(['dist-tags' => ['latest' => '1.2.0'], ]), 'https://registry.npmjs.org/bootstrap' => new JsonMockResponse(['dist-tags' => ['latest' => '5.3.2'], ]), 'https://registry.npmjs.org/lodash' => new JsonMockResponse(['dist-tags' => ['latest' => '4.17.21'], ]), ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/Resolver/JsDelivrEsmResolverTest.php:60 | 1 | yield 'require single lodash package' => ['packages' => [new PackageRequireOptions('lodash')], 'expectedRequests' => [['url' => '/v1/packages/npm/lodash/resolved', 'response' => ['body' => ['version' => '1.2.3']], ], ['url' => '/lodash@1.2.3/+esm', ], ['url' => '/v1/packages/npm/lodash@1.2.3/entrypoints', 'response' => ['body' => ['entrypoints' => [ ]]], ], ], 'expectedResolvedPackages' => ['lodash' => ['version' => '1.2.3', ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapManagerTest.php:190 | 1 | yield 'single_package_with_version_constraint' => ['packages' => [new PackageRequireOptions('lodash', '^1.2.3')], 'expectedProviderPackageArgumentCount' => 1, 'resolvedPackages' => [self::resolvedPackage('lodash', '1.2.7'), ], 'expectedImportMap' => ['lodash' => ['version' => '1.2.7', ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapManagerTest.php:203 | 1 | yield 'single_package_with_a_path' => ['packages' => [new PackageRequireOptions('some/module', path : self::$writableRoot . '/assets/some_file.js')], 'expectedProviderPackageArgumentCount' => 0, 'resolvedPackages' => [ ], 'expectedImportMap' => ['some/module' => ['path' => './assets/some_file.js', ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapManagerTest.php:156 | 1 | yield 'require two packages' => ['packages' => [new PackageRequireOptions('lodash'), new PackageRequireOptions('cowsay')], 'expectedProviderPackageArgumentCount' => 2, 'resolvedPackages' => [self::resolvedPackage('lodash', '1.2.3'), self::resolvedPackage('cowsay', '4.5.6'), ], 'expectedImportMap' => ['lodash' => ['version' => '1.2.3', ], 'cowsay' => ['version' => '4.5.6', ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapManagerTest.php:173 | 1 | yield 'single_package_that_returns_as_two' => ['packages' => [new PackageRequireOptions('lodash')], 'expectedProviderPackageArgumentCount' => 1, 'resolvedPackages' => [self::resolvedPackage('lodash', '1.2.3'), self::resolvedPackage('lodash-dependency', '9.8.7'), ], 'expectedImportMap' => ['lodash' => ['version' => '1.2.3', ], 'lodash-dependency' => ['version' => '9.8.7', ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapVersionCheckerTest.php:128 | 1 | yield 'single with dependency & different package specifier with problem' => [[self::createRemoteEntry('foo', version : '1.0.0', packageModuleSpecifier : 'foo_package'), self::createRemoteEntry('bar', version : '1.5.0', packageModuleSpecifier : 'bar_package'), ], ['foo' => ['bar'], 'bar' => [ ], ], [['url' => '/foo_package/1.0.0', 'response' => ['dependencies' => ['bar_package' => '^2.0.0'], ], ], ], [new PackageVersionProblem('foo_package', 'bar_package', '^2.0.0', '1.5.0'), ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapVersionCheckerTest.php:150 | 1 | yield 'single with missing dependency' => [[self::createRemoteEntry('foo', version : '1.0.0'), ], ['foo' => ['bar'], ], [['url' => '/foo/1.0.0', 'response' => ['dependencies' => ['bar' => '^2.0.0'], ], ], ], [new PackageVersionProblem('foo', 'bar', '^2.0.0', null), ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapVersionCheckerTest.php:86 | 1 | yield 'single with dependency but no problem' => [[self::createRemoteEntry('foo', version : '1.0.0'), self::createRemoteEntry('bar', version : '1.5.0'), ], ['foo' => ['bar'], 'bar' => [ ], ], [['url' => '/foo/1.0.0', 'response' => ['dependencies' => ['bar' => '1.2.7 || 1.2.9- v2.0.0'], ], ], ], [ ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapVersionCheckerTest.php:106 | 1 | yield 'single with dependency with problem' => [[self::createRemoteEntry('foo', version : '1.0.0'), self::createRemoteEntry('bar', version : '1.5.0'), ], ['foo' => ['bar'], 'bar' => [ ], ], [['url' => '/foo/1.0.0', 'response' => ['dependencies' => ['bar' => '^2.0.0'], ], ], ], [new PackageVersionProblem('foo', 'bar', '^2.0.0', '1.5.0'), ], ] |
/src/Symfony/Component/String/Tests/UnicodeStringTest.php:212 | 1 | return array_merge(parent::provideBeforeAfterLastIgnoreCase( ), [['दछेच्नुअ-दछेच्नु-अदछेच्नु', 'छेछे', 'दछेच्नुअ-दछेच्नु-अदछेच्नु', 0, false], ['दछेच्नुअ-दछेच्नु-अदछेच्नु', 'छेछे', 'दछेच्नुअ-दछेच्नु-अदछेच्नु', 0, true], ['-दछेच्नु', '-द', 'दछेच्नुअ-दछेच्नु-अद-दछेच्नु', 0, false], ['दछेच्नुअ-दछेच्नु-अद', '-द', 'दछेच्नुअ-दछेच्नु-अद-दछेच्नु', 0, true], ]) |
/src/Symfony/Component/String/Tests/UnicodeStringTest.php:199 | 1 | return array_merge(parent::provideBeforeAfterLast( ), [['दछेच्नुअ-दछेच्नु-अदछेच्नु', 'छेछे', 'दछेच्नुअ-दछेच्नु-अदछेच्नु', 0, false], ['दछेच्नुअ-दछेच्नु-अदछेच्नु', 'छेछे', 'दछेच्नुअ-दछेच्नु-अदछेच्नु', 0, true], ['-दछेच्नु', '-द', 'दछेच्नुअ-दछेच्नु-अद-दछेच्नु', 0, false], ['दछेच्नुअ-दछेच्नु-अद', '-द', 'दछेच्नुअ-दछेच्नु-अद-दछेच्नु', 0, true], ]) |
/src/Symfony/Component/String/Tests/AbstractUnicodeTestCase.php:158 | 1 | return array_merge(parent::provideIndexOfLast( ), [[null, '한국어', '', 0], [1, '한국어', '국', 0], [5, '한국어어어어국국', '어', 0], [15, 'abcdéf12é45abcdéf', 'é', 0], [8, 'abcdéf12é45abcdéf', 'é', -4], ]) |
/src/Symfony/Component/String/Tests/AbstractUnicodeTestCase.php:142 | 1 | return array_merge(parent::provideIndexOfIgnoreCase( ), [[3, 'DÉJÀ', 'À', 0], [3, 'DÉJÀ', 'à', 0], [1, 'DÉJÀ', 'É', 1], [1, 'DÉJÀ', 'é', 1], [1, 'aςσb', 'ΣΣ', 0], [16, 'der Straße nach Paris', 'Paris', 0], [8, 'der Straße nach Paris', 'ß', 4], ]) |
/src/Symfony/Component/String/Tests/UnicodeStringTest.php:75 | 1 | return array_merge(parent::provideChunk( ), [['अनुच्छेद', [static::createFromString('अ'), static::createFromString('नु'), static::createFromString('च्'), static::createFromString('छे'), static::createFromString('द'), ], 1, ], ]) |
/src/Symfony/Component/String/Tests/UnicodeStringTest.php:54 | 1 | return array_merge(parent::provideSplit( ), [['अ.नु.च्.छे.द', '.', [static::createFromString('अ'), static::createFromString('नु'), static::createFromString('च्'), static::createFromString('छे'), static::createFromString('द'), ], null, ], ]) |
/src/Symfony/Component/String/Tests/UnicodeStringTest.php:186 | 1 | return array_merge(parent::provideBeforeAfterIgnoreCase( ), [['दछेच्नुअ', 'छेछे', 'दछेच्नुअ', 0, false], ['दछेच्नुअ', 'छेछे', 'दछेच्नुअ', 0, true], ['छेच्नुअ', 'छे', 'दछेच्नुअ', 0, false], ['द', 'छे', 'दछेच्नुअ', 0, true], ]) |
/src/Symfony/Component/String/Tests/UnicodeStringTest.php:95 | 1 | return array_merge(parent::provideBytesAt( ), [[[0xC3, 0xA4], "Spa\u{0308}ßchen", 2], [[0x61, 0xCC, 0x88], "Spa\u{0308}ßchen", 2, UnicodeString::NFD], [[0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D], 'नमस्ते', 2], ]) |
/src/Symfony/Component/String/Tests/AbstractAsciiTestCase.php:1322 | 1 | return [[true, '', ''], [false, '', 'foo'], [false, 'foo', ''], [false, 'foo', 'Foo'], [false, "foo\n", 'foo'], [true, 'Foo bar', 'Foo bar'], [true, 'Foo bar', new ByteString('Foo bar')], [true, 'Foo bar', new CodePointString('Foo bar')], [true, 'Foo bar', new UnicodeString('Foo bar')], [false, '', [ ]], [false, 'foo', ['bar', 'baz']], [true, 'foo', ['bar', 'foo', 'baz']], ] |
/src/Symfony/Component/String/Tests/AbstractAsciiTestCase.php:1174 | 1 | return [[false, '', ''], [false, '', 'foo'], [false, 'foo', ''], [false, 'foo', 'f'], [false, "foo\n", 'o'], [true, 'foo', 'O'], [true, 'Foo', 'foo'], [true, 'foo', new ByteString('O')], [true, 'foo', new CodePointString('O')], [true, 'foo', new UnicodeString('O')], [true, 'foo', ['A', 'O', 'U']], ] |
/src/Symfony/Component/String/Tests/UnicodeStringTest.php:26 | 1 | return array_merge(parent::provideWrap( ), [[['Käse' => static::createFromString('köstlich'), 'fromage' => static::createFromString('délicieux')], ["Ka\u{0308}se" => "ko\u{0308}stlich", 'fromage' => 'délicieux'], ], [['a' => 1, 'ä' => ['ö' => 2, 'ü' => 3]], ['a' => 1, "a\u{0308}" => ["o\u{0308}" => 2, 'ü' => 3]], ], ]) |
/src/Symfony/Component/String/Tests/AbstractAsciiTestCase.php:1348 | 1 | return [[true, '', ''], [false, '', 'foo'], [false, 'foo', ''], [false, "foo\n", 'foo'], [true, 'foo Bar', 'FOO bar'], [true, 'foo Bar', new ByteString('FOO bar')], [true, 'foo Bar', new CodePointString('FOO bar')], [true, 'foo Bar', new UnicodeString('FOO bar')], [false, '', [ ]], [false, 'Foo', ['bar', 'baz']], [true, 'Foo', ['bar', 'foo', 'baz']], ] |
/src/Symfony/Component/String/Tests/AbstractAsciiTestCase.php:1094 | 1 | return [[false, '', ''], [false, '', 'foo'], [false, 'foo', ''], [false, 'foo', 'o'], [false, 'foo', 'F'], [false, "\nfoo", 'f'], [true, 'foo', 'f'], [true, 'foo', 'fo'], [true, 'foo', new ByteString('f')], [true, 'foo', new CodePointString('f')], [true, 'foo', new UnicodeString('f')], [true, 'foo', ['e', 'f', 'g']], ] |
/src/Symfony/Component/String/Tests/AbstractAsciiTestCase.php:459 | 1 | return [['', [ ], 1, ], ['hello', [static::createFromString('h'), static::createFromString('e'), static::createFromString('l'), static::createFromString('l'), static::createFromString('o'), ], 1, ], ['hello you!', [static::createFromString('h'), static::createFromString('e'), static::createFromString('l'), static::createFromString('l'), static::createFromString('o'), static::createFromString(' '), static::createFromString('y'), static::createFromString('o'), static::createFromString('u'), static::createFromString('!'), ], 1, ], ['hell', [static::createFromString('h'), static::createFromString('e'), static::createFromString('l'), static::createFromString('l'), ], 1, ], ['hell', [static::createFromString('he'), static::createFromString('ll'), ], 2, ], [str_repeat('-', 65537), [static::createFromString(str_repeat('-', 65536)), static::createFromString('-'), ], 65536, ], ] |
/src/Symfony/Component/String/Tests/AbstractAsciiTestCase.php:1148 | 1 | return [[false, '', ''], [false, '', 'foo'], [false, 'foo', ''], [false, 'foo', 'f'], [false, 'foo', 'O'], [false, "foo\n", 'o'], [true, 'foo', 'o'], [true, 'foo', 'foo'], [true, 'foo', new ByteString('o')], [true, 'foo', new CodePointString('o')], [true, 'foo', new UnicodeString('o')], [true, 'foo', ['a', 'o', 'u']], ] |
/src/Symfony/Component/String/Tests/AbstractAsciiTestCase.php:1120 | 1 | return [[false, '', ''], [false, '', 'foo'], [false, 'foo', ''], [false, 'foo', 'o'], [false, "\nfoo", 'f'], [true, 'foo', 'F'], [true, 'FoO', 'foo'], [true, 'foo', new ByteString('F')], [true, 'foo', new CodePointString('F')], [true, 'foo', new UnicodeString('F')], [true, 'foo', ['E', 'F', 'G']], ] |
/src/Symfony/Component/Routing/Tests/RouteTest.php:359 | 1 | return [[new Route('/foo')], [(new Route('/foo'))->setDefault('_locale', 'en')], [(new Route('/foo'))->setDefault('_locale', 'en')->setDefault('_canonical_route', 'foo')], [(new Route('/foo'))->setDefault('_locale', 'en')->setDefault('_canonical_route', 'foo')->setRequirement('_locale', 'foobar')], ] |
/src/Symfony/Component/Routing/Tests/Matcher/Dumper/CompiledUrlMatcherDumperTest.php:461 | 1 | return [[new RouteCollection( ), 'compiled_url_matcher0.php'], [$collection, 'compiled_url_matcher1.php'], [$redirectCollection, 'compiled_url_matcher2.php'], [$rootprefixCollection, 'compiled_url_matcher3.php'], [$headMatchCasesCollection, 'compiled_url_matcher4.php'], [$groupOptimisedCollection, 'compiled_url_matcher5.php'], [$trailingSlashCollection, 'compiled_url_matcher6.php'], [$trailingSlashCollection, 'compiled_url_matcher7.php'], [$unicodeCollection, 'compiled_url_matcher8.php'], [$hostTreeCollection, 'compiled_url_matcher9.php'], [$chunkedCollection, 'compiled_url_matcher10.php'], [$demoCollection, 'compiled_url_matcher11.php'], [$suffixCollection, 'compiled_url_matcher12.php'], [$hostCollection, 'compiled_url_matcher13.php'], [$fixedLocaleCollection, 'compiled_url_matcher14.php'], ] |
/src/Symfony/Component/Routing/Tests/Generator/UrlGeneratorTest.php:141 | 1 | return ['null' => ['', 'foo', null], 'string' => ['?foo=bar', 'foo', 'bar'], 'boolean-false' => ['?foo=0', 'foo', false], 'boolean-true' => ['?foo=1', 'foo', true], 'object implementing __toString()' => ['?foo=bar', 'foo', new StringableObject( )], 'object implementing __toString() but has public property' => ['?foo%5Bfoo%5D=property', 'foo', new StringableObjectWithPublicProperty( )], 'object implementing __toString() in nested array' => ['?foo%5Bbaz%5D=bar', 'foo', ['baz' => new StringableObject( )]], 'object implementing __toString() in nested array but has public property' => ['?foo%5Bbaz%5D%5Bfoo%5D=property', 'foo', ['baz' => new StringableObjectWithPublicProperty( )]], 'stdClass' => ['?foo%5Bbaz%5D=bar', 'foo', $stdClass], 'stdClass in nested stdClass' => ['?foo%5Bnested%5D%5Bbaz%5D=bar', 'foo', $nestedStdClass], 'non stringable object' => ['', 'foo', new NonStringableObject( )], 'non stringable object but has public property' => ['?foo%5Bfoo%5D=property', 'foo', new NonStringableObjectWithPublicProperty( )], ] |
/src/Symfony/Component/Routing/Matcher/UrlMatcher.php:261 | 1 | return Request::create($this->context->getScheme( ) . '://' . $this->context->getHost( ) . $this->context->getBaseUrl( ) . $pathinfo, $this->context->getMethod( ), $this->context->getParameters( ), [ ], [ ], ['SCRIPT_FILENAME' => $this->context->getBaseUrl( ), 'SCRIPT_NAME' => $this->context->getBaseUrl( ), ]) |
/src/Symfony/Component/String/Tests/AbstractUnicodeTestCase.php:508 | 1 | return array_merge(parent::provideReplaceIgnoreCase( ), [['ΣΣΣ', 3, 'σσσ', 'σ', 'Σ'], ['ΣΣΣ', 3, 'σσσ', 'ς', 'Σ'], ['Σσ', 1, 'σσσ', 'σσ', 'Σ'], ['漢字はユニコード', 0, '漢字はユニコード', 'foo', 'bar'], ['漢字ーユニコード', 1, '漢字はユニコード', 'は', 'ー'], ['This is a jamais-vu situation!', 1, 'This is a déjà-vu situation!', 'DÉjÀ', 'jamais'], ]) |
/src/Symfony/Component/String/Tests/FunctionsTest.php:35 | 1 | return [[new UnicodeString(''), ''], [new UnicodeString(''), null], [new UnicodeString('foo'), 'foo'], [new UnicodeString('अनुच्छेद'), 'अनुच्छेद'], [new ByteString("b\x80ar"), "b\x80ar"], [new ByteString("\xfe\xff"), "\xfe\xff"], ] |
/src/Symfony/Component/Routing/CompiledRoute.php:54 | 1 | return ['vars' => $this->variables, 'path_prefix' => $this->staticPrefix, 'path_regex' => $this->regex, 'path_tokens' => $this->tokens, 'path_vars' => $this->pathVariables, 'host_regex' => $this->hostRegex, 'host_tokens' => $this->hostTokens, 'host_vars' => $this->hostVariables, ] |
/src/Symfony/Component/Routing/Route.php:63 | 1 | return ['path' => $this->path, 'host' => $this->host, 'defaults' => $this->defaults, 'requirements' => $this->requirements, 'options' => $this->options, 'schemes' => $this->schemes, 'methods' => $this->methods, 'condition' => $this->condition, 'compiled' => $this->compiled, ] |
/src/Symfony/Component/String/Tests/AbstractUnicodeTestCase.php:355 | 1 | return array_merge(parent::provideSlice( ), [['jà', 'déjà', 2, null], ['jà', 'déjà', 2, null], ['jà', 'déjà', -2, null], ['jà', 'déjà', -2, 3], ['', 'déjà', -1, 0], ['', 'déjà', 1, -4], ['j', 'déjà', -2, -1], ['', 'déjà', -2, -2], ['', 'déjà', 5, 0], ['', 'déjà', -5, 0], ]) |
/src/Symfony/Component/String/Tests/AbstractUnicodeTestCase.php:433 | 1 | return array_merge(parent::provideBeforeAfterIgnoreCase( ), [['jàdéjà', 'JÀ', 'déjàdéjà', 0, false], ['dé', 'jÀ', 'déjàdéjà', 0, true], ['éjàdéjà', 'é', 'déjàdéjà', 0, false], ['d', 'é', 'déjàdéjà', 0, true], ['déjàdéjà', 'Ç', 'déjàdéjà', 0, false], ['déjàdéjà', 'Ç', 'déjàdéjà', 0, true], ]) |
/src/Symfony/Component/String/Tests/AbstractUnicodeTestCase.php:448 | 1 | return array_merge(parent::provideBeforeAfterLast( ), [['déjàdéjà', 'Ç', 'déjàdéjà', 0, false], ['déjàdéjà', 'Ç', 'déjàdéjà', 0, true], ['éjà', 'é', 'déjàdéjà', 0, false], ['déjàd', 'é', 'déjàdéjà', 0, true], ]) |
/src/Symfony/Component/String/Tests/AbstractUnicodeTestCase.php:485 | 1 | return array_merge(parent::provideReplace( ), [['ΣσΣ', 1, 'Σσς', 'ς', 'Σ'], ['漢字はユニコード', 0, '漢字はユニコード', 'foo', 'bar'], ['漢字ーユニコード', 1, '漢字はユニコード', 'は', 'ー'], ['This is a jamais-vu situation!', 1, 'This is a déjà-vu situation!', 'déjà', 'jamais'], ]) |
/src/Symfony/Component/String/Tests/AbstractUnicodeTestCase.php:173 | 1 | return array_merge(parent::provideIndexOfLastIgnoreCase( ), [[null, '한국어', '', 0], [3, 'DÉJÀ', 'à', 0], [3, 'DÉJÀ', 'À', 0], [6, 'DÉJÀÀÀÀ', 'à', 0], [6, 'DÉJÀÀÀÀ', 'à', 3], [5, 'DÉJÀÀÀÀ', 'àà', 0], [2, 'DÉJÀÀÀÀ', 'jà', 0], [2, 'DÉJÀÀÀÀ', 'jà', -5], [6, 'DÉJÀÀÀÀ!', 'à', -2], [5, 'DÉJÀÀÀÀ', 'à', -2], [15, 'abcdéf12é45abcdéf', 'é', 0], [8, 'abcdéf12é45abcdéf', 'é', -4], [1, 'aςσb', 'ΣΣ', 0], ]) |
/src/Symfony/Component/String/Tests/AbstractUnicodeTestCase.php:196 | 1 | return array_merge(parent::provideSplit( ), [['會|意|文|字|/|会|意|文|字', '|', [static::createFromString('會'), static::createFromString('意'), static::createFromString('文'), static::createFromString('字'), static::createFromString('/'), static::createFromString('会'), static::createFromString('意'), static::createFromString('文'), static::createFromString('字'), ], null, ], ['會|意|文|字|/|会|意|文|字', '|', [static::createFromString('會'), static::createFromString('意'), static::createFromString('文'), static::createFromString('字'), static::createFromString('/|会|意|文|字'), ], 5, ], ]) |
/src/Symfony/Component/String/Tests/AbstractUnicodeTestCase.php:233 | 1 | return array_merge(parent::provideChunk( ), [['déjà', [static::createFromString('d'), static::createFromString('é'), static::createFromString('j'), static::createFromString('à'), ], 1, ], ['déjà', [static::createFromString('dé'), static::createFromString('jà'), ], 2, ], ]) |
/src/Symfony/Component/String/Tests/AbstractUnicodeTestCase.php:328 | 1 | return array_merge(parent::provideTitle( ), [['Deja', 'deja', false], ['Σσς', 'σσς', false], ['DEJa', 'dEJa', false], ['ΣσΣ', 'σσΣ', false], ['Deja Σσς DEJa ΣσΣ', 'deja σσς dEJa σσΣ', true], ['Última prueba', 'última prueba', false], ['ÚLTIMA pRUEBA', 'úLTIMA pRUEBA', false], ['¡Hola spain!', '¡hola spain!', false], ['¡HOLA sPAIN!', '¡hOLA sPAIN!', false], ['¡Hola Spain!', '¡hola spain!', true], ['¡HOLA SPAIN!', '¡hOLA sPAIN!', true], ['Última Prueba', 'última prueba', true], ['ÚLTIMA PRUEBA', 'úLTIMA pRUEBA', true], ]) |
/src/Symfony/Component/CssSelector/Tests/Parser/Handler/NumberHandlerTest.php:22 | 1 | return [['12', new Token(Token::TYPE_NUMBER, '12', 0), ''], ['12.34', new Token(Token::TYPE_NUMBER, '12.34', 0), ''], ['+12.34', new Token(Token::TYPE_NUMBER, '+12.34', 0), ''], ['-12.34', new Token(Token::TYPE_NUMBER, '-12.34', 0), ''], ['12 arg', new Token(Token::TYPE_NUMBER, '12', 0), ' arg'], ['12]', new Token(Token::TYPE_NUMBER, '12', 0), ']'], ] |
/src/Symfony/Component/CssSelector/Tests/Parser/Handler/HashHandlerTest.php:23 | 1 | return [['#id', new Token(Token::TYPE_HASH, 'id', 0), ''], ['#123', new Token(Token::TYPE_HASH, '123', 0), ''], ['#id.class', new Token(Token::TYPE_HASH, 'id', 0), '.class'], ['#id element', new Token(Token::TYPE_HASH, 'id', 0), ' element'], ] |
/src/Symfony/Component/CssSelector/Tests/Parser/ParserTest.php:160 | 1 | return [['attributes(href)/html/body/a', SyntaxErrorException::unexpectedToken('selector', new Token(Token::TYPE_DELIMITER, '(', 10))->getMessage( )], ['attributes(href)', SyntaxErrorException::unexpectedToken('selector', new Token(Token::TYPE_DELIMITER, '(', 10))->getMessage( )], ['html/body/a', SyntaxErrorException::unexpectedToken('selector', new Token(Token::TYPE_DELIMITER, '/', 4))->getMessage( )], [' ', SyntaxErrorException::unexpectedToken('selector', new Token(Token::TYPE_FILE_END, '', 1))->getMessage( )], ['div, ', SyntaxErrorException::unexpectedToken('selector', new Token(Token::TYPE_FILE_END, '', 5))->getMessage( )], [' , div', SyntaxErrorException::unexpectedToken('selector', new Token(Token::TYPE_DELIMITER, ',', 1))->getMessage( )], ['p, , div', SyntaxErrorException::unexpectedToken('selector', new Token(Token::TYPE_DELIMITER, ',', 3))->getMessage( )], ['div > ', SyntaxErrorException::unexpectedToken('selector', new Token(Token::TYPE_FILE_END, '', 6))->getMessage( )], [' > div', SyntaxErrorException::unexpectedToken('selector', new Token(Token::TYPE_DELIMITER, '>', 2))->getMessage( )], ['foo|#bar', SyntaxErrorException::unexpectedToken('identifier or "*"', new Token(Token::TYPE_HASH, 'bar', 4))->getMessage( )], ['#.foo', SyntaxErrorException::unexpectedToken('selector', new Token(Token::TYPE_DELIMITER, '#', 0))->getMessage( )], ['.#foo', SyntaxErrorException::unexpectedToken('identifier', new Token(Token::TYPE_HASH, 'foo', 1))->getMessage( )], [':#foo', SyntaxErrorException::unexpectedToken('identifier', new Token(Token::TYPE_HASH, 'foo', 1))->getMessage( )], ['[*]', SyntaxErrorException::unexpectedToken('"|"', new Token(Token::TYPE_DELIMITER, ']', 2))->getMessage( )], ['[foo|]', SyntaxErrorException::unexpectedToken('identifier', new Token(Token::TYPE_DELIMITER, ']', 5))->getMessage( )], ['[#]', SyntaxErrorException::unexpectedToken('identifier or "*"', new Token(Token::TYPE_DELIMITER, '#', 1))->getMessage( )], ['[foo=#]', SyntaxErrorException::unexpectedToken('string or identifier', new Token(Token::TYPE_DELIMITER, '#', 5))->getMessage( )], [':nth-child()', SyntaxErrorException::unexpectedToken('at least one argument', new Token(Token::TYPE_DELIMITER, ')', 11))->getMessage( )], ['[href]a', SyntaxErrorException::unexpectedToken('selector', new Token(Token::TYPE_IDENTIFIER, 'a', 6))->getMessage( )], ['[rel:stylesheet]', SyntaxErrorException::unexpectedToken('operator', new Token(Token::TYPE_DELIMITER, ':', 4))->getMessage( )], ['[rel=stylesheet', SyntaxErrorException::unexpectedToken('"]"', new Token(Token::TYPE_FILE_END, '', 15))->getMessage( )], [':lang(fr', SyntaxErrorException::unexpectedToken('an argument', new Token(Token::TYPE_FILE_END, '', 8))->getMessage( )], [':contains("foo', SyntaxErrorException::unclosedString(10)->getMessage( )], ['foo!', SyntaxErrorException::unexpectedToken('selector', new Token(Token::TYPE_DELIMITER, '!', 3))->getMessage( )], [':scope > div :scope header', SyntaxErrorException::notAtTheStartOfASelector('scope')->getMessage( )], ] |
/src/Symfony/Component/CssSelector/XPath/Extension/HtmlExtension.php:102 | 1 | return $xpath->addCondition('(' . '@href and (' . "name(.) = 'a'" . " or name(.) = 'link'" . " or name(.) = 'area'" . ')' . ') or (' . '(' . "name(.) = 'command'" . " or name(.) = 'fieldset'" . " or name(.) = 'optgroup'" . ')' . ' and not(@disabled)' . ') or (' . '(' . "(name(.) = 'input' and @type != 'hidden')" . " or name(.) = 'button'" . " or name(.) = 'select'" . " or name(.) = 'textarea'" . " or name(.) = 'keygen'" . ')' . ' and not (@disabled or ancestor::fieldset[@disabled])' . ') or (' . "name(.) = 'option' and not(" . '@disabled or ancestor::optgroup[@disabled]' . ')' . ')') |
/src/Symfony/Component/CssSelector/XPath/Extension/HtmlExtension.php:41 | 1 | return ['checked' => $this->translateChecked(...), 'link' => $this->translateLink(...), 'disabled' => $this->translateDisabled(...), 'enabled' => $this->translateEnabled(...), 'selected' => $this->translateSelected(...), 'invalid' => $this->translateInvalid(...), 'hover' => $this->translateHover(...), 'visited' => $this->translateVisited(...), ] |
/src/Symfony/Component/CssSelector/XPath/Extension/AttributeMatchingExtension.php:31 | 1 | return ['exists' => $this->translateExists(...), '=' => $this->translateEquals(...), '~=' => $this->translateIncludes(...), '|=' => $this->translateDashMatch(...), '^=' => $this->translatePrefixMatch(...), '$=' => $this->translateSuffixMatch(...), '*=' => $this->translateSubstringMatch(...), '!=' => $this->translateDifferent(...), ] |
/src/Symfony/Component/CssSelector/XPath/Extension/NodeExtension.php:64 | 1 | return ['Selector' => $this->translateSelector(...), 'CombinedSelector' => $this->translateCombinedSelector(...), 'Negation' => $this->translateNegation(...), 'Function' => $this->translateFunction(...), 'Pseudo' => $this->translatePseudo(...), 'Attribute' => $this->translateAttribute(...), 'Class' => $this->translateClass(...), 'Hash' => $this->translateHash(...), 'Element' => $this->translateElement(...), ] |
/src/Symfony/Component/CssSelector/XPath/Extension/PseudoClassExtension.php:31 | 1 | return ['root' => $this->translateRoot(...), 'scope' => $this->translateScopePseudo(...), 'first-child' => $this->translateFirstChild(...), 'last-child' => $this->translateLastChild(...), 'first-of-type' => $this->translateFirstOfType(...), 'last-of-type' => $this->translateLastOfType(...), 'only-child' => $this->translateOnlyChild(...), 'only-of-type' => $this->translateOnlyOfType(...), 'empty' => $this->translateEmpty(...), ] |
/src/Symfony/Component/CssSelector/XPath/Extension/FunctionExtension.php:35 | 1 | return ['nth-child' => $this->translateNthChild(...), 'nth-last-child' => $this->translateNthLastChild(...), 'nth-of-type' => $this->translateNthOfType(...), 'nth-last-of-type' => $this->translateNthLastOfType(...), 'contains' => $this->translateContains(...), 'lang' => $this->translateLang(...), ] |
/src/Symfony/Component/HtmlSanitizer/Visitor/DomVisitor.php:163 | 1 | $attributeSanitizers = array_merge($this->attributeSanitizers[$domNodeName][$name] ?? [ ], $this->attributeSanitizers['*'][$name] ?? [ ], $this->attributeSanitizers[$domNodeName]['*'] ?? [ ], ) |
/src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerAllTest.php:22 | 1 | return new HtmlSanitizer((new HtmlSanitizerConfig( ))->allowStaticElements( )->allowLinkHosts(['trusted.com', 'external.com'])->allowMediaHosts(['trusted.com', 'external.com'])->allowRelativeLinks( )->allowRelativeMedias( )->forceHttpsUrls( )) |
/src/Symfony/Component/Routing/Generator/Dumper/CompiledUrlGeneratorDumper.php:77 | 1 | $compiledAliases[$name] = [$compiledTarget->getVariables( ), $target->getDefaults( ), $target->getRequirements( ), $compiledTarget->getTokens( ), $compiledTarget->getHostTokens( ), $target->getSchemes( ), $deprecations, ] |
/src/Symfony/Component/Routing/Generator/Dumper/CompiledUrlGeneratorDumper.php:33 | 1 | $compiledRoutes[$name] = [$compiledRoute->getVariables( ), $route->getDefaults( ), $route->getRequirements( ), $compiledRoute->getTokens( ), $compiledRoute->getHostTokens( ), $route->getSchemes( ), [ ], ] |
/src/Symfony/Component/Routing/Generator/UrlGenerator.php:343 | 1 | return '' === $path || '/' === $path[0] || false !== ($colonPos = strpos($path, ':')) && ($colonPos < ($slashPos = strpos($path, '/')) || false === $slashPos) ? "./$path" : $path |
/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherDumper.php:432 | 1 | return [['_route' => $name] + $defaults, $vars, array_flip($route->getMethods( )) ?: null, array_flip($route->getSchemes( )) ?: null, $hasTrailingSlash, $hasTrailingVar, $condition, ] |
/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherDumper.php:222 | 1 | $compiledRoutes[$url][] = $this->compileRoute($route, $name, (!$route->compile( )->getHostVariables( ) ? $route->getHost( ) : $route->compile( )->getHostRegex( )) ?: null, $hasTrailingSlash, false, $conditions) |
/src/Symfony/Component/VarDumper/Caster/ReflectionCaster.php:213 | 1 | $a[$prefix . 'returnType'] = new ClassStub($a[$prefix . 'returnType'] instanceof \ReflectionNamedType && $a[$prefix . 'returnType']->allowsNull( ) && !\in_array($v, ['mixed', 'null'], true) ? '?' . $v : $v, [class_exists($v, false) || interface_exists($v, false) || trait_exists($v, false) ? $v : '', '']) |
/src/Symfony/Component/VarDumper/Caster/SymfonyCaster.php:81 | 1 | $a = ['status' => new ConstStub(match ($a['status']) { /**/ } , $a['status'])] |
/src/Symfony/Component/VarDumper/Caster/ReflectionCaster.php:100 | 1 | $a += [$prefix . 'name' => $c instanceof \ReflectionNamedType ? $c->getName( ) : (string) $c, $prefix . 'allowsNull' => $c->allowsNull( ), $prefix . 'isBuiltin' => $c->isBuiltin( ), ] |
/src/Symfony/Component/VarDumper/Caster/ReflectionCaster.php:141 | 1 | $frame = ['class' => $function->class ?? null, 'type' => isset($function->class) ? ($function->isStatic( ) ? '::' : '->') : null, 'function' => $function->name, 'file' => $c->getExecutingFile( ), 'line' => $c->getExecutingLine( ), ] |
/src/Symfony/Component/CssSelector/Parser/Parser.php:84 | 1 | return [$first ? ('-' === $first || '+' === $first ? $int($first . '1') : $int($first)) : 1, isset($split[1]) && $split[1] ? $int($split[1]) : 0, ] |
/src/Symfony/Component/CssSelector/Node/AttributeNode.php:75 | 1 | return 'exists' === $this->operator ? sprintf('%s[%s[%s]]', $this->getNodeName( ), $this->selector, $attribute) : sprintf("%s[%s[%s %s '%s']]", $this->getNodeName( ), $this->selector, $attribute, $this->operator, $this->value) |
/src/Symfony/Component/CssSelector/Tests/Node/SpecificityTest.php:50 | 1 | return [[new Specificity(0, 0, 0), new Specificity(0, 0, 0), 0], [new Specificity(0, 0, 1), new Specificity(0, 0, 1), 0], [new Specificity(0, 0, 2), new Specificity(0, 0, 1), 1], [new Specificity(0, 0, 2), new Specificity(0, 0, 3), -1], [new Specificity(0, 4, 0), new Specificity(0, 4, 0), 0], [new Specificity(0, 6, 0), new Specificity(0, 5, 11), 1], [new Specificity(0, 7, 0), new Specificity(0, 8, 0), -1], [new Specificity(9, 0, 0), new Specificity(9, 0, 0), 0], [new Specificity(11, 0, 0), new Specificity(10, 11, 0), 1], [new Specificity(12, 11, 0), new Specificity(13, 0, 0), -1], ] |
/src/Symfony/Component/CssSelector/Tests/Node/CombinedSelectorNodeTest.php:29 | 1 | return [[new CombinedSelectorNode(new ElementNode( ), '>', new ElementNode( )), 0], [new CombinedSelectorNode(new ElementNode(null, 'element'), '>', new ElementNode( )), 1], [new CombinedSelectorNode(new ElementNode(null, 'element'), '>', new ElementNode(null, 'element')), 2], ] |
/src/Symfony/Component/CssSelector/Tests/Node/AttributeNodeTest.php:30 | 1 | return [[new AttributeNode(new ElementNode( ), null, 'attribute', 'exists', null), 10], [new AttributeNode(new ElementNode(null, 'element'), null, 'attribute', 'exists', null), 11], [new AttributeNode(new ElementNode( ), null, 'attribute', '$=', 'value'), 10], [new AttributeNode(new ElementNode( ), 'namespace', 'attribute', '$=', 'value'), 10], ] |
/src/Symfony/Component/CssSelector/Tests/Node/SpecificityTest.php:33 | 1 | return [[new Specificity(0, 0, 0), 0], [new Specificity(0, 0, 2), 2], [new Specificity(0, 3, 0), 30], [new Specificity(4, 0, 0), 400], [new Specificity(4, 3, 2), 432], ] |
/src/Symfony/Component/CssSelector/Tests/Node/FunctionNodeTest.php:36 | 1 | return [[new FunctionNode(new ElementNode( ), 'function'), 10], [new FunctionNode(new ElementNode( ), 'function', [new Token(Token::TYPE_IDENTIFIER, 'value', 0), ]), 10], [new FunctionNode(new ElementNode( ), 'function', [new Token(Token::TYPE_STRING, 'value1', 0), new Token(Token::TYPE_NUMBER, 'value2', 0), ]), 10], ] |
/src/Symfony/Component/CssSelector/Tests/Node/AttributeNodeTest.php:21 | 1 | return [[new AttributeNode(new ElementNode( ), null, 'attribute', 'exists', null), 'Attribute[Element[*][attribute]]'], [new AttributeNode(new ElementNode( ), null, 'attribute', '$=', 'value'), "Attribute[Element[*][attribute $= 'value']]"], [new AttributeNode(new ElementNode( ), 'namespace', 'attribute', '$=', 'value'), "Attribute[Element[*][namespace|attribute $= 'value']]"], ] |
/src/Symfony/Component/CssSelector/Tests/Parser/Handler/IdentifierHandlerTest.php:23 | 1 | return [['foo', new Token(Token::TYPE_IDENTIFIER, 'foo', 0), ''], ['foo|bar', new Token(Token::TYPE_IDENTIFIER, 'foo', 0), '|bar'], ['foo.class', new Token(Token::TYPE_IDENTIFIER, 'foo', 0), '.class'], ['foo[attr]', new Token(Token::TYPE_IDENTIFIER, 'foo', 0), '[attr]'], ['foo bar', new Token(Token::TYPE_IDENTIFIER, 'foo', 0), ' bar'], ] |
/src/Symfony/Component/CssSelector/Tests/Node/FunctionNodeTest.php:22 | 1 | return [[new FunctionNode(new ElementNode( ), 'function'), 'Function[Element[*]:function()]'], [new FunctionNode(new ElementNode( ), 'function', [new Token(Token::TYPE_IDENTIFIER, 'value', 0), ]), "Function[Element[*]:function(['value'])]"], [new FunctionNode(new ElementNode( ), 'function', [new Token(Token::TYPE_STRING, 'value1', 0), new Token(Token::TYPE_NUMBER, 'value2', 0), ]), "Function[Element[*]:function(['value1', 'value2'])]"], ] |
/src/Symfony/Component/CssSelector/Tests/Parser/Handler/WhitespaceHandlerTest.php:21 | 1 | return [[' ', new Token(Token::TYPE_WHITESPACE, ' ', 0), ''], ["\n", new Token(Token::TYPE_WHITESPACE, "\n", 0), ''], ["\t", new Token(Token::TYPE_WHITESPACE, "\t", 0), ''], [' foo', new Token(Token::TYPE_WHITESPACE, ' ', 0), 'foo'], [' .foo', new Token(Token::TYPE_WHITESPACE, ' ', 0), '.foo'], ] |
/src/Symfony/Component/CssSelector/Tests/Parser/Handler/StringHandlerTest.php:23 | 1 | return [['"hello"', new Token(Token::TYPE_STRING, 'hello', 1), ''], ['"1"', new Token(Token::TYPE_STRING, '1', 1), ''], ['" "', new Token(Token::TYPE_STRING, ' ', 1), ''], ['""', new Token(Token::TYPE_STRING, '', 1), ''], ["'hello'", new Token(Token::TYPE_STRING, 'hello', 1), ''], ["'foo'bar", new Token(Token::TYPE_STRING, 'foo', 1), 'bar'], ] |
/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterServiceSubscribersPassTest.php:243 | 1 | $expected = [TestServiceSubscriberChild::class . '::invalidDefinition' => new ServiceClosureArgument(new TypedReference('Symfony\Component\DependencyInjection\Tests\Fixtures\InvalidDefinition', 'Symfony\Component\DependencyInjection\Tests\Fixtures\InvalidDefinition')), TestServiceSubscriberChild::class . '::testDefinition2' => new ServiceClosureArgument(new TypedReference(TestDefinition2::class, TestDefinition2::class, ContainerInterface::IGNORE_ON_INVALID_REFERENCE)), TestServiceSubscriberChild::class . '::testDefinition4' => new ServiceClosureArgument(new TypedReference(TestDefinition3::class, TestDefinition3::class)), TestServiceSubscriberParent::class . '::testDefinition1' => new ServiceClosureArgument(new TypedReference(TestDefinition1::class, TestDefinition1::class)), 'custom_name' => new ServiceClosureArgument(new TypedReference(TestDefinition3::class, TestDefinition3::class, ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, 'custom_name')), ] |
/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterServiceSubscribersPassTest.php:333 | 1 | $expected = [TestServiceSubscriberUnionWithTrait::class . '::method1' => new ServiceClosureArgument(new TypedReference(TestDefinition1::class . '|' . TestDefinition2::class . '|null', TestDefinition1::class . '|' . TestDefinition2::class . '|null', ContainerInterface::IGNORE_ON_INVALID_REFERENCE)), TestServiceSubscriberUnionWithTrait::class . '::method2' => new ServiceClosureArgument(new TypedReference(TestDefinition1::class . '|' . TestDefinition2::class, TestDefinition1::class . '|' . TestDefinition2::class)), ] |
/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterServiceSubscribersPassTest.php:395 | 1 | $expected = ['some.service' => new ServiceClosureArgument(new TypedReference('stdClass', 'stdClass', ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, 'some.service')), 'some_service' => new ServiceClosureArgument(new TypedReference('stdClass', 'stdClass', ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, 'some_service')), 'another_service' => new ServiceClosureArgument(new TypedReference('stdClass', 'stdClass', ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, 'anotherService')), ] |
/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterServiceSubscribersPassTest.php:404 | 1 | $expected = ['some.service' => new ServiceClosureArgument(new TypedReference('stdClass $someService', 'stdClass')), 'some_service' => new ServiceClosureArgument(new TypedReference('stdClass $some_service', 'stdClass')), 'another_service' => new ServiceClosureArgument(new TypedReference('stdClass $anotherService', 'stdClass')), ] |
/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterServiceSubscribersPassTest.php:423 | 1 | return [new SubscribedService('tagged.iterator', 'iterable', attributes : new TaggedIterator('tag')), new SubscribedService('tagged.locator', PsrContainerInterface::class, attributes : new TaggedLocator('tag')), new SubscribedService('autowired', 'stdClass', attributes : new Autowire(service : 'service.id')), new SubscribedService('autowired.nullable', 'stdClass', nullable : true, attributes : new Autowire(service : 'service.id')), new SubscribedService('autowired.parameter', 'string', attributes : new Autowire('%parameter.1%')), new SubscribedService('autowire.decorated', \stdClass::class, attributes : new AutowireDecorated( )), new SubscribedService('target', \stdClass::class, attributes : new Target('someTarget')), ] |
/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterServiceSubscribersPassTest.php:446 | 1 | $expected = ['tagged.iterator' => new ServiceClosureArgument(new TypedReference('iterable', 'iterable', ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, 'tagged.iterator', [new TaggedIterator('tag')])), 'tagged.locator' => new ServiceClosureArgument(new TypedReference(PsrContainerInterface::class, PsrContainerInterface::class, ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, 'tagged.locator', [new TaggedLocator('tag')])), 'autowired' => new ServiceClosureArgument(new TypedReference('stdClass', 'stdClass', ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, 'autowired', [new Autowire(service : 'service.id')])), 'autowired.nullable' => new ServiceClosureArgument(new TypedReference('stdClass', 'stdClass', ContainerInterface::IGNORE_ON_INVALID_REFERENCE, 'autowired.nullable', [new Autowire(service : 'service.id')])), 'autowired.parameter' => new ServiceClosureArgument(new TypedReference('string', 'string', ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, 'autowired.parameter', [new Autowire(service : '%parameter.1%')])), 'autowire.decorated' => new ServiceClosureArgument(new TypedReference('stdClass', 'stdClass', ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, 'autowire.decorated', [new AutowireDecorated( )])), 'target' => new ServiceClosureArgument(new TypedReference('stdClass', 'stdClass', ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, 'target', [new Target('someTarget')])), ] |
/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterServiceSubscribersPassTest.php:459 | 1 | $expected = ['tagged.iterator' => new ServiceClosureArgument(new TaggedIteratorArgument('tag')), 'tagged.locator' => new ServiceClosureArgument(new ServiceLocatorArgument(new TaggedIteratorArgument('tag', 'tag', needsIndexes : true))), 'autowired' => new ServiceClosureArgument(new TypedReference('service.id', 'stdClass', ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, 'autowired', [new Autowire(service : 'service.id')])), 'autowired.nullable' => new ServiceClosureArgument(new TypedReference('service.id', 'stdClass', ContainerInterface::IGNORE_ON_INVALID_REFERENCE, 'autowired.nullable', [new Autowire(service : 'service.id')])), 'autowired.parameter' => new ServiceClosureArgument('foobar'), 'autowire.decorated' => new ServiceClosureArgument(new Reference('.service_locator.oO4rxCy.inner', ContainerInterface::NULL_ON_INVALID_REFERENCE)), 'target' => new ServiceClosureArgument(new TypedReference('stdClass', 'stdClass', ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, 'target', [new Target('someTarget')])), ] |
/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterServiceSubscribersPassTest.php:489 | 2 | $expected = [TestServiceSubscriber::class => new ServiceClosureArgument(new TypedReference(TestServiceSubscriber::class, TestServiceSubscriber::class)), CustomDefinition::class => new ServiceClosureArgument(new TypedReference(CustomDefinition::class, CustomDefinition::class, ContainerInterface::IGNORE_ON_INVALID_REFERENCE)), 'bar' => new ServiceClosureArgument(new TypedReference(CustomDefinition::class, CustomDefinition::class, ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, 'bar')), 'baz' => new ServiceClosureArgument(new TypedReference(CustomDefinition::class, CustomDefinition::class, ContainerInterface::IGNORE_ON_INVALID_REFERENCE, 'baz')), 'late_alias' => new ServiceClosureArgument(new TypedReference(TestDefinition1::class, TestDefinition1::class, ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, 'late_alias')), ] |
/src/Symfony/Component/DependencyInjection/Tests/Compiler/PriorityTaggedServiceTraitTest.php:65 | 1 | $expected = [new Reference('my_service2'), new Reference('my_service17'), new Reference('my_service1'), new Reference('my_service18'), new Reference('my_service8'), new Reference('my_service15'), new Reference('my_service4'), new Reference('my_service19'), new Reference('my_service5'), new Reference('my_service16'), new Reference('my_service9'), new Reference('my_service7'), new Reference('my_service6'), new Reference('my_service3'), new Reference('my_service10'), new Reference('my_service14'), new Reference('my_service11'), new Reference('my_service12'), new Reference('my_service13'), ] |
/src/Symfony/Component/DependencyInjection/Tests/Compiler/PriorityTaggedServiceTraitTest.php:132 | 1 | $expected = ['bar_tag_class' => new TypedReference('service2', BarTagClass::class), 'b' => new TypedReference('service2', BarTagClass::class), 'bar' => new Reference('service1'), 'a' => new TypedReference('service2', BarTagClass::class), ] |
/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveInvalidReferencesPassTest.php:27 | 1 | $def = $container->register('foo')->setArguments([new Reference('bar', ContainerInterface::NULL_ON_INVALID_REFERENCE), new Reference('baz', ContainerInterface::IGNORE_ON_INVALID_REFERENCE), ])->addMethodCall('foo', [new Reference('moo', ContainerInterface::IGNORE_ON_INVALID_REFERENCE)]) |
/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveInvalidReferencesPassTest.php:47 | 1 | $def = $container->register('foo')->setArguments([[new Reference('bar', ContainerInterface::IGNORE_ON_INVALID_REFERENCE), $baz = new Reference('baz', ContainerInterface::IGNORE_ON_INVALID_REFERENCE), new Reference('moo', ContainerInterface::NULL_ON_INVALID_REFERENCE), ], ]) |
/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveInvalidReferencesPassTest.php:68 | 1 | $def = $container->register('foo')->addMethodCall('foo', [[new Reference('bar', ContainerInterface::IGNORE_ON_INVALID_REFERENCE), $baz = new Reference('baz', ContainerInterface::IGNORE_ON_INVALID_REFERENCE), new Reference('moo', ContainerInterface::NULL_ON_INVALID_REFERENCE), ], ]) |
/src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php:857 | 1 | $argument = new TaggedIteratorArgument($argument['tag'], $argument['index_by'] ?? null, $argument['default_index_method'] ?? null, $forLocator, $argument['default_priority_method'] ?? null, (array) ($argument['exclude'] ?? null), $argument['exclude_self'] ?? true) |
/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php:605 | 1 | $arguments[$key] = new TaggedIteratorArgument($arg->getAttribute('tag'), $arg->getAttribute('index-by') ?: null, $arg->getAttribute('default-index-method') ?: null, $forLocator, $arg->getAttribute('default-priority-method') ?: null, $excludes, !$arg->hasAttribute('exclude-self') || XmlUtils::phpize($arg->getAttribute('exclude-self'))) |
/src/Symfony/Component/DependencyInjection/LazyProxy/PhpDumper/LazyServiceDumper.php:147 | 1 | return preg_replace('/^.*\\\\/', '', $definition->getClass( )) . ($asGhostObject ? 'Ghost' : 'Proxy') . ucfirst(substr(hash('sha256', $this->salt . '+' . $class->name . '+' . serialize($definition->getTag('proxy'))), -7)) |
/src/Symfony/Component/DependencyInjection/Compiler/PassConfig.php:54 | 1 | $this->optimizationPasses = [[new AutoAliasServicePass( ), new ValidateEnvPlaceholdersPass( ), new ResolveDecoratorStackPass( ), new ResolveChildDefinitionsPass( ), new RegisterServiceSubscribersPass( ), new ResolveParameterPlaceHoldersPass(false, false), new ResolveFactoryClassPass( ), new ResolveNamedArgumentsPass( ), new AutowireRequiredMethodsPass( ), new AutowireRequiredPropertiesPass( ), new ResolveBindingsPass( ), new ServiceLocatorTagPass( ), new DecoratorServicePass( ), new CheckDefinitionValidityPass( ), new AutowirePass(false), new ServiceLocatorTagPass( ), new ResolveTaggedIteratorArgumentPass( ), new ResolveServiceSubscribersPass( ), new ResolveReferencesToAliasesPass( ), new ResolveInvalidReferencesPass( ), new AnalyzeServiceReferencesPass(true), new CheckCircularReferencesPass( ), new CheckReferenceValidityPass( ), new CheckArgumentsValidityPass(false), ]] |
/src/Symfony/Component/DependencyInjection/Compiler/PassConfig.php:42 | 1 | $this->beforeOptimizationPasses = [100 => [new ResolveClassPass( ), new RegisterAutoconfigureAttributesPass( ), new AutowireAsDecoratorPass( ), new AttributeAutoconfigurationPass( ), new ResolveInstanceofConditionalsPass( ), new RegisterEnvVarProcessorsPass( ), ], -1000 => [new ExtensionCompilerPass( )], ] |
/src/Symfony/Component/DependencyInjection/Compiler/PassConfig.php:111 | 1 | return array_merge([$this->mergePass], $this->getBeforeOptimizationPasses( ), $this->getOptimizationPasses( ), $this->getBeforeRemovingPasses( ), $this->getRemovingPasses( ), $this->getAfterRemovingPasses( )) |
/src/Symfony/Component/DependencyInjection/Compiler/PassConfig.php:81 | 1 | $this->removingPasses = [[new RemovePrivateAliasesPass( ), new ReplaceAliasByActualDefinitionPass( ), new RemoveAbstractDefinitionsPass( ), new RemoveUnusedDefinitionsPass( ), new AnalyzeServiceReferencesPass( ), new CheckExceptionOnInvalidReferenceBehaviorPass( ), new InlineServiceDefinitionsPass(new AnalyzeServiceReferencesPass( )), new AnalyzeServiceReferencesPass( ), new DefinitionErrorExceptionPass( ), ]] |
/src/Symfony/Component/DependencyInjection/Dumper/GraphvizDumper.php:91 | 1 | $code .= sprintf(" node_%s [label=\"%s\\n%s\\n\", shape=%s%s];\n", $this->dotize($id), $id . ($aliases ? ' (' . implode(', ', $aliases) . ')' : ''), $node['class'], $this->options['node']['shape'], $this->addAttributes($node['attributes'])) |
/src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php:128 | 1 | $value = $v instanceof TypedReference ? new TypedReference($v, $v->getType( ), $invalidBehavior, $v->getName( ) ?? $value->getName( ), array_merge($v->getAttributes( ), $value->getAttributes( ))) : new TypedReference($v, $value->getType( ), $invalidBehavior, $value->getName( ), $value->getAttributes( )) |
/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:356 | 1 |
|
/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:138 | 1 | $options = array_merge(['class' => 'ProjectServiceContainer', 'base_class' => 'Container', 'namespace' => '', 'as_files' => false, 'debug' => true, 'hot_path_tag' => 'container.hot_path', 'preload_tags' => ['container.preload', 'container.no_preload'], 'inline_factories' => null, 'inline_class_loader' => null, 'preload_classes' => [ ], 'service_locator_tag' => 'container.service_locator', 'build_time' => time( ), ], $options) |
/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:1179 | 1 | return $return . sprintf('(($args = %s) ? (%s) : null)', $this->dumpValue(new ServiceLocatorArgument($definition->getArguments( ))), $this->getExpressionLanguage( )->compile(substr($callable, 2), ['container' => 'container', 'args' => 'args'])) . $tail |
/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:1135 | 1 | yield $file => [$code, $definition->hasTag($this->hotPathTag) || !$definition->hasTag($this->preloadTags[1]) && !$definition->isDeprecated( ) && !$definition->hasErrors( )] |
/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:1889 | 1 | $serviceMap .= sprintf("\n %s => [%s, %s, %s, %s],", $this->export($k), $this->export($definition->isShared( ) ? ($definition->isPublic( ) ? 'services' : 'privates') : false), $this->doExport($id), $this->export(ContainerInterface::IGNORE_ON_UNINITIALIZED_REFERENCE !== $v->getInvalidBehavior( ) && !\is_string($load) ? $this->generateMethodName($id) : null), $this->export($load)) |
/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:1888 | 1 | $load = !($definition->hasErrors( ) && $e = $definition->getErrors( )) ? $this->asFiles && !$this->inlineFactories && !$this->isHotPath($definition) : reset($e) |
/src/Symfony/Component/PasswordHasher/Tests/Command/UserPasswordHashCommandTest.php:318 | 1 | $hasherFactory = new PasswordHasherFactory([InMemoryUser::class => ['algorithm' => 'plaintext'], 'Custom\Class\Native\User' => ['algorithm' => 'native', 'cost' => 10], 'Custom\Class\Pbkdf2\User' => ['algorithm' => 'pbkdf2', 'hash_algorithm' => 'sha512', 'iterations' => 1000, 'encode_as_base64' => true], 'Custom\Class\Test\User' => ['algorithm' => 'test'], ]) |
/src/Symfony/Component/PasswordHasher/Hasher/PasswordHasherFactory.php:166 | 1 | return ['class' => NativePasswordHasher::class, 'arguments' => [$config['time_cost'] ?? null, (($config['memory_cost'] ?? 0) << 10) ?: null, $config['cost'] ?? null, ] + (isset($config['native_algorithm']) ? [3 => $config['native_algorithm']] : [ ]), ] |
/src/Symfony/Component/HttpFoundation/Request.php:282 | 1 | $server = array_replace(['SERVER_NAME' => 'localhost', 'SERVER_PORT' => 80, 'HTTP_HOST' => 'localhost', 'HTTP_USER_AGENT' => 'Symfony', 'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_LANGUAGE' => 'en-us,en;q=0.5', 'HTTP_ACCEPT_CHARSET' => 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'REMOTE_ADDR' => '127.0.0.1', 'SCRIPT_NAME' => '', 'SCRIPT_FILENAME' => '', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_TIME' => time( ), 'REQUEST_TIME_FLOAT' => microtime(true), ], $server) |
/src/Symfony/Component/HttpFoundation/AcceptHeader.php:84 | 1 | return $this->items[$value] ?? $this->items[explode('/', $value)[0] . '/*'] ?? $this->items['*/*'] ?? $this->items['*'] ?? null |
/src/Symfony/Component/HttpFoundation/RequestMatcher/ExpressionRequestMatcher.php:34 | 1 | return $this->language->evaluate($this->expression, ['request' => $request, 'method' => $request->getMethod( ), 'path' => rawurldecode($request->getPathInfo( )), 'host' => $request->getHost( ), 'ip' => $request->getClientIp( ), 'attributes' => $request->attributes->all( ), ]) |
/src/Symfony/Component/HttpFoundation/Tests/CookieTest.php:293 | 1 | $cookie = Cookie::create('foo')->withExpires(1)->withPath('/admin/')->withDomain('.myfoodomain.com')->withSecure(true)->withHttpOnly(true)->withSameSite('none')->withPartitioned(true) |
/src/Symfony/Component/HttpFoundation/Request.php:1017 | 1 | return !isset($path[0]) || '/' === $path[0] || false !== ($colonPos = strpos($path, ':')) && ($colonPos < ($slashPos = strpos($path, '/')) || false === $slashPos) ? "./$path" : $path |
/src/Symfony/Component/HttpFoundation/FileBag.php:116 | 1 | $files[$key] = $this->fixPhpFilesArray(['error' => $data['error'][$key], 'name' => $name, 'type' => $data['type'][$key], 'tmp_name' => $data['tmp_name'][$key], 'size' => $data['size'][$key], ]) |
/src/Symfony/Component/HttpFoundation/Tests/FileBagTest.php:109 | 1 | $bag = new FileBag(['child' => ['name' => ['file' => basename($tmpFile), ], 'type' => ['file' => 'text/plain', ], 'tmp_name' => ['file' => $tmpFile, ], 'error' => ['file' => 0, ], 'size' => ['file' => null, ], ], ]) |
/src/Symfony/Component/HttpFoundation/Tests/FileBagTest.php:138 | 1 | $bag = new FileBag(['child' => ['name' => ['sub' => ['file' => basename($tmpFile)], ], 'type' => ['sub' => ['file' => 'text/plain'], ], 'tmp_name' => ['sub' => ['file' => $tmpFile], ], 'error' => ['sub' => ['file' => 0], ], 'size' => ['sub' => ['file' => null], ], ], ]) |
/src/Symfony/Component/HttpFoundation/Tests/ResponseTest.php:1022 | 1 | $setters = ['setProtocolVersion' => '1.0', 'setCharset' => 'UTF-8', 'setPublic' => null, 'setPrivate' => null, 'setDate' => $this->createDateTimeNow( ), 'expire' => null, 'setMaxAge' => 1, 'setSharedMaxAge' => 1, 'setTtl' => 1, 'setClientTtl' => 1, ] |
/src/Symfony/Component/HttpFoundation/Tests/FileBagTest.php:93 | 1 | $bag = new FileBag(['files' => ['name' => ['file1' => ''], 'type' => ['file1' => ''], 'tmp_name' => ['file1' => ''], 'error' => ['file1' => \UPLOAD_ERR_NO_FILE], 'size' => ['file1' => 0], ]]) |
/src/Symfony/Component/HttpFoundation/Tests/AcceptHeaderTest.php:64 | 1 | return [[[ ], ''], [[new AcceptHeaderItem('gzip')], 'gzip'], [[new AcceptHeaderItem('gzip'), new AcceptHeaderItem('deflate'), new AcceptHeaderItem('sdch')], 'gzip,deflate,sdch'], [[new AcceptHeaderItem('this;should,not=matter')], 'this;should,not=matter'], ] |
/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/SessionHandlerFactoryTest.php:45 | 1 | return ['native file handler using save_path from php.ini' => ['connectionDSN' => 'file://', 'expectedPath' => \ini_get('session.save_path'), 'expectedHandlerType' => StrictSessionHandler::class], 'native file handler using provided save_path' => ['connectionDSN' => 'file://' . $base . '/session/storage', 'expectedPath' => $base . '/session/storage', 'expectedHandlerType' => StrictSessionHandler::class], ] |
/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php:349 | 1 | $request = Request::create('/', 'DELETE', [ ], [ ], [ ], ['HTTP_HOST' => 'example.com', 'HTTPS' => 'on', 'SERVER_PORT' => 443, 'PHP_AUTH_USER' => 'fabien', 'PHP_AUTH_PW' => 'pa$$', 'QUERY_STRING' => 'foo=bar', 'CONTENT_TYPE' => 'application/json', ]) |
/src/Symfony/Component/HttpFoundation/Tests/AcceptHeaderTest.php:42 | 1 | return [['', [ ]], [';;;', [ ]], ['0', [new AcceptHeaderItem('0')]], ['gzip', [new AcceptHeaderItem('gzip')]], ['gzip,deflate,sdch', [new AcceptHeaderItem('gzip'), new AcceptHeaderItem('deflate'), new AcceptHeaderItem('sdch')]], ["gzip, deflate\t,sdch", [new AcceptHeaderItem('gzip'), new AcceptHeaderItem('deflate'), new AcceptHeaderItem('sdch')]], ['"this;should,not=matter"', [new AcceptHeaderItem('this;should,not=matter')]], ] |
/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.php:750 | 1 | $int1 = (\ord($string[7]) << 24) + (\ord($string[6]) << 16) + (\ord($string[5]) << 8) + \ord($string[4]) |
/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.php:751 | 1 | $int2 = (\ord($string[3]) << 24) + (\ord($string[2]) << 16) + (\ord($string[1]) << 8) + \ord($string[0]) |
/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NativeFileSessionHandlerTest.php:55 | 1 | return [["$base/foo", "$base/foo", "$base/foo"], ["5;$base/foo", "5;$base/foo", "$base/foo"], ["5;0600;$base/foo", "5;0600;$base/foo", "$base/foo"], ] |
/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.php:747 | 1 | return (\ord($string[3]) << 24) + (\ord($string[2]) << 16) + (\ord($string[1]) << 8) + \ord($string[0]) |
/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MongoDbSessionHandler.php:123 | 1 | $fields = [$this->options['time_field'] => $this->getUTCDateTime( ), $this->options['expiry_field'] => $expiry, $this->options['data_field'] => new Binary($data, Binary::TYPE_GENERIC), ] |
/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.php:859 | 1 | $mergeSql = "INSERT INTO $this->table ($this->idCol, $this->dataCol, $this->lifetimeCol, $this->timeCol) VALUES (:id, :data, :expiry, :time) " . "ON CONFLICT ($this->idCol) DO UPDATE SET ($this->dataCol, $this->lifetimeCol, $this->timeCol) = (EXCLUDED.$this->dataCol, EXCLUDED.$this->lifetimeCol, EXCLUDED.$this->timeCol)" |
/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.php:851 | 1 | $mergeSql = "MERGE INTO $this->table WITH (HOLDLOCK) USING (SELECT 1 AS dummy) AS src ON ($this->idCol = ?) " . "WHEN NOT MATCHED THEN INSERT ($this->idCol, $this->dataCol, $this->lifetimeCol, $this->timeCol) VALUES (?, ?, ?, ?) " . "WHEN MATCHED THEN UPDATE SET $this->dataCol = ?, $this->lifetimeCol = ?, $this->timeCol = ?;" |
/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.php:845 | 1 | $mergeSql = "INSERT INTO $this->table ($this->idCol, $this->dataCol, $this->lifetimeCol, $this->timeCol) VALUES (:id, :data, :expiry, :time) " . "ON DUPLICATE KEY UPDATE $this->dataCol = VALUES($this->dataCol), $this->lifetimeCol = VALUES($this->lifetimeCol), $this->timeCol = VALUES($this->timeCol)" |
/src/Symfony/Component/Console/Input/InputOption.php:240 | 1 | return $option->getName( ) === $this->getName( ) && $option->getShortcut( ) === $this->getShortcut( ) && $option->getDefault( ) === $this->getDefault( ) && $option->isNegatable( ) === $this->isNegatable( ) && $option->isArray( ) === $this->isArray( ) && $option->isValueRequired( ) === $this->isValueRequired( ) && $option->isValueOptional( ) === $this->isValueOptional( ) |
/src/Symfony/Component/Console/DataCollector/CommandDataCollector.php:39 | 1 | $this->data = ['command' => $this->cloneVar($command->command), 'exit_code' => $command->exitCode, 'interrupted_by_signal' => $command->interruptedBySignal, 'duration' => $command->duration, 'max_memory_usage' => $command->maxMemoryUsage, 'verbosity_level' => match ($command->output->getVerbosity( )) { /**/ } , 'interactive' => $command->isInteractive, 'validate_input' => !$command->ignoreValidation, 'enabled' => $command->isEnabled( ), 'visible' => !$command->isHidden( ), 'input' => $this->cloneVar($command->input), 'output' => $this->cloneVar($command->output), 'interactive_inputs' => array_map($this->cloneVar(...), $command->interactiveInputs), 'signalable' => $command->getSubscribedSignals( ), 'handled_signals' => $command->handledSignals, 'helper_set' => array_map($this->cloneVar(...), iterator_to_array($command->getHelperSet( ))), ] |
/src/Symfony/Component/Console/Application.php:1086 | 1 | return new InputDefinition([new InputArgument('command', InputArgument::REQUIRED, 'The command to execute'), new InputOption('--help', '-h', InputOption::VALUE_NONE, 'Display help for the given command. When no command is given display help for the <info>' . $this->defaultCommand . '</info> command'), new InputOption('--quiet', '-q', InputOption::VALUE_NONE, 'Do not output any message'), new InputOption('--verbose', '-v|vv|vvv', InputOption::VALUE_NONE, 'Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug'), new InputOption('--version', '-V', InputOption::VALUE_NONE, 'Display this application version'), new InputOption('--ansi', '', InputOption::VALUE_NEGATABLE, 'Force (or disable --no-ansi) ANSI output', null), new InputOption('--no-interaction', '-n', InputOption::VALUE_NONE, 'Do not ask any interactive question'), ]) |
/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MongoDbSessionHandler.php:163 | 1 | $cursor = $this->manager->executeQuery($this->namespace, new Query([$this->options['id_field'] => $sessionId, $this->options['expiry_field'] => ['$gte' => $this->getUTCDateTime( )], ], ['projection' => ['_id' => false, $this->options['data_field'] => true, ], 'limit' => 1, ])) |
/src/Symfony/Component/Console/Tests/Input/ArgvInputTest.php:65 | 1 | return [[['cli.php', '--foo'], [new InputOption('foo')], ['foo' => true], '->parse() parses long options without a value', ], [['cli.php', '--foo=bar'], [new InputOption('foo', 'f', InputOption::VALUE_REQUIRED)], ['foo' => 'bar'], '->parse() parses long options with a required value (with a = separator)', ], [['cli.php', '--foo', 'bar'], [new InputOption('foo', 'f', InputOption::VALUE_REQUIRED)], ['foo' => 'bar'], '->parse() parses long options with a required value (with a space separator)', ], [['cli.php', '--foo='], [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL)], ['foo' => ''], '->parse() parses long options with optional value which is empty (with a = separator) as empty string', ], [['cli.php', '--foo=', 'bar'], [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL), new InputArgument('name', InputArgument::REQUIRED)], ['foo' => ''], '->parse() parses long options with optional value without value specified or an empty string (with a = separator) followed by an argument as empty string', ], [['cli.php', 'bar', '--foo'], [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL), new InputArgument('name', InputArgument::REQUIRED)], ['foo' => null], '->parse() parses long options with optional value which is empty (with a = separator) preceded by an argument', ], [['cli.php', '--foo', '', 'bar'], [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL), new InputArgument('name', InputArgument::REQUIRED)], ['foo' => ''], '->parse() parses long options with optional value which is empty as empty string even followed by an argument', ], [['cli.php', '--foo'], [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL)], ['foo' => null], '->parse() parses long options with optional value specified with no separator and no value as null', ], [['cli.php', '-f'], [new InputOption('foo', 'f')], ['foo' => true], '->parse() parses short options without a value', ], [['cli.php', '-fbar'], [new InputOption('foo', 'f', InputOption::VALUE_REQUIRED)], ['foo' => 'bar'], '->parse() parses short options with a required value (with no separator)', ], [['cli.php', '-f', 'bar'], [new InputOption('foo', 'f', InputOption::VALUE_REQUIRED)], ['foo' => 'bar'], '->parse() parses short options with a required value (with a space separator)', ], [['cli.php', '-f', ''], [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL)], ['foo' => ''], '->parse() parses short options with an optional empty value', ], [['cli.php', '-f', '', 'foo'], [new InputArgument('name'), new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL)], ['foo' => ''], '->parse() parses short options with an optional empty value followed by an argument', ], [['cli.php', '-f', '', '-b'], [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL), new InputOption('bar', 'b')], ['foo' => '', 'bar' => true], '->parse() parses short options with an optional empty value followed by an option', ], [['cli.php', '-f', '-b', 'foo'], [new InputArgument('name'), new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL), new InputOption('bar', 'b')], ['foo' => null, 'bar' => true], '->parse() parses short options with an optional value which is not present', ], [['cli.php', '-fb'], [new InputOption('foo', 'f'), new InputOption('bar', 'b')], ['foo' => true, 'bar' => true], '->parse() parses short options when they are aggregated as a single one', ], [['cli.php', '-fb', 'bar'], [new InputOption('foo', 'f'), new InputOption('bar', 'b', InputOption::VALUE_REQUIRED)], ['foo' => true, 'bar' => 'bar'], '->parse() parses short options when they are aggregated as a single one and the last one has a required value', ], [['cli.php', '-fb', 'bar'], [new InputOption('foo', 'f'), new InputOption('bar', 'b', InputOption::VALUE_OPTIONAL)], ['foo' => true, 'bar' => 'bar'], '->parse() parses short options when they are aggregated as a single one and the last one has an optional value', ], [['cli.php', '-fbbar'], [new InputOption('foo', 'f'), new InputOption('bar', 'b', InputOption::VALUE_OPTIONAL)], ['foo' => true, 'bar' => 'bar'], '->parse() parses short options when they are aggregated as a single one and the last one has an optional value with no separator', ], [['cli.php', '-fbbar'], [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL), new InputOption('bar', 'b', InputOption::VALUE_OPTIONAL)], ['foo' => 'bbar', 'bar' => null], '->parse() parses short options when they are aggregated as a single one and one of them takes a value', ], ] |
/src/Symfony/Component/Console/Tests/Logger/ConsoleLoggerTest.php:169 | 2 | $context = ['bool' => true, 'null' => null, 'string' => 'Foo', 'int' => 0, 'float' => 0.5, 'nested' => ['with object' => new DummyTest( )], 'object' => new \DateTimeImmutable( ), 'resource' => fopen('php://memory', 'r'), ] |
/src/Symfony/Component/Console/Tests/Logger/ConsoleLoggerTest.php:73 | 1 | return [[LogLevel::EMERGENCY, OutputInterface::VERBOSITY_NORMAL, true], [LogLevel::WARNING, OutputInterface::VERBOSITY_NORMAL, true], [LogLevel::INFO, OutputInterface::VERBOSITY_NORMAL, false], [LogLevel::DEBUG, OutputInterface::VERBOSITY_NORMAL, false], [LogLevel::INFO, OutputInterface::VERBOSITY_VERBOSE, false], [LogLevel::INFO, OutputInterface::VERBOSITY_VERY_VERBOSE, true], [LogLevel::DEBUG, OutputInterface::VERBOSITY_VERY_VERBOSE, false], [LogLevel::DEBUG, OutputInterface::VERBOSITY_DEBUG, true], [LogLevel::ALERT, OutputInterface::VERBOSITY_QUIET, false], [LogLevel::EMERGENCY, OutputInterface::VERBOSITY_QUIET, false], [LogLevel::ALERT, OutputInterface::VERBOSITY_QUIET, false, $quietMap], [LogLevel::EMERGENCY, OutputInterface::VERBOSITY_QUIET, true, $quietMap], ] |
/src/Symfony/Component/Console/Tests/Logger/ConsoleLoggerTest.php:35 | 1 | return new ConsoleLogger($this->output, [LogLevel::EMERGENCY => OutputInterface::VERBOSITY_NORMAL, LogLevel::ALERT => OutputInterface::VERBOSITY_NORMAL, LogLevel::CRITICAL => OutputInterface::VERBOSITY_NORMAL, LogLevel::ERROR => OutputInterface::VERBOSITY_NORMAL, LogLevel::WARNING => OutputInterface::VERBOSITY_NORMAL, LogLevel::NOTICE => OutputInterface::VERBOSITY_NORMAL, LogLevel::INFO => OutputInterface::VERBOSITY_NORMAL, LogLevel::DEBUG => OutputInterface::VERBOSITY_NORMAL, ]) |
/src/Symfony/Component/Console/Tests/Input/InputDefinitionTest.php:178 | 1 | $definition = new InputDefinition([new InputArgument('foo1', InputArgument::OPTIONAL), new InputArgument('foo2', InputArgument::OPTIONAL, '', 'default'), new InputArgument('foo3', InputArgument::OPTIONAL | InputArgument::IS_ARRAY), ]) |
/src/Symfony/Component/Console/Tests/Input/ArgvInputTest.php:332 | 1 | return [[['cli.php', '--no-foo=bar'], new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_NEGATABLE)]), 'The "--no-foo" option does not accept a value.', ], [['cli.php', '--no-foo='], new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_NEGATABLE)]), 'The "--no-foo" option does not accept a value.', ], [['cli.php', '--no-foo=bar'], new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_NONE | InputOption::VALUE_NEGATABLE)]), 'The "--no-foo" option does not accept a value.', ], [['cli.php', '--no-foo='], new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_NONE | InputOption::VALUE_NEGATABLE)]), 'The "--no-foo" option does not accept a value.', ], ] |
/src/Symfony/Component/Console/Tests/Input/ArgvInputTest.php:261 | 1 | return [[['cli.php', '--foo'], new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_REQUIRED)]), 'The "--foo" option requires a value.', ], [['cli.php', '-f'], new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_REQUIRED)]), 'The "--foo" option requires a value.', ], [['cli.php', '-ffoo'], new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_NONE)]), 'The "-o" option does not exist.', ], [['cli.php', '--foo=bar'], new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_NONE)]), 'The "--foo" option does not accept a value.', ], [['cli.php', 'foo', 'bar'], new InputDefinition( ), 'No arguments expected, got "foo".', ], [['cli.php', 'foo', 'bar'], new InputDefinition([new InputArgument('number')]), 'Too many arguments, expected arguments "number".', ], [['cli.php', 'foo', 'bar', 'zzz'], new InputDefinition([new InputArgument('number'), new InputArgument('county')]), 'Too many arguments, expected arguments "number" "county".', ], [['cli.php', '--foo'], new InputDefinition( ), 'The "--foo" option does not exist.', ], [['cli.php', '-f'], new InputDefinition( ), 'The "-f" option does not exist.', ], [['cli.php', '-1'], new InputDefinition([new InputArgument('number')]), 'The "-1" option does not exist.', ], [['cli.php', '-fЩ'], new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_NONE)]), 'The "-Щ" option does not exist.', ], [['cli.php', 'acme:foo', 'bar'], new InputDefinition([new InputArgument('command', InputArgument::REQUIRED)]), 'No arguments expected for "acme:foo" command, got "bar"', ], [['cli.php', 'acme:foo', 'bar'], new InputDefinition([new InputArgument('name', InputArgument::REQUIRED)]), 'Too many arguments, expected arguments "name".', ], ] |
/src/Symfony/Component/Console/Tests/Input/ArgvInputTest.php:191 | 1 | return [[['cli.php', '--foo'], [new InputOption('foo', null, InputOption::VALUE_NEGATABLE)], ['foo' => true], '->parse() parses long options without a value', ], [['cli.php', '--foo'], [new InputOption('foo', null, InputOption::VALUE_NONE | InputOption::VALUE_NEGATABLE)], ['foo' => true], '->parse() parses long options without a value', ], [['cli.php', '--no-foo'], [new InputOption('foo', null, InputOption::VALUE_NEGATABLE)], ['foo' => false], '->parse() parses long options without a value', ], [['cli.php', '--no-foo'], [new InputOption('foo', null, InputOption::VALUE_NONE | InputOption::VALUE_NEGATABLE)], ['foo' => false], '->parse() parses long options without a value', ], [['cli.php'], [new InputOption('foo', null, InputOption::VALUE_NEGATABLE)], ['foo' => null], '->parse() parses long options without a value', ], [['cli.php'], [new InputOption('foo', null, InputOption::VALUE_NONE | InputOption::VALUE_NEGATABLE)], ['foo' => null], '->parse() parses long options without a value', ], [['cli.php'], [new InputOption('foo', null, InputOption::VALUE_NEGATABLE, '', false)], ['foo' => false], '->parse() parses long options without a value', ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/Resolver/JsDelivrEsmResolverTest.php:214 | 1 | yield 'require package with style key grabs the CSS' => ['packages' => [new PackageRequireOptions('bootstrap', '^5')], 'expectedRequests' => [['url' => '/v1/packages/npm/bootstrap/resolved?specifier=%5E5', 'response' => ['body' => ['version' => '5.2.0']], ], ['url' => '/bootstrap@5.2.0/+esm', ], ['url' => '/v1/packages/npm/bootstrap@5.2.0/entrypoints', 'response' => ['body' => ['entrypoints' => ['css' => ['file' => '/dist/css/bootstrap.min.css', 'guessed' => false], ]]], ], ['url' => '/v1/packages/npm/bootstrap/resolved?specifier=5.2.0', 'response' => ['body' => ['version' => '5.2.0']], ], ['url' => '/bootstrap@5.2.0/dist/css/bootstrap.min.css', ], ], 'expectedResolvedPackages' => ['bootstrap' => ['version' => '5.2.0', ], 'bootstrap/dist/css/bootstrap.min.css' => ['version' => '5.2.0', ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/Resolver/JsDelivrEsmResolverTest.php:249 | 1 | yield 'require path in package skips grabbing the style key' => ['packages' => [new PackageRequireOptions('bootstrap/dist/modal.js', '^5')], 'expectedRequests' => [['url' => '/v1/packages/npm/bootstrap/resolved?specifier=%5E5', 'response' => ['body' => ['version' => '5.2.0']], ], ['url' => '/bootstrap@5.2.0/dist/modal.js/+esm', ], ], 'expectedResolvedPackages' => ['bootstrap/dist/modal.js' => ['version' => '5.2.0', ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/Resolver/JsDelivrEsmResolverTest.php:299 | 1 | yield 'single package' => [['lodash' => self::createRemoteEntry('lodash', version : '1.2.3')], [['url' => '/lodash@1.2.3/+esm', 'body' => 'lodash contents', ], ], ['lodash' => ['content' => 'lodash contents', 'dependencies' => [ ], 'extraFiles' => [ ]], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/Resolver/JsDelivrEsmResolverTest.php:312 | 1 | yield 'importName differs from package specifier' => [['lodash' => self::createRemoteEntry('some_alias', version : '1.2.3', packageSpecifier : 'lodash')], [['url' => '/lodash@1.2.3/+esm', 'body' => 'lodash contents', ], ], ['lodash' => ['content' => 'lodash contents', 'dependencies' => [ ], 'extraFiles' => [ ]], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/Resolver/JsDelivrEsmResolverTest.php:126 | 1 | yield 'require non-scoped package with path' => ['packages' => [new PackageRequireOptions('chart.js/auto', '^3')], 'expectedRequests' => [['url' => '/v1/packages/npm/chart.js/resolved?specifier=%5E3', 'response' => ['body' => ['version' => '3.0.1']], ], ['url' => '/chart.js@3.0.1/auto/+esm', ], ], 'expectedResolvedPackages' => ['chart.js/auto' => ['version' => '3.0.1', ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/Resolver/JsDelivrEsmResolverTest.php:144 | 1 | yield 'require scoped package with path' => ['packages' => [new PackageRequireOptions('@chart/chart.js/auto', '^3')], 'expectedRequests' => [['url' => '/v1/packages/npm/@chart/chart.js/resolved?specifier=%5E3', 'response' => ['body' => ['version' => '3.0.1']], ], ['url' => '/@chart/chart.js@3.0.1/auto/+esm', ], ], 'expectedResolvedPackages' => ['@chart/chart.js/auto' => ['version' => '3.0.1', ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/Resolver/JsDelivrEsmResolverTest.php:162 | 1 | yield 'require package that imports another' => ['packages' => [new PackageRequireOptions('@chart/chart.js/auto', '^3')], 'expectedRequests' => [['url' => '/v1/packages/npm/@chart/chart.js/resolved?specifier=%5E3', 'response' => ['body' => ['version' => '3.0.1']], ], ['url' => '/@chart/chart.js@3.0.1/auto/+esm', 'response' => ['body' => 'import{Color as t}from"/npm/@kurkle/color@0.3.2/+esm";function e(){}const i=(()='], ], ['url' => '/v1/packages/npm/@kurkle/color/resolved?specifier=0.3.2', 'response' => ['body' => ['version' => '0.3.2']], ], ['url' => '/@kurkle/color@0.3.2/+esm', ], ['url' => '/v1/packages/npm/@kurkle/color@0.3.2/entrypoints', 'response' => ['body' => ['entrypoints' => [ ]]], ], ], 'expectedResolvedPackages' => ['@chart/chart.js/auto' => ['version' => '3.0.1', ], '@kurkle/color' => ['version' => '0.3.2', ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/Resolver/JsDelivrEsmResolverTest.php:195 | 1 | yield 'require single CSS package' => ['packages' => [new PackageRequireOptions('bootstrap/dist/css/bootstrap.min.css')], 'expectedRequests' => [['url' => '/v1/packages/npm/bootstrap/resolved', 'response' => ['body' => ['version' => '3.3.0']], ], ['url' => '/bootstrap@3.3.0/dist/css/bootstrap.min.css', ], ], 'expectedResolvedPackages' => ['bootstrap/dist/css/bootstrap.min.css' => ['version' => '3.3.0', ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/Resolver/JsDelivrEsmResolverTest.php:397 | 1 | yield 'make imports point to file and relative' => [['twig' => self::createRemoteEntry('twig', version : '1.16.0'), ], [['url' => '/twig@1.16.0/+esm', 'body' => 'import e from"/npm/locutus@2.0.16/php/strings/sprintf/+esm";console.log()', ], ], ['twig' => ['content' => 'import e from"locutus/php/strings/sprintf";console.log()', 'dependencies' => ['locutus/php/strings/sprintf'], 'extraFiles' => [ ], ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/Resolver/JsDelivrEsmResolverTest.php:416 | 1 | yield 'js sourcemap is removed' => [['@chart.js/auto' => self::createRemoteEntry('chart.js/auto', version : '1.2.3'), ], [['url' => '/chart.js@1.2.3/auto/+esm', 'body' => 'as Ticks,ta as TimeScale,ia as TimeSeriesScale,oo as Title,wo as Tooltip,Ci as _adapters,us as _detectPlatform,Ye as animator,Si as controllers,tn as default,St as defaults,Pn as elements,qi as layouts,ko as plugins,na as registerables,Ps as registry,sa as scales}; //# sourceMappingURL=/sm/bc823a081dbde2b3a5424732858022f831d3f2978d59498cd938e0c2c8cf9ec0.map', ], ], ['@chart.js/auto' => ['content' => 'as Ticks,ta as TimeScale,ia as TimeSeriesScale,oo as Title,wo as Tooltip,Ci as _adapters,us as _detectPlatform,Ye as animator,Si as controllers,tn as default,St as defaults,Pn as elements,qi as layouts,ko as plugins,na as registerables,Ps as registry,sa as scales};', 'dependencies' => [ ], 'extraFiles' => [ ], ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/Resolver/JsDelivrEsmResolverTest.php:436 | 1 | yield 'js sourcemap is correctly removed when sourceMapping appears in the JS' => [['es-module-shims' => self::createRemoteEntry('es-module-shims', version : '1.8.2'), ], [['url' => '/es-module-shims@1.8.2', 'body' => <<<'EOF' const je="\n//# sourceURL=",Ue="\n//# sourceMappingURL=",Me=/^(text|application)\/(x-)?javascript(;|$)/,_e=/^(application)\/wasm(;|$)/,Ie=/^(text|application)\/json(;|$)/,Re=/^(text|application)\/css(;|$)/,Te=/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g; //# sourceMappingURL=/sm/ef3916de598f421a779ba0e69af94655b2043095cde2410cc01893452d893338.map EOF], ], ['es-module-shims' => ['content' => <<<'EOF' const je="\n//# sourceURL=",Ue="\n//# sourceMappingURL=",Me=/^(text|application)\/(x-)?javascript(;|$)/,_e=/^(application)\/wasm(;|$)/,Ie=/^(text|application)\/json(;|$)/,Re=/^(text|application)\/css(;|$)/,Te=/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g; EOF, 'dependencies' => [ ], 'extraFiles' => [ ], ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/Resolver/JsDelivrEsmResolverTest.php:460 | 1 | yield 'css file removes sourcemap' => [['lodash' => self::createRemoteEntry('bootstrap/dist/bootstrap.css', version : '5.0.6', type : ImportMapType::CSS)], [['url' => '/bootstrap@5.0.6/dist/bootstrap.css', 'body' => 'print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}} /*# sourceMappingURL=bootstrap.min.css.map */', ], ], ['lodash' => ['content' => 'print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}', 'dependencies' => [ ], 'extraFiles' => [ ], ], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/Resolver/JsDelivrEsmResolverTest.php:325 | 1 | yield 'package with path' => [['lodash' => self::createRemoteEntry('chart.js/auto', version : '4.5.6')], [['url' => '/chart.js@4.5.6/auto/+esm', 'body' => 'chart.js contents', ], ], ['lodash' => ['content' => 'chart.js contents', 'dependencies' => [ ], 'extraFiles' => [ ]], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/Resolver/JsDelivrEsmResolverTest.php:338 | 1 | yield 'css file' => [['lodash' => self::createRemoteEntry('bootstrap/dist/bootstrap.css', version : '5.0.6', type : ImportMapType::CSS)], [['url' => '/bootstrap@5.0.6/dist/bootstrap.css', 'body' => 'bootstrap.css contents', ], ], ['lodash' => ['content' => 'bootstrap.css contents', 'dependencies' => [ ], 'extraFiles' => [ ]], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/Resolver/JsDelivrEsmResolverTest.php:351 | 1 | yield 'multiple files' => [['lodash' => self::createRemoteEntry('lodash', version : '1.2.3'), 'chart.js/auto' => self::createRemoteEntry('chart.js/auto', version : '4.5.6'), 'bootstrap/dist/bootstrap.css' => self::createRemoteEntry('bootstrap/dist/bootstrap.css', version : '5.0.6', type : ImportMapType::CSS), ], [['url' => '/lodash@1.2.3/+esm', 'body' => 'lodash contents', ], ['url' => '/chart.js@4.5.6/auto/+esm', 'body' => 'chart.js contents', ], ['url' => '/bootstrap@5.0.6/dist/bootstrap.css', 'body' => 'bootstrap.css contents', ], ], ['lodash' => ['content' => 'lodash contents', 'dependencies' => [ ], 'extraFiles' => [ ]], 'chart.js/auto' => ['content' => 'chart.js contents', 'dependencies' => [ ], 'extraFiles' => [ ]], 'bootstrap/dist/bootstrap.css' => ['content' => 'bootstrap.css contents', 'dependencies' => [ ], 'extraFiles' => [ ]], ], ] |
/src/Symfony/Component/AssetMapper/Tests/ImportMap/Resolver/JsDelivrEsmResolverTest.php:378 | 1 | yield 'make imports relative' => [['@chart.js/auto' => self::createRemoteEntry('chart.js/auto', version : '1.2.3'), ], [['url' => '/chart.js@1.2.3/auto/+esm', 'body' => 'import{Color as t}from"/npm/@kurkle/color@0.3.2/+esm";function e(){}const i=(()=', ], ], ['@chart.js/auto' => ['content' => 'import{Color as t}from"@kurkle/color";function e(){}const i=(()=', 'dependencies' => ['@kurkle/color'], 'extraFiles' => [ ], ], ], ] |
/src/Symfony/Component/DependencyInjection/ContainerBuilder.php:1051 | 1 | $proxy = $proxy->instantiateProxy($this, (clone $definition)->setClass($class)->setTags(($definition->hasTag('proxy') ? ['proxy' => $parameterBag->resolveValue($definition->getTag('proxy'))] : [ ]) + $definition->getTags( )), $id, function ($proxy = false) use ($definition, &$inlineServices, $id) { /**/ } ) |
/src/Symfony/Component/DependencyInjection/Container.php:200 | 1 | return $this->services[$id] ?? $this->services[$id = $this->aliases[$id] ?? $id] ?? ('service_container' === $id ? $this : ($this->factories[$id] ?? self::$make ??= self::make(...))($this, $id, $invalidBehavior)) |
/src/Symfony/Component/DependencyInjection/Extension/ExtensionTrait.php:57 | 1 | $resolver = new LoaderResolver([new XmlFileLoader($container, $locator, $env), new YamlFileLoader($container, $locator, $env), new IniFileLoader($container, $locator, $env), new PhpFileLoader($container, $locator, $env, new ConfigBuilderGenerator($buildDir)), new GlobFileLoader($container, $locator, $env), new DirectoryLoader($container, $locator, $env), new ClosureLoader($container, $env), ]) |
/src/Symfony/Component/DependencyInjection/ContainerBuilder.php:1642 | 1 | $result = $service->{$call[0]}(...$this->doResolveServices($this->getParameterBag( )->unescapeValue($this->getParameterBag( )->resolveValue($call[1])), $inlineServices)) |
/src/Symfony/Component/AssetMapper/Factory/MappedAssetFactory.php:52 | 1 | $asset = new MappedAsset($asset->logicalPath, $asset->sourcePath, $asset->publicPathWithoutDigest, $this->getPublicPath($asset, $content), $content, $digest, $isPredigested, $isVendor, $asset->getDependencies( ), $asset->getFileDependencies( ), $asset->getJavaScriptImports( ), ) |
/src/Symfony/Component/AssetMapper/Command/ImportMapAuditCommand.php:81 | 1 | $rows[] = [sprintf('<fg=%s>%s</>', self::SEVERITY_COLORS[$vulnerability->severity] ?? 'default', ucfirst($vulnerability->severity)), $vulnerability->summary, $packageAudit->package, $packageAudit->version ?? 'n/a', $vulnerability->firstPatchedVersion ?? 'n/a', $vulnerability->url, ] |
/src/Symfony/Component/AssetMapper/ImportMap/Resolver/JsDelivrEsmResolver.php:209 | 1 | $extraFileResponses[$package][] = [$this->httpClient->request('GET', sprintf(self::URL_PATTERN_DIST_CSS, $entry->getPackageName( ), $entry->version, $extraFile)), $extraFile, $entry->getPackageName( ), $entry->version] |
/src/Symfony/Component/AssetMapper/ImportMap/ImportMapAuditor.php:85 | 1 | $packageAudits[$package . '@' . $version] = $packageAudits[$package . '@' . $version]->withVulnerability(new ImportMapPackageAuditVulnerability($advisory['ghsa_id'], $advisory['cve_id'], $advisory['url'], $advisory['summary'], $advisory['severity'], $vulnerability['vulnerable_version_range'], $vulnerability['first_patched_version'], )) |
/src/Symfony/Component/DependencyInjection/Tests/Loader/YamlFileLoaderTest.php:128 | 1 | $expected = ['foo' => 'bar', 'values' => [true, false, \PHP_INT_MAX], 'bar' => '%foo%', 'escape' => '@escapeme', 'foo_bar' => new Reference('foo_bar'), 'mixedcase' => ['MixedCaseKey' => 'value'], 'imported_from_ini' => true, 'imported_from_xml' => true, 'with_wrong_ext' => 'from yaml', ] |
/src/Symfony/Component/DependencyInjection/Tests/Loader/YamlFileLoaderTest.php:118 | 1 | $resolver = new LoaderResolver([new IniFileLoader($container, new FileLocator(self::$fixturesPath . '/ini')), new XmlFileLoader($container, new FileLocator(self::$fixturesPath . '/xml')), new PhpFileLoader($container, new FileLocator(self::$fixturesPath . '/php')), $loader = new YamlFileLoader($container, new FileLocator(self::$fixturesPath . '/yaml')), ]) |
/src/Symfony/Component/DependencyInjection/Tests/Loader/FileLoaderTest.php:59 | 1 | $resolver = new LoaderResolver([new IniFileLoader($container, new FileLocator(self::$fixturesPath . '/ini')), new XmlFileLoader($container, new FileLocator(self::$fixturesPath . '/xml')), new PhpFileLoader($container, new FileLocator(self::$fixturesPath . '/php')), new YamlFileLoader($container, new FileLocator(self::$fixturesPath . '/yaml')), ]) |
/src/Symfony/Component/DependencyInjection/Tests/Loader/YamlFileLoaderTest.php:547 | 1 | $globResource = new GlobResource($fixturesDir . 'Prototype', '', true, false, [str_replace(\DIRECTORY_SEPARATOR, '/', $prototypeRealPath . \DIRECTORY_SEPARATOR . 'BadClasses') => true, str_replace(\DIRECTORY_SEPARATOR, '/', $prototypeRealPath . \DIRECTORY_SEPARATOR . 'OtherDir') => true, str_replace(\DIRECTORY_SEPARATOR, '/', $prototypeRealPath . \DIRECTORY_SEPARATOR . 'SinglyImplementedInterface') => true, str_replace(\DIRECTORY_SEPARATOR, '/', $prototypeRealPath . \DIRECTORY_SEPARATOR . 'StaticConstructor') => true, ]) |
/src/Symfony/Component/DependencyInjection/Argument/LazyClosure.php:90 | 1 | $code = 'new class(' . $initializer . ') extends \\' . self::class . $code . ' { ' . ($methodReflector->hasReturnType( ) && 'void' === (string) $methodReflector->getReturnType( ) ? '' : 'return ') . '$this->service->' . $callable[1] . '(' . $args . '); } ' . '}' |
/src/Symfony/Component/DependencyInjection/Attribute/AutowireCallable.php:45 | 1 | return (new Definition($type = \is_string($this->lazy) ? $this->lazy : ($type ?: 'Closure')))->setFactory(['Closure', 'fromCallable'])->setArguments([\is_array($value) ? $value + [1 => '__invoke'] : $value])->setLazy($this->lazy || 'Closure' !== $type && 'callable' !== (string) $parameter->getType( )) |
/src/Symfony/Component/DependencyInjection/Tests/Loader/LoaderResolverTest.php:35 | 1 | $this->resolver = new LoaderResolver([new XmlFileLoader($container, new FileLocator(self::$fixturesPath . '/xml')), new YamlFileLoader($container, new FileLocator(self::$fixturesPath . '/yaml')), new IniFileLoader($container, new FileLocator(self::$fixturesPath . '/ini')), new PhpFileLoader($container, new FileLocator(self::$fixturesPath . '/php')), new ClosureLoader($container), ]) |
/src/Symfony/Component/DependencyInjection/Tests/EnvVarProcessorTest.php:788 | 1 | return [['', [ ]], [',', ['', '']], ['1', ['1']], ['1,2," 3 "', ['1', '2', ' 3 ']], ['\\,\\\\', ['\\', '\\\\']], [$complex, ['', '"', 'foo"', '\\"', '\\', 'foo\\']], [null, null], ] |
/src/Symfony/Component/DependencyInjection/Tests/Fixtures/config/defaults.php:10 | 1 | $s = $c->services( )->defaults( )->public( )->private( )->autoconfigure( )->autowire( )->tag('t', ['a' => 'b'])->bind(Foo::class, service('bar'))->bind('iterable $foo', tagged_iterator('foo'))->public( ) |
/src/Symfony/Component/DependencyInjection/Tests/Fixtures/config/inline_binding.php:10 | 1 | $s = $c->services( )->defaults( )->public( )->private( )->autoconfigure( )->autowire( )->tag('t', ['a' => 'b'])->bind(Foo::class, service('bar'))->bind('iterable $foo', tagged_iterator('foo'))->bind('object $baz', inline_service('Baz'))->public( ) |
/src/Symfony/Component/DependencyInjection/Tests/Loader/XmlFileLoaderTest.php:1212 | 1 | return [['bar1', ['item.1', 'item.2']], ['bar2', ['item.1', 'item.2']], ['bar3', ['item.1', 'item.2', 'item.3', 'item.4']], ['bar4', ['item.1', 'item.3', 'item.4']], ['bar5', ['item.1', 'item.2', ['item.3.1', 'item.3.2']]], ['bar6', ['item.1', ['item.2.1', 'item.2.2'], 'item.3']], ['bar7', new IteratorArgument(['item.1', 'item.2'])], ['bar8', new IteratorArgument(['item.1', 'item.2', ['item.3.1', 'item.3.2']])], ] |
/src/Symfony/Component/DependencyInjection/Tests/Loader/IniFileLoaderTest.php:63 | 1 | return [['true_comment', true, true], ['true', true, true], ['false', false, true], ['on', true, true], ['off', false, true], ['yes', true, true], ['no', false, true], ['none', false, true], ['null', null, true], ['constant', \PHP_VERSION, true], ['12_int', 12, true], ['12_string', '12', true], ['12_quoted_number', 12, false], ['12_comment', 12, true], ['12_string_comment', '12', true], ['12_quoted_number_comment', 12, false], ['-12_negative', -12, true], ['one', 1, true], ['zero', 0, true], ['0b0110_byte_string', bindec('0b0110'), false], ['11112222333344445555_great_number', '1111,2222,3333,4444,5555', true], ['0777_number_starting_with_0', 0777, false], ['255_hexadecimal', 0xFF, false], ['100.0_exponential', 1e2, false], ['-120.0_exponential', -1.2E2, false], ['-10100.1_negative_float', -10100.1, false], ['-10,100.1_negative_float', '-10,100.1', true], ['list', [1, 2], true], ['map', ['one' => 1, 'two' => 2], true], ] |
/src/Symfony/Component/DependencyInjection/Tests/Loader/XmlFileLoaderTest.php:776 | 1 | $globResource = new GlobResource($fixturesDir . 'Prototype', '/*', true, false, [str_replace(\DIRECTORY_SEPARATOR, '/', $prototypeRealPath . \DIRECTORY_SEPARATOR . 'OtherDir') => true, str_replace(\DIRECTORY_SEPARATOR, '/', $prototypeRealPath . \DIRECTORY_SEPARATOR . 'BadClasses') => true, str_replace(\DIRECTORY_SEPARATOR, '/', $prototypeRealPath . \DIRECTORY_SEPARATOR . 'SinglyImplementedInterface') => true, str_replace(\DIRECTORY_SEPARATOR, '/', $prototypeRealPath . \DIRECTORY_SEPARATOR . 'StaticConstructor') => true, ]) |
/src/Symfony/Component/DependencyInjection/Tests/Loader/XmlFileLoaderTest.php:812 | 1 | $globResource = new GlobResource($fixturesDir . 'Prototype', '/*', true, false, [str_replace(\DIRECTORY_SEPARATOR, '/', $prototypeRealPath . \DIRECTORY_SEPARATOR . 'BadClasses') => true, str_replace(\DIRECTORY_SEPARATOR, '/', $prototypeRealPath . \DIRECTORY_SEPARATOR . 'OtherDir') => true, str_replace(\DIRECTORY_SEPARATOR, '/', $prototypeRealPath . \DIRECTORY_SEPARATOR . 'SinglyImplementedInterface') => true, str_replace(\DIRECTORY_SEPARATOR, '/', $prototypeRealPath . \DIRECTORY_SEPARATOR . 'StaticConstructor') => true, ]) |
/src/Symfony/Component/DependencyInjection/Tests/Loader/FileLoaderTest.php:70 | 1 | $expected = ['a_string' => 'a string', 'foo' => 'bar', 'values' => [0, 'integer' => 4, 100 => null, 'true', true, false, 'on', 'off', 'float' => 1.3, 1000.3, 'a string', ['foo', 'bar'], ], 'mixedcase' => ['MixedCaseKey' => 'value'], 'constant' => \PHP_EOL, 'bar' => '%foo%', 'escape' => '@escapeme', 'foo_bar' => new Reference('foo_bar'), ] |
/src/Symfony/Component/DependencyInjection/Tests/Loader/XmlFileLoaderTest.php:156 | 1 | $resolver = new LoaderResolver([new IniFileLoader($container, new FileLocator(self::$fixturesPath . '/ini')), new YamlFileLoader($container, new FileLocator(self::$fixturesPath . '/yml')), $loader = new XmlFileLoader($container, new FileLocator(self::$fixturesPath . '/xml')), ]) |
/src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_non_shared_lazy.php:58 | 2 | return $container->services['bar'] = new \stdClass((isset($container->factories['service_container']['foo']) ? $container->factories['service_container']['foo']($container) : self::getFooService($container))) |
/src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_env_in_id.php:67 | 1 | return $container->services['foo'] = new \stdClass(($container->privates['bar_%env(BAR)%'] ??= new \stdClass( )), ['baz_' . $container->getEnv('string:BAR') => new \stdClass( )]) |
/src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services12.php:48 | 1 | return $container->services['test'] = new \stdClass(('file://' . \dirname(__DIR__, 1)), [('file://' . \dirname(__DIR__, 1)) => (\dirname(__DIR__, 2) . '/')]) |
/src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_service_locator_argument.php:63 | 1 | $instance->locator = new \Symfony\Component\DependencyInjection\Argument\ServiceLocator($container->getService ??= $container->getService(...), ['foo1' => ['services', 'foo1', 'getFoo1Service', false], 'foo2' => ['privates', 'foo2', 'getFoo2Service', false], 'foo3' => [false, 'foo3', 'getFoo3Service', false], 'foo4' => ['privates', 'foo4', NULL, 'BOOM'], 'foo5' => ['services', 'foo5', NULL, false], ], ['foo1' => '?', 'foo2' => '?', 'foo3' => '?', 'foo4' => '?', 'foo5' => '?', ]) |
/src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_subscriber.php:70 | 1 | return $container->services['foo_service'] = new \Symfony\Component\DependencyInjection\Tests\Fixtures\TestServiceSubscriber((new \Symfony\Component\DependencyInjection\Argument\ServiceLocator($container->getService ??= $container->getService(...), ['Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition' => ['privates', 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition', 'getCustomDefinitionService', false], 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestServiceSubscriber' => ['services', 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestServiceSubscriber', 'getTestServiceSubscriberService', false], 'bar' => ['services', 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestServiceSubscriber', 'getTestServiceSubscriberService', false], 'baz' => ['privates', 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition', 'getCustomDefinitionService', false], 'late_alias' => ['services', 'late_alias', 'getLateAliasService', false], ], ['Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition' => 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition', 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestServiceSubscriber' => 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestServiceSubscriber', 'bar' => 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition', 'baz' => 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition', 'late_alias' => 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestDefinition1', ]))->withContext('foo_service', $container)) |
/src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_subscriber.php:70 | 1 | $container->services['foo_service'] = new \Symfony\Component\DependencyInjection\Tests\Fixtures\TestServiceSubscriber((new \Symfony\Component\DependencyInjection\Argument\ServiceLocator($container->getService ??= $container->getService(...), ['Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition' => ['privates', 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition', 'getCustomDefinitionService', false], 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestServiceSubscriber' => ['services', 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestServiceSubscriber', 'getTestServiceSubscriberService', false], 'bar' => ['services', 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestServiceSubscriber', 'getTestServiceSubscriberService', false], 'baz' => ['privates', 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition', 'getCustomDefinitionService', false], 'late_alias' => ['services', 'late_alias', 'getLateAliasService', false], ], ['Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition' => 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition', 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestServiceSubscriber' => 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestServiceSubscriber', 'bar' => 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition', 'baz' => 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition', 'late_alias' => 'Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\TestDefinition1', ]))->withContext('foo_service', $container)) |
/src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services10.php:48 | 1 | return $container->services['test'] = new \stdClass(['only dot' => '.', 'concatenation as value' => '.\'\'.', 'concatenation from the start value' => '\'\'.', '.' => 'dot as a key', '.\'\'.' => 'concatenation as a key', '\'\'.' => 'concatenation from the start key', 'optimize concatenation' => 'string1-string2', 'optimize concatenation with empty string' => 'string1string2', 'optimize concatenation from the start' => 'start', 'optimize concatenation at the end' => 'end', 'new line' => 'string with ' . "\n" . 'new line']) |
/src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services10.php:48 | 1 | $container->services['test'] = new \stdClass(['only dot' => '.', 'concatenation as value' => '.\'\'.', 'concatenation from the start value' => '\'\'.', '.' => 'dot as a key', '.\'\'.' => 'concatenation as a key', '\'\'.' => 'concatenation from the start key', 'optimize concatenation' => 'string1-string2', 'optimize concatenation with empty string' => 'string1string2', 'optimize concatenation from the start' => 'start', 'optimize concatenation at the end' => 'end', 'new line' => 'string with ' . "\n" . 'new line']) |
/src/Symfony/Component/DependencyInjection/Tests/Compiler/AutowirePassTest.php:884 | 1 | $foo = $container->register('foo', NotWireable::class)->setAutowired(true)->addMethodCall('setBar', [ ])->addMethodCall('setOptionalNotAutowireable', [ ])->addMethodCall('setOptionalNoTypeHint', [ ])->addMethodCall('setOptionalArgNoAutowireable', [ ]) |
/src/Symfony/Component/DependencyInjection/Tests/Fixtures/containers/container8.php:6 | 1 | $container = new ContainerBuilder(new ParameterBag(['foo' => '%baz%', 'baz' => 'bar', 'bar' => 'foo is %%foo bar', 'escape' => '@escapeme', 'values' => [true, false, null, 0, 1000.3, 'true', 'false', 'null'], 'utf-8 valid string' => "\u{021b}\u{1b56}\ttest", 'binary' => "\xf0\xf0\xf0\xf0", 'binary-control-char' => "This is a Bell char \x07", 'console banner' => "\e[37;44mHello\e[30;43mWorld\e[0m", 'null string' => 'null', 'string of digits' => '123', 'string of digits prefixed with minus character' => '-123', 'true string' => 'true', 'false string' => 'false', 'binary number string' => '0b0110', 'numeric string' => '-1.2E2', 'hexadecimal number string' => '0xFF', 'float string' => '10100.1', 'positive float string' => '+10100.1', 'negative float string' => '-10100.1', ])) |
/src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_non_shared_lazy_ghost.php:58 | 2 | return $container->services['bar'] = new \stdClass((isset($container->factories['service_container']['foo']) ? $container->factories['service_container']['foo']($container) : self::getFooService($container))) |
/src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_non_shared_duplicates.php:66 | 1 | return $container->services['baz'] = new \stdClass(new \Symfony\Component\DependencyInjection\Argument\ServiceLocator($container->getService ??= $container->getService(...), ['foo' => [false, 'foo', 'getFooService', false], ], ['foo' => '?', ])) |
/src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/autowire_closure.php:49 | 1 | $container->services['bar'] = new \Symfony\Component\DependencyInjection\Tests\Dumper\LazyClosureConsumer(fn ( ) => ($container->services['foo'] ??= new \Symfony\Component\DependencyInjection\Tests\Compiler\Foo( )), ($container->services['baz'] ?? self::getBazService($container)), ($container->services['foo'] ??= new \Symfony\Component\DependencyInjection\Tests\Compiler\Foo( ))->cloneFoo(...), ($container->services['my_callable'] ??= new \Symfony\Component\DependencyInjection\Tests\Compiler\MyCallable( ))->__invoke(...)) |
/src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/autowire_closure.php:49 | 1 | return $container->services['bar'] = new \Symfony\Component\DependencyInjection\Tests\Dumper\LazyClosureConsumer(fn ( ) => ($container->services['foo'] ??= new \Symfony\Component\DependencyInjection\Tests\Compiler\Foo( )), ($container->services['baz'] ?? self::getBazService($container)), ($container->services['foo'] ??= new \Symfony\Component\DependencyInjection\Tests\Compiler\Foo( ))->cloneFoo(...), ($container->services['my_callable'] ??= new \Symfony\Component\DependencyInjection\Tests\Compiler\MyCallable( ))->__invoke(...)) |
/src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services26.php:59 | 1 | $container->services['test'] = new ${($_ = $container->getEnv('FOO')) && false ?: "_"}($container->getEnv('Bar'), 'foo' . $container->getEnv('string:FOO') . 'baz', $container->getEnv('int:Baz')) |
/src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services26.php:59 | 1 | return $container->services['test'] = new ${($_ = $container->getEnv('FOO')) && false ?: "_"}($container->getEnv('Bar'), 'foo' . $container->getEnv('string:FOO') . 'baz', $container->getEnv('int:Baz')) |
/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterServiceSubscribersPassTest.php:198 | 1 | $expected = [TestDefinition1::class . '&' . TestDefinition2::class => new ServiceClosureArgument(new TypedReference(TestDefinition1::class . '&' . TestDefinition2::class, TestDefinition1::class . '&' . TestDefinition2::class)), 'bar' => new ServiceClosureArgument(new TypedReference(TestDefinition1::class . '&' . TestDefinition2::class, TestDefinition1::class . '&' . TestDefinition2::class, ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, 'bar')), 'baz' => new ServiceClosureArgument(new TypedReference(TestDefinition1::class . '&' . TestDefinition2::class, TestDefinition1::class . '&' . TestDefinition2::class, ContainerInterface::IGNORE_ON_INVALID_REFERENCE, 'baz')), ] |
/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterServiceSubscribersPassTest.php:172 | 1 | $expected = ['string|' . TestDefinition2::class . '|' . TestDefinition1::class => new ServiceClosureArgument(new TypedReference('bar', TestDefinition1::class . '|' . TestDefinition2::class)), 'bar' => new ServiceClosureArgument(new TypedReference('bar', TestDefinition1::class . '|' . TestDefinition2::class, ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, 'bar')), 'baz' => new ServiceClosureArgument(new TypedReference('bar', TestDefinition1::class . '|' . TestDefinition2::class, ContainerInterface::IGNORE_ON_INVALID_REFERENCE, 'baz')), ] |
/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterServiceSubscribersPassTest.php:162 | 1 | $expected = ['string|' . TestDefinition2::class . '|' . TestDefinition1::class => new ServiceClosureArgument(new TypedReference('string|' . TestDefinition2::class . '|' . TestDefinition1::class, 'string|' . TestDefinition2::class . '|' . TestDefinition1::class)), 'bar' => new ServiceClosureArgument(new TypedReference(TestDefinition1::class . '|' . TestDefinition2::class, TestDefinition1::class . '|' . TestDefinition2::class, ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, 'bar')), 'baz' => new ServiceClosureArgument(new TypedReference(TestDefinition1::class . '|' . TestDefinition2::class, TestDefinition1::class . '|' . TestDefinition2::class, ContainerInterface::IGNORE_ON_INVALID_REFERENCE, 'baz')), ] |
/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterServiceSubscribersPassTest.php:130 | 1 | $expected = [TestServiceSubscriber::class => new ServiceClosureArgument(new TypedReference(TestServiceSubscriber::class, TestServiceSubscriber::class)), CustomDefinition::class => new ServiceClosureArgument(new TypedReference(CustomDefinition::class, CustomDefinition::class, ContainerInterface::IGNORE_ON_INVALID_REFERENCE)), 'bar' => new ServiceClosureArgument(new TypedReference('bar', CustomDefinition::class, ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, 'bar')), 'baz' => new ServiceClosureArgument(new TypedReference(CustomDefinition::class, CustomDefinition::class, ContainerInterface::IGNORE_ON_INVALID_REFERENCE, 'baz')), 'late_alias' => new ServiceClosureArgument(new TypedReference(TestDefinition1::class, TestDefinition1::class, ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, 'late_alias')), ] |
/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterServiceSubscribersPassTest.php:99 | 2 | $expected = [TestServiceSubscriber::class => new ServiceClosureArgument(new TypedReference(TestServiceSubscriber::class, TestServiceSubscriber::class)), CustomDefinition::class => new ServiceClosureArgument(new TypedReference(CustomDefinition::class, CustomDefinition::class, ContainerInterface::IGNORE_ON_INVALID_REFERENCE)), 'bar' => new ServiceClosureArgument(new TypedReference(CustomDefinition::class, CustomDefinition::class, ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, 'bar')), 'baz' => new ServiceClosureArgument(new TypedReference(CustomDefinition::class, CustomDefinition::class, ContainerInterface::IGNORE_ON_INVALID_REFERENCE, 'baz')), 'late_alias' => new ServiceClosureArgument(new TypedReference(TestDefinition1::class, TestDefinition1::class, ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, 'late_alias')), ] |
/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterAutoconfigureAttributesPassTest.php:37 | 1 | $expected = (new ChildDefinition(''))->setLazy(true)->setPublic(true)->setAutowired(true)->setShared(true)->setProperties(['bar' => 'baz'])->setConfigurator(new Reference('bla'))->addTag('a_tag')->addTag('another_tag', ['attr' => 234])->addMethodCall('setBar', [2, 3])->setBindings(['$bar' => $argument])->setFactory([null, 'create']) |
/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveBindingsPassTest.php:44 | 1 | $bindings = [CaseSensitiveClass::class => new BoundArgument(new Reference('foo')), 'Psr\Container\ContainerInterface $container' => new BoundArgument(new ServiceLocatorArgument([ ]), true, BoundArgument::INSTANCEOF_BINDING), 'iterable $objects' => new BoundArgument(new TaggedIteratorArgument('tag.name'), true, BoundArgument::INSTANCEOF_BINDING), ] |
/src/Symfony/Component/DependencyInjection/Tests/Compiler/AutowirePassTest.php:1367 | 1 | $expected = ['decorated' => new Reference(AutowireNestedAttributes::class . '.inner'), 'iterator' => new TaggedIteratorArgument('foo'), 'locator' => new ServiceLocatorArgument(new TaggedIteratorArgument('foo', needsIndexes : true)), 'service' => new Reference('bar'), ] |
/src/Symfony/Component/VarExporter/Tests/Fixtures/array-object.php:3 | 1 | return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate($o = [clone (($p = &\Symfony\Component\VarExporter\Internal\Registry::$prototypes)['Symfony\\Component\\VarExporter\\Tests\\ArrayObject'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('Symfony\\Component\\VarExporter\\Tests\\ArrayObject')), clone ($p['ArrayObject'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('ArrayObject')), ], null, [ ], $o[0], [[0, [1, $o[0], ], ['foo' => $o[1], ], null, ], -1 => [0, [ ], [ ], null, ], ]) |
/src/Symfony/Component/VarExporter/Tests/Fixtures/array-object-custom.php:3 | 1 | return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate($o = [clone (\Symfony\Component\VarExporter\Internal\Registry::$prototypes['Symfony\\Component\\VarExporter\\Tests\\MyArrayObject'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('Symfony\\Component\\VarExporter\\Tests\\MyArrayObject')), ], null, [ ], $o[0], [[1, [234, ], ["\0" . 'Symfony\\Component\\VarExporter\\Tests\\MyArrayObject' . "\0" . 'unused' => 123, ], null, ], ]) |
/src/Symfony/Component/VarExporter/Tests/Fixtures/php74-serializable.php:3 | 1 | return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate($o = [clone (($p = &\Symfony\Component\VarExporter\Internal\Registry::$prototypes)['Symfony\\Component\\VarExporter\\Tests\\Php74Serializable'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('Symfony\\Component\\VarExporter\\Tests\\Php74Serializable')), clone ($p['stdClass'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('stdClass')), ], null, [ ], $o[0], [[$o[1], ], ]) |
/src/Symfony/Component/VarExporter/Tests/Fixtures/spl-object-storage.php:3 | 1 | return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate($o = [clone (($p = &\Symfony\Component\VarExporter\Internal\Registry::$prototypes)['SplObjectStorage'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('SplObjectStorage')), clone ($p['stdClass'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('stdClass')), ], null, [ ], $o[0], [[[$o[1], 345, ], [ ], ], ]) |
/src/Symfony/Component/VarExporter/LazyProxyTrait.php:300 | 2 | $value = $properties[$k = $name] ?? $properties[$k = "\0*\0$name"] ?? $properties[$k = "\0$class\0$name"] ?? $properties[$k = "\0$scope\0$name"] ?? $k = null |
/src/Symfony/Component/VarExporter/Tests/VarExporterTest.php:122 | 1 | yield ['datetime', [\DateTime::createFromFormat('U', 0), \DateTimeImmutable::createFromFormat('U', 0), $tz = new \DateTimeZone('Europe/Paris'), $interval = ($start = new \DateTimeImmutable('2009-10-11', $tz))->diff(new \DateTimeImmutable('2009-10-18', $tz)), new \DatePeriod($start, $interval, 4), ]] |
/src/Symfony/Component/VarExporter/Tests/Fixtures/datetime.php:3 | 1 | return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate($o = [clone (($p = &\Symfony\Component\VarExporter\Internal\Registry::$prototypes)['DateTime'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('DateTime')), clone ($p['DateTimeImmutable'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('DateTimeImmutable')), clone ($p['DateTimeZone'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('DateTimeZone')), clone ($p['DateInterval'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('DateInterval')), clone ($p['DatePeriod'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('DatePeriod')), clone $p['DateTimeImmutable'], clone $p['DateInterval'], ], null, [ ], [$o[0], $o[1], $o[2], $o[3], $o[4], ], [['date' => '1970-01-01 00:00:00.000000', 'timezone_type' => 1, 'timezone' => '+00:00', ], -1 => ['date' => '1970-01-01 00:00:00.000000', 'timezone_type' => 1, 'timezone' => '+00:00', ], -2 => ['timezone_type' => 3, 'timezone' => 'Europe/Paris', ], -3 => ['y' => 0, 'm' => 0, 'd' => 7, 'h' => 0, 'i' => 0, 's' => 0, 'f' => 0.0, 'invert' => 0, 'days' => 7, 'from_string' => false, ], -5 => ['date' => '2009-10-11 00:00:00.000000', 'timezone_type' => 3, 'timezone' => 'Europe/Paris', ], -6 => ['y' => 0, 'm' => 0, 'd' => 7, 'h' => 0, 'i' => 0, 's' => 0, 'f' => 0.0, 'invert' => 0, 'days' => 7, 'from_string' => false, ], -4 => ['start' => $o[5], 'current' => null, 'end' => null, 'interval' => $o[6], 'recurrences' => 5, 'include_start_date' => true, 'include_end_date' => false, ], ]) |
/src/Symfony/Component/VarExporter/Tests/Fixtures/datetime.php:4 | 1 | $o = [clone (($p = &\Symfony\Component\VarExporter\Internal\Registry::$prototypes)['DateTime'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('DateTime')), clone ($p['DateTimeImmutable'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('DateTimeImmutable')), clone ($p['DateTimeZone'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('DateTimeZone')), clone ($p['DateInterval'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('DateInterval')), clone ($p['DatePeriod'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('DatePeriod')), clone $p['DateTimeImmutable'], clone $p['DateInterval'], ] |
/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php:620 | 1 | return [[['a' => ['b' => ['c' => 'old-value']]], '[a][b][c]', 'new-value'], [new TestClassSetValue(new TestClassSetValue('old-value')), 'value.value', 'new-value'], [new TestClassSetValue(['a' => ['b' => ['c' => new TestClassSetValue('old-value')]]]), 'value[a][b][c].value', 'new-value'], [new TestClassSetValue(['a' => ['b' => 'old-value']]), 'value[a][b]', 'new-value'], [new \ArrayIterator(['a' => ['b' => ['c' => 'old-value']]]), '[a][b][c]', 'new-value'], ] |
/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php:641 | 1 | return [[new TestClassIsWritable(['a' => ['b' => 'old-value']]), 'value[a][b]', false], [new TestClassIsWritable(new \ArrayIterator(['a' => ['b' => 'old-value']])), 'value[a][b]', true], [new TestClassIsWritable(['a' => ['b' => ['c' => new TestClassSetValue('old-value')]]]), 'value[a][b][c].value', true], ] |
/src/Symfony/Component/VarExporter/ProxyHelper.php:225 | 1 | $parameters[] = ($param->getAttributes(\SensitiveParameter::class) ? '#[\SensitiveParameter] ' : '') . ($withParameterTypes && $param->hasType( ) ? self::exportType($param) . ' ' : '') . ($param->isPassedByReference( ) ? '&' : '') . ($param->isVariadic( ) ? '...' : '') . '$' . $param->name . ($param->isOptional( ) && !$param->isVariadic( ) ? ' = ' . self::exportDefault($param, $namespace) : '') |
/src/Symfony/Component/VarExporter/LazyGhostTrait.php:311 | 2 | $value = $properties[$k = $name] ?? $properties[$k = "\0*\0$name"] ?? $properties[$k = "\0$class\0$name"] ?? $properties[$k = "\0$scope\0$name"] ?? $k = null |
/src/Symfony/Component/WebLink/Tests/HttpHeaderSerializerTest.php:29 | 1 | $links = [new Link('prerender', '/1'), (new Link('dns-prefetch', '/2'))->withAttribute('pr', 0.7), (new Link('preload', '/3'))->withAttribute('as', 'script')->withAttribute('nopush', false), (new Link('preload', '/4'))->withAttribute('as', 'image')->withAttribute('nopush', true), (new Link('alternate', '/5'))->withRel('next')->withAttribute('hreflang', ['fr', 'de'])->withAttribute('title', 'Hello'), ] |
/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php:56 | 1 | return [[(object) ['firstName' => 'Bernhard'], 'lastName'], [(object) ['property' => (object) ['firstName' => 'Bernhard']], 'property.lastName'], [['index' => (object) ['firstName' => 'Bernhard']], '[index].lastName'], [new TestClass('Bernhard'), 'protectedProperty'], [new TestClass('Bernhard'), 'privateProperty'], [new TestClass('Bernhard'), 'protectedAccessor'], [new TestClass('Bernhard'), 'protectedIsAccessor'], [new TestClass('Bernhard'), 'protectedHasAccessor'], [new TestClass('Bernhard'), 'privateAccessor'], [new TestClass('Bernhard'), 'privateIsAccessor'], [new TestClass('Bernhard'), 'privateHasAccessor'], [new TestClass('Bernhard'), 'public_property'], ] |
/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php:76 | 1 | return [[['firstName' => 'Bernhard'], '[lastName]'], [[ ], '[index][lastName]'], [['index' => [ ]], '[index][lastName]'], [['index' => ['firstName' => 'Bernhard']], '[index][lastName]'], [(object) ['property' => ['firstName' => 'Bernhard']], 'property[lastName]'], ] |
/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php:523 | 1 | return [[['Bernhard', 'Schussek'], '[0]', 'Bernhard'], [['Bernhard', 'Schussek'], '[1]', 'Schussek'], [['firstName' => 'Bernhard'], '[firstName]', 'Bernhard'], [['index' => ['firstName' => 'Bernhard']], '[index][firstName]', 'Bernhard'], [(object) ['firstName' => 'Bernhard'], 'firstName', 'Bernhard'], [(object) ['property' => ['firstName' => 'Bernhard']], 'property[firstName]', 'Bernhard'], [['index' => (object) ['firstName' => 'Bernhard']], '[index].firstName', 'Bernhard'], [(object) ['property' => (object) ['firstName' => 'Bernhard']], 'property.firstName', 'Bernhard'], [new TestClass('Bernhard'), 'publicProperty', 'Bernhard'], [new TestClass('Bernhard'), 'publicAccessor', 'Bernhard'], [new TestClass('Bernhard'), 'publicAccessorWithDefaultValue', 'Bernhard'], [new TestClass('Bernhard'), 'publicAccessorWithRequiredAndDefaultValue', 'Bernhard'], [new TestClass('Bernhard'), 'publicIsAccessor', 'Bernhard'], [new TestClass('Bernhard'), 'publicHasAccessor', 'Bernhard'], [new TestClass('Bernhard'), 'publicGetSetter', 'Bernhard'], [new TestClass('Bernhard'), 'publicCanAccessor', 'Bernhard'], [new TestClass('Bernhard'), 'public_accessor', 'Bernhard'], [new TestClass('Bernhard'), '_public_accessor', 'Bernhard'], [['index' => [ ]], '[index][firstName]', null], [['root' => ['index' => [ ]]], '[root][index][firstName]', null], [['%!@$§.' => 'Bernhard'], '[%!@$§.]', 'Bernhard'], [['index' => ['%!@$§.' => 'Bernhard']], '[index][%!@$§.]', 'Bernhard'], [(object) ['%!@$§' => 'Bernhard'], '%!@$§', 'Bernhard'], [(object) ['property' => (object) ['%!@$§' => 'Bernhard']], 'property.%!@$§', 'Bernhard'], [['foo' => new TestClass('bar')], '[foo].publicGetSetter', 'bar'], [new TestClass(['foo' => 'bar']), 'publicGetSetter[foo]', 'bar'], [new TestClass(new TestClass('bar')), 'publicGetter.publicGetSetter', 'bar'], [new TestClass(['foo' => new TestClass('bar')]), 'publicGetter[foo].publicGetSetter', 'bar'], [new TestClass(new TestClass(new TestClass('bar'))), 'publicGetter.publicGetter.publicGetSetter', 'bar'], [new TestClass(['foo' => ['baz' => new TestClass('bar')]]), 'publicGetter[foo][baz].publicGetSetter', 'bar'], ] |
/src/Symfony/Component/Mailer/Bridge/Brevo/Transport/BrevoTransportFactory.php:37 | 1 | return (new BrevoApiTransport($this->getUser($dsn), $this->client, $this->dispatcher, $this->logger))->setHost('default' === $dsn->getHost( ) ? null : $dsn->getHost( ))->setPort($dsn->getPort( )) |
/src/Symfony/Component/Mailer/Bridge/Brevo/Transport/BrevoApiTransport.php:91 | 1 | $payload = ['sender' => $this->formatAddress($envelope->getSender( )), 'to' => $this->formatAddresses($this->getRecipients($email, $envelope)), 'subject' => $email->getSubject( ), ] |
/src/Symfony/Component/Filesystem/Filesystem.php:575 | 1 | return '' !== $file && (strspn($file, '/\\', 0, 1) || (\strlen($file) > 3 && ctype_alpha($file[0]) && ':' === $file[1] && strspn($file, '/\\', 2, 1)) || null !== parse_url($file, \PHP_URL_SCHEME)) |
/src/Symfony/Component/Mailer/Command/MailerTestCommand.php:61 | 1 | $message = (new Email( ))->to($input->getArgument('to'))->from($input->getOption('from'))->subject($input->getOption('subject'))->text($input->getOption('body')) |
/src/Symfony/Component/Mailer/Bridge/Mailgun/Tests/Transport/MailgunTransportFactoryTest.php:79 | 1 | yield [new Dsn('mailgun+api', 'example.com', self::USER, self::PASSWORD, 8080), (new MailgunApiTransport(self::USER, self::PASSWORD, null, $client, null, $logger))->setHost('example.com')->setPort(8080), ] |
/src/Symfony/Component/Mailer/Bridge/Mailgun/Tests/Transport/MailgunHttpTransportTest.php:37 | 1 | return [[new MailgunHttpTransport('ACCESS_KEY', 'DOMAIN'), 'mailgun+https://api.mailgun.net?domain=DOMAIN', ], [new MailgunHttpTransport('ACCESS_KEY', 'DOMAIN', 'us-east-1'), 'mailgun+https://api.us-east-1.mailgun.net?domain=DOMAIN', ], [(new MailgunHttpTransport('ACCESS_KEY', 'DOMAIN'))->setHost('example.com'), 'mailgun+https://example.com?domain=DOMAIN', ], [(new MailgunHttpTransport('ACCESS_KEY', 'DOMAIN'))->setHost('example.com')->setPort(99), 'mailgun+https://example.com:99?domain=DOMAIN', ], ] |
/src/Symfony/Component/Mailer/Bridge/Brevo/Transport/BrevoApiTransport.php:51 | 1 | $response = $this->client->request('POST', 'https://' . $this->getEndpoint( ) . '/v3/smtp/email', ['json' => $this->getPayload($email, $envelope), 'headers' => ['api-key' => $this->key, ], ]) |
/src/Symfony/Component/Mailer/Bridge/Mailgun/Tests/Transport/MailgunTransportFactoryTest.php:94 | 1 | yield [new Dsn('mailgun+https', 'example.com', self::USER, self::PASSWORD, 8080), (new MailgunHttpTransport(self::USER, self::PASSWORD, null, $client, null, $logger))->setHost('example.com')->setPort(8080), ] |
/src/Symfony/Component/Mailer/Bridge/Mailgun/Transport/MailgunApiTransport.php:100 | 1 | $payload = ['from' => $envelope->getSender( )->toString( ), 'to' => implode(',', $this->stringifyAddresses($this->getRecipients($email, $envelope))), 'subject' => $email->getSubject( ), 'attachment' => $attachments, 'inline' => $inlines, ] |
/src/Symfony/Component/Mailer/Bridge/Scaleway/Tests/Transport/ScalewayTransportFactoryTest.php:62 | 1 | yield [new Dsn('scaleway+api', 'default', self::USER, self::PASSWORD, null, ['region' => 'fr-par']), new ScalewayApiTransport(self::USER, self::PASSWORD, 'fr-par', new MockHttpClient( ), null, $logger), ] |
/src/Symfony/Component/Mailer/Bridge/Mailgun/Tests/Transport/MailgunApiTransportTest.php:39 | 1 | return [[new MailgunApiTransport('ACCESS_KEY', 'DOMAIN'), 'mailgun+api://api.mailgun.net?domain=DOMAIN', ], [new MailgunApiTransport('ACCESS_KEY', 'DOMAIN', 'us-east-1'), 'mailgun+api://api.us-east-1.mailgun.net?domain=DOMAIN', ], [(new MailgunApiTransport('ACCESS_KEY', 'DOMAIN'))->setHost('example.com'), 'mailgun+api://example.com?domain=DOMAIN', ], [(new MailgunApiTransport('ACCESS_KEY', 'DOMAIN'))->setHost('example.com')->setPort(99), 'mailgun+api://example.com:99?domain=DOMAIN', ], ] |
/src/Symfony/Component/Mailer/Bridge/Mailgun/Transport/MailgunHttpTransport.php:55 | 1 | $body = new FormDataPart(['to' => implode(',', $this->stringifyAddresses($message->getEnvelope( )->getRecipients( ))), 'message' => new DataPart($message->toString( ), 'message.mime'), ]) |
/src/Symfony/Component/Mailer/Bridge/Scaleway/Transport/ScalewayApiTransport.php:56 | 1 | $response = $this->client->request('POST', 'https://' . $this->getEndpoint( ) . $path, ['json' => $this->getPayload($email, $envelope), 'headers' => ['X-Auth-Token' => $this->token, ], ]) |
/src/Symfony/Component/Mailer/Bridge/MailerSend/Transport/MailerSendApiTransport.php:88 | 1 | $payload = ['from' => array_filter(['email' => $sender->getAddress( ), 'name' => $sender->getName( ), ]), 'to' => $this->prepareAddresses($this->getRecipients($email, $envelope)), 'subject' => $email->getSubject( ), ] |
/src/Symfony/Component/Mailer/Bridge/Scaleway/Tests/Transport/ScalewayApiTransportTest.php:36 | 1 | return [[new ScalewayApiTransport('PROJECT_ID', 'TOKEN'), 'scaleway+api://api.scaleway.com@PROJECT_ID', ], [new ScalewayApiTransport('PROJECT_ID', 'TOKEN', 'fr-par'), 'scaleway+api://api.scaleway.com@PROJECT_ID?region=fr-par', ], [(new ScalewayApiTransport('PROJECT_ID', 'TOKEN'))->setHost('example.com'), 'scaleway+api://example.com@PROJECT_ID', ], [(new ScalewayApiTransport('PROJECT_ID', 'TOKEN'))->setHost('example.com')->setPort(99), 'scaleway+api://example.com:99@PROJECT_ID', ], ] |
/src/Symfony/Component/Mailer/Bridge/Scaleway/Transport/ScalewayApiTransport.php:83 | 1 | $payload = ['from' => $this->formatAddress($envelope->getSender( )), 'to' => $this->formatAddresses($this->getRecipients($email, $envelope)), 'subject' => $email->getSubject( ), 'project_id' => $this->projectId, ] |
/src/Symfony/Component/Mailer/Bridge/Mailchimp/Tests/Transport/MandrillHttpTransportTest.php:37 | 1 | return [[new MandrillHttpTransport('KEY'), 'mandrill+https://mandrillapp.com', ], [(new MandrillHttpTransport('KEY'))->setHost('example.com'), 'mandrill+https://example.com', ], [(new MandrillHttpTransport('KEY'))->setHost('example.com')->setPort(99), 'mandrill+https://example.com:99', ], ] |
/src/Symfony/Component/Mailer/Bridge/MailerSend/Transport/MailerSendApiTransport.php:48 | 1 | $response = $this->client->request('POST', 'https://' . $this->getEndpoint( ) . '/v1/email', ['json' => $this->getPayload($email, $envelope), 'headers' => ['Authorization' => 'Bearer ' . $this->key, ], ]) |
/src/Symfony/Component/Mailer/Bridge/Mailchimp/Transport/MandrillApiTransport.php:85 | 1 | $payload = ['key' => $this->key, 'message' => ['html' => $email->getHtmlBody( ), 'text' => $email->getTextBody( ), 'subject' => $email->getSubject( ), 'from_email' => $envelope->getSender( )->getAddress( ), 'to' => $this->getRecipientsPayload($email, $envelope), ], ] |
/src/Symfony/Component/Mailer/Bridge/Mailchimp/Tests/Transport/MandrillApiTransportTest.php:38 | 1 | return [[new MandrillApiTransport('KEY'), 'mandrill+api://mandrillapp.com', ], [(new MandrillApiTransport('KEY'))->setHost('example.com'), 'mandrill+api://example.com', ], [(new MandrillApiTransport('KEY'))->setHost('example.com')->setPort(99), 'mandrill+api://example.com:99', ], ] |
/src/Symfony/Component/Mailer/Bridge/Mailjet/Tests/Transport/MailjetTransportFactoryTest.php:67 | 1 | yield [new Dsn('mailjet+api', 'example.com', self::USER, self::PASSWORD), (new MailjetApiTransport(self::USER, self::PASSWORD, new MockHttpClient( ), null, $logger))->setHost('example.com'), ] |
/src/Symfony/Component/Mailer/Bridge/Mailchimp/Transport/MandrillHttpTransport.php:50 | 1 | $response = $this->client->request('POST', 'https://' . $this->getEndpoint( ) . '/api/1.0/messages/send-raw.json', ['json' => ['key' => $this->key, 'to' => array_map(fn (Address $recipient) : string => $recipient->getAddress( ), $envelope->getRecipients( )), 'from_email' => $envelope->getSender( )->getAddress( ), 'from_name' => $envelope->getSender( )->getName( ), 'raw_message' => $message->toString( ), ], ]) |
/src/Symfony/Component/Mailer/Bridge/Mailjet/Transport/MailjetApiTransport.php:118 | 1 | $message = ['From' => $this->formatAddress($envelope->getSender( )), 'To' => $this->formatAddresses($this->getRecipients($email, $envelope)), 'Subject' => $email->getSubject( ), 'Attachments' => $attachments, 'InlinedAttachments' => $inlines, ] |
/src/Symfony/Component/Mailer/Bridge/Mailjet/Tests/Transport/MailjetApiTransportTest.php:39 | 1 | return [[new MailjetApiTransport(self::USER, self::PASSWORD), 'mailjet+api://api.mailjet.com', ], [(new MailjetApiTransport(self::USER, self::PASSWORD))->setHost('example.com'), 'mailjet+api://example.com', ], [(new MailjetApiTransport(self::USER, self::PASSWORD, sandbox : true))->setHost('example.com'), 'mailjet+api://example.com?sandbox=true', ], ] |
/src/Symfony/Component/Mailer/Bridge/Sendgrid/Tests/Transport/SendgridApiTransportTest.php:37 | 1 | return [[new SendgridApiTransport('KEY'), 'sendgrid+api://api.sendgrid.com', ], [(new SendgridApiTransport('KEY'))->setHost('example.com'), 'sendgrid+api://example.com', ], [(new SendgridApiTransport('KEY'))->setHost('example.com')->setPort(99), 'sendgrid+api://example.com:99', ], ] |
/src/Symfony/Component/Mailer/Bridge/Mailjet/Transport/MailjetApiTransport.php:74 | 1 | $response = $this->client->request('POST', sprintf('https://%s/v%s/send', $this->getEndpoint( ), self::API_VERSION), ['headers' => ['Accept' => 'application/json', ], 'auth_basic' => $this->publicKey . ':' . $this->privateKey, 'json' => $this->getPayload($email, $envelope), ]) |
/src/Symfony/Component/Mailer/Bridge/Amazon/Tests/Transport/SesTransportFactoryTest.php:156 | 1 | yield [new Dsn('ses+smtps', 'default', self::USER, self::PASSWORD, null, ['region' => 'eu-west-1', 'ping_threshold' => '10']), (new SesSmtpTransport(self::USER, self::PASSWORD, 'eu-west-1', null, $logger))->setPingThreshold(10), ] |
/src/Symfony/Component/Mailer/Bridge/Sendgrid/Tests/Transport/SendgridTransportFactoryTest.php:67 | 1 | yield [new Dsn('sendgrid+api', 'example.com', self::USER, '', 8080), (new SendgridApiTransport(self::USER, new MockHttpClient( ), null, $logger))->setHost('example.com')->setPort(8080), ] |
/src/Symfony/Component/Mailer/Bridge/Amazon/Tests/Transport/SesTransportFactoryTest.php:131 | 1 | yield [new Dsn('ses+https', 'example.com', self::USER, self::PASSWORD, 8080, ['session_token' => 'se$sion']), new SesHttpAsyncAwsTransport(new SesClient(Configuration::create(['accessKeyId' => self::USER, 'accessKeySecret' => self::PASSWORD, 'region' => 'eu-west-1', 'endpoint' => 'https://example.com:8080', 'sessionToken' => 'se$sion']), null, $client, $logger), null, $logger), ] |
/src/Symfony/Component/Mailer/Bridge/Amazon/Tests/Transport/SesTransportFactoryTest.php:136 | 1 | yield [new Dsn('ses+https', 'default', self::USER, self::PASSWORD, null, ['region' => 'eu-west-2', 'session_token' => 'se$sion']), new SesHttpAsyncAwsTransport(new SesClient(Configuration::create(['accessKeyId' => self::USER, 'accessKeySecret' => self::PASSWORD, 'region' => 'eu-west-2', 'sessionToken' => 'se$sion']), null, $client, $logger), null, $logger), ] |
/src/Symfony/Component/Mailer/Bridge/Amazon/Tests/Transport/SesTransportFactoryTest.php:121 | 1 | yield [new Dsn('ses+https', 'default', self::USER, self::PASSWORD, null, ['session_token' => 'se$sion']), new SesHttpAsyncAwsTransport(new SesClient(Configuration::create(['accessKeyId' => self::USER, 'accessKeySecret' => self::PASSWORD, 'region' => 'eu-west-1', 'sessionToken' => 'se$sion']), null, $client, $logger), null, $logger), ] |
/src/Symfony/Component/Mailer/Bridge/Amazon/Tests/Transport/SesTransportFactoryTest.php:126 | 1 | yield [new Dsn('ses', 'default', self::USER, self::PASSWORD, null, ['session_token' => 'se$sion']), new SesHttpAsyncAwsTransport(new SesClient(Configuration::create(['accessKeyId' => self::USER, 'accessKeySecret' => self::PASSWORD, 'region' => 'eu-west-1', 'sessionToken' => 'se$sion']), null, $client, $logger), null, $logger), ] |
/src/Symfony/Component/Mailer/Bridge/Amazon/Tests/Transport/SesTransportFactoryTest.php:116 | 1 | yield [new Dsn('ses+https', 'default', self::USER, self::PASSWORD, null, ['region' => 'eu-west-2']), new SesHttpAsyncAwsTransport(new SesClient(Configuration::create(['accessKeyId' => self::USER, 'accessKeySecret' => self::PASSWORD, 'region' => 'eu-west-2']), null, $client, $logger), null, $logger), ] |
/src/Symfony/Component/Mailer/Bridge/Amazon/Tests/Transport/SesTransportFactoryTest.php:111 | 1 | yield [new Dsn('ses+https', 'example.com', self::USER, self::PASSWORD, 8080), new SesHttpAsyncAwsTransport(new SesClient(Configuration::create(['accessKeyId' => self::USER, 'accessKeySecret' => self::PASSWORD, 'region' => 'eu-west-1', 'endpoint' => 'https://example.com:8080']), null, $client, $logger), null, $logger), ] |
/src/Symfony/Component/Mailer/Bridge/Amazon/Tests/Transport/SesTransportFactoryTest.php:106 | 1 | yield [new Dsn('ses', 'default', self::USER, self::PASSWORD), new SesHttpAsyncAwsTransport(new SesClient(Configuration::create(['accessKeyId' => self::USER, 'accessKeySecret' => self::PASSWORD, 'region' => 'eu-west-1']), null, $client, $logger), null, $logger), ] |
/src/Symfony/Component/Mailer/Bridge/Amazon/Tests/Transport/SesTransportFactoryTest.php:101 | 1 | yield [new Dsn('ses+https', 'default', self::USER, self::PASSWORD), new SesHttpAsyncAwsTransport(new SesClient(Configuration::create(['accessKeyId' => self::USER, 'accessKeySecret' => self::PASSWORD, 'region' => 'eu-west-1']), null, $client, $logger), null, $logger), ] |
/src/Symfony/Component/Mailer/Bridge/Amazon/Tests/Transport/SesTransportFactoryTest.php:96 | 1 | yield [new Dsn('ses+api', 'example.com', self::USER, self::PASSWORD, 8080, ['session_token' => 'se$sion']), new SesApiAsyncAwsTransport(new SesClient(Configuration::create(['accessKeyId' => self::USER, 'accessKeySecret' => self::PASSWORD, 'region' => 'eu-west-1', 'endpoint' => 'https://example.com:8080', 'sessionToken' => 'se$sion']), null, $client, $logger), null, $logger), ] |
/src/Symfony/Component/Mailer/Bridge/Amazon/Tests/Transport/SesTransportFactoryTest.php:91 | 1 | yield [new Dsn('ses+api', 'default', self::USER, self::PASSWORD, null, ['region' => 'eu-west-2', 'session_token' => 'se$sion']), new SesApiAsyncAwsTransport(new SesClient(Configuration::create(['accessKeyId' => self::USER, 'accessKeySecret' => self::PASSWORD, 'region' => 'eu-west-2', 'sessionToken' => 'se$sion']), null, $client, $logger), null, $logger), ] |
/src/Symfony/Component/Mailer/Bridge/Amazon/Tests/Transport/SesTransportFactoryTest.php:86 | 1 | yield [new Dsn('ses+api', 'default', self::USER, self::PASSWORD, null, ['session_token' => 'se$sion']), new SesApiAsyncAwsTransport(new SesClient(Configuration::create(['accessKeyId' => self::USER, 'accessKeySecret' => self::PASSWORD, 'region' => 'eu-west-1', 'sessionToken' => 'se$sion']), null, $client, $logger), null, $logger), ] |
/src/Symfony/Component/Mailer/Bridge/Amazon/Tests/Transport/SesTransportFactoryTest.php:81 | 1 | yield [new Dsn('ses+api', 'example.com', self::USER, self::PASSWORD, 8080), new SesApiAsyncAwsTransport(new SesClient(Configuration::create(['accessKeyId' => self::USER, 'accessKeySecret' => self::PASSWORD, 'region' => 'eu-west-1', 'endpoint' => 'https://example.com:8080']), null, $client, $logger), null, $logger), ] |
/src/Symfony/Component/Mailer/Bridge/Amazon/Tests/Transport/SesTransportFactoryTest.php:76 | 1 | yield [new Dsn('ses+api', 'default', self::USER, self::PASSWORD, null, ['region' => 'eu-west-2']), new SesApiAsyncAwsTransport(new SesClient(Configuration::create(['accessKeyId' => self::USER, 'accessKeySecret' => self::PASSWORD, 'region' => 'eu-west-2']), null, $client, $logger), null, $logger), ] |
/src/Symfony/Component/Mailer/Bridge/Amazon/Tests/Transport/SesTransportFactoryTest.php:71 | 1 | yield [new Dsn('ses+api', 'default', self::USER, self::PASSWORD), new SesApiAsyncAwsTransport(new SesClient(Configuration::create(['accessKeyId' => self::USER, 'accessKeySecret' => self::PASSWORD, 'region' => 'eu-west-1']), null, $client, $logger), null, $logger), ] |
/src/Symfony/Component/Mailer/Bridge/Amazon/Tests/Transport/SesHttpAsyncAwsTransportTest.php:39 | 1 | return [[new SesHttpAsyncAwsTransport(new SesClient(Configuration::create(['sharedConfigFile' => false, 'accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY']))), 'ses+https://ACCESS_KEY@us-east-1', ], [new SesHttpAsyncAwsTransport(new SesClient(Configuration::create(['sharedConfigFile' => false, 'accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY', 'region' => 'us-west-1']))), 'ses+https://ACCESS_KEY@us-west-1', ], [new SesHttpAsyncAwsTransport(new SesClient(Configuration::create(['sharedConfigFile' => false, 'accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY', 'endpoint' => 'https://example.com']))), 'ses+https://ACCESS_KEY@example.com', ], [new SesHttpAsyncAwsTransport(new SesClient(Configuration::create(['sharedConfigFile' => false, 'accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY', 'endpoint' => 'https://example.com:99']))), 'ses+https://ACCESS_KEY@example.com:99', ], [new SesHttpAsyncAwsTransport(new SesClient(Configuration::create(['sharedConfigFile' => false, 'accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY', 'sessionToken' => 'SESSION_TOKEN']))), 'ses+https://ACCESS_KEY@us-east-1', ], [new SesHttpAsyncAwsTransport(new SesClient(Configuration::create(['sharedConfigFile' => false, 'accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY', 'region' => 'us-west-1', 'sessionToken' => 'SESSION_TOKEN']))), 'ses+https://ACCESS_KEY@us-west-1', ], [new SesHttpAsyncAwsTransport(new SesClient(Configuration::create(['sharedConfigFile' => false, 'accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY', 'endpoint' => 'https://example.com', 'sessionToken' => 'SESSION_TOKEN']))), 'ses+https://ACCESS_KEY@example.com', ], [new SesHttpAsyncAwsTransport(new SesClient(Configuration::create(['sharedConfigFile' => false, 'accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY', 'endpoint' => 'https://example.com:99', 'sessionToken' => 'SESSION_TOKEN']))), 'ses+https://ACCESS_KEY@example.com:99', ], ] |
/src/Symfony/Component/Mailer/Bridge/Amazon/Tests/Transport/SesApiAsyncAwsTransportTest.php:39 | 1 | return [[new SesApiAsyncAwsTransport(new SesClient(Configuration::create(['sharedConfigFile' => false, 'accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY']))), 'ses+api://ACCESS_KEY@us-east-1', ], [new SesApiAsyncAwsTransport(new SesClient(Configuration::create(['sharedConfigFile' => false, 'accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY', 'region' => 'us-west-1']))), 'ses+api://ACCESS_KEY@us-west-1', ], [new SesApiAsyncAwsTransport(new SesClient(Configuration::create(['sharedConfigFile' => false, 'accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY', 'endpoint' => 'https://example.com']))), 'ses+api://ACCESS_KEY@example.com', ], [new SesApiAsyncAwsTransport(new SesClient(Configuration::create(['sharedConfigFile' => false, 'accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY', 'endpoint' => 'https://example.com:99']))), 'ses+api://ACCESS_KEY@example.com:99', ], [new SesApiAsyncAwsTransport(new SesClient(Configuration::create(['sharedConfigFile' => false, 'accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY', 'sessionToken' => 'SESSION_TOKEN']))), 'ses+api://ACCESS_KEY@us-east-1', ], [new SesApiAsyncAwsTransport(new SesClient(Configuration::create(['sharedConfigFile' => false, 'accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY', 'region' => 'us-west-1', 'sessionToken' => 'SESSION_TOKEN']))), 'ses+api://ACCESS_KEY@us-west-1', ], [new SesApiAsyncAwsTransport(new SesClient(Configuration::create(['sharedConfigFile' => false, 'accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY', 'endpoint' => 'https://example.com', 'sessionToken' => 'SESSION_TOKEN']))), 'ses+api://ACCESS_KEY@example.com', ], [new SesApiAsyncAwsTransport(new SesClient(Configuration::create(['sharedConfigFile' => false, 'accessKeyId' => 'ACCESS_KEY', 'accessKeySecret' => 'SECRET_KEY', 'endpoint' => 'https://example.com:99', 'sessionToken' => 'SESSION_TOKEN']))), 'ses+api://ACCESS_KEY@example.com:99', ], ] |
/src/Symfony/Component/Mailer/Bridge/Amazon/Transport/SesApiAsyncAwsTransport.php:58 | 1 | $request = ['FromEmailAddress' => $this->stringifyAddress(self::getSenderFromHeaders($email->getHeaders( ))), 'Destination' => ['ToAddresses' => $this->stringifyAddresses($this->getRecipients($email, $envelope)), ], 'Content' => ['Simple' => ['Subject' => ['Data' => $email->getSubject( ), 'Charset' => 'utf-8', ], 'Body' => [ ], ], ], ] |
/src/Symfony/Component/Mailer/Bridge/Amazon/Transport/SesHttpAsyncAwsTransport.php:71 | 1 | $request = ['Destination' => new Destination(['ToAddresses' => $this->stringifyAddresses($message->getEnvelope( )->getRecipients( )), ]), 'Content' => ['Raw' => ['Data' => $message->toString( ), ], ], ] |
/src/Symfony/Component/Mailer/Bridge/Amazon/Transport/SesHttpAsyncAwsTransport.php:62 | 1 | $exception = new HttpTransportException(sprintf('Unable to send an email: %s (code %s).', $e->getAwsMessage( ) ?: $e->getMessage( ), $e->getAwsCode( ) ?: $e->getCode( )), $e->getResponse( ), $e->getCode( ), $e) |
/src/Symfony/Component/Mailer/Bridge/Amazon/Transport/SesTransportFactory.php:49 | 1 | $options = ['region' => $dsn->getOption('region') ?: 'eu-west-1', 'accessKeyId' => $dsn->getUser( ), 'accessKeySecret' => $dsn->getPassword( ), ] + ('default' === $dsn->getHost( ) ? [ ] : ['endpoint' => 'https://' . $dsn->getHost( ) . ($dsn->getPort( ) ? ':' . $dsn->getPort( ) : '')]) + (null === $dsn->getOption('session_token') ? [ ] : ['sessionToken' => $dsn->getOption('session_token')]) |
/src/Symfony/Component/Mailer/Bridge/MailPace/Transport/MailPaceApiTransport.php:50 | 1 | $response = $this->client->request('POST', 'https://' . $this->getEndpoint( ) . '/send', ['headers' => ['Accept' => 'application/json', 'MailPace-Server-Token' => $this->key, 'Content-Type' => 'application/json', 'User-Agent' => 'MailPace Symfony Mailer', ], 'json' => $this->getPayload($email, $envelope), ]) |
/src/Symfony/Component/Mailer/Bridge/MailPace/Transport/MailPaceApiTransport.php:93 | 1 | $payload = ['from' => $envelope->getSender( )->toString( ), 'to' => implode(',', $this->stringifyAddresses($this->getRecipients($email, $envelope))), 'cc' => implode(',', $this->stringifyAddresses($email->getCc( ))), 'bcc' => implode(',', $this->stringifyAddresses($email->getBcc( ))), 'replyto' => implode(',', $this->stringifyAddresses($email->getReplyTo( ))), 'subject' => $email->getSubject( ), 'textbody' => $email->getTextBody( ), 'htmlbody' => $email->getHtmlBody( ), 'attachments' => $this->getAttachments($email), 'tags' => [ ], ] |
/src/Symfony/Component/Mailer/Bridge/MailPace/Tests/Transport/MailPaceTransportFactoryTest.php:67 | 1 | yield [new Dsn('mailpace+api', 'example.com', self::USER, '', 8080), (new MailPaceApiTransport(self::USER, new MockHttpClient( ), null, $logger))->setHost('example.com')->setPort(8080), ] |
/src/Symfony/Component/Mailer/Bridge/MailPace/Tests/Transport/MailPaceApiTransportTest.php:38 | 1 | return [[new MailPaceApiTransport('KEY'), 'mailpace+api://app.mailpace.com/api/v1', ], [(new MailPaceApiTransport('KEY'))->setHost('example.com'), 'mailpace+api://example.com', ], [(new MailPaceApiTransport('KEY'))->setHost('example.com')->setPort(99), 'mailpace+api://example.com:99', ], ] |
/src/Symfony/Component/Mailer/Bridge/Infobip/Tests/Transport/InfobipApiTransportTest.php:129 | 2 | $email = (new Email( ))->subject('Subject of the email')->from('From <from@example.com>')->to('to1@example.com', 'to2@example.com')->text('Some text')->html('<html><p>Hello!</p></html>')->bcc('bcc@example.com')->cc('cc@example.com')->date(new \DateTimeImmutable('2022-04-28 14:00.00', new \DateTimeZone('UTC')))->replyTo('replyTo@example.com') |
/src/Symfony/Component/Mailer/Bridge/Infobip/Tests/Transport/InfobipApiTransportTest.php:208 | 2 | $email = $this->basicValidEmail( )->text('foobar')->addPart(new DataPart('some attachment', 'attachment.txt', 'text/plain'))->addPart((new DataPart('some inline attachment', 'inline.txt', 'text/plain'))->asInline( )) |
/src/Symfony/Component/Mailer/Bridge/Infobip/Tests/Transport/InfobipApiTransportTest.php:320 | 2 | $email = (new Email( ))->subject('Subject of the email')->from('From <from@example.com>')->to('to1@example.com', 'to2@example.com')->text('Some text')->html('<html><p>Hello!</p></html>')->bcc('bcc@example.com')->cc('cc@example.com')->date(new \DateTimeImmutable('2022-04-28 14:00.00', new \DateTimeZone('UTC')))->replyTo('replyTo@example.com') |
/src/Symfony/Component/Mailer/Bridge/Infobip/Tests/Transport/InfobipApiTransportTest.php:367 | 2 | $email = $this->basicValidEmail( )->text('foobar')->addPart(new DataPart('some attachment', 'attachment.txt', 'text/plain'))->addPart((new DataPart('some inline attachment', 'inline.txt', 'text/plain'))->asInline( )) |
/src/Symfony/Component/Scheduler/Tests/Generator/MessageGeneratorTest.php:270 | 1 | yield 'parallel' => ['startTime' => '22:12:00', 'runs' => ['22:12:59' => [ ], '22:13:59' => [$first, $second], '22:14:00' => [$first, $second], '22:14:01' => [ ], ], 'schedule' => [[$first, '22:13:00', '22:14:00', '22:15:00'], [$second, '22:13:00', '22:14:00', '22:15:00'], ], ] |
/src/Symfony/Component/Scheduler/DependencyInjection/AddScheduleMessengerPass.php:67 | 1 | $taskArguments = ['$message' => $message, ] + array_filter(match ($tagAttributes['trigger'] ?? throw new InvalidArgumentException(sprintf('Tag "scheduler.task" is missing attribute "trigger" on service "%s".', $serviceId))) { /**/ } , fn ($value) => null !== $value) |
/src/Symfony/Component/Scheduler/DependencyInjection/AddScheduleMessengerPass.php:116 | 1 | $transportDefinition = (new Definition(TransportInterface::class))->setFactory([new Reference('messenger.transport_factory'), 'createTransport'])->setArguments(['schedule://' . $name, ['transport_name' => $transportName], new Reference('messenger.default_serializer')])->addTag('messenger.receiver', ['alias' => $transportName]) |
/src/Symfony/Component/Mailer/Bridge/Postmark/Transport/PostmarkApiTransport.php:54 | 1 | $response = $this->client->request('POST', 'https://' . $this->getEndpoint( ) . '/email', ['headers' => ['Accept' => 'application/json', 'X-Postmark-Server-Token' => $this->key, ], 'json' => $this->getPayload($email, $envelope), ]) |
/src/Symfony/Component/Mailer/Bridge/Postmark/Transport/PostmarkApiTransport.php:82 | 1 | $payload = ['From' => $envelope->getSender( )->toString( ), 'To' => implode(',', $this->stringifyAddresses($this->getRecipients($email, $envelope))), 'Cc' => implode(',', $this->stringifyAddresses($email->getCc( ))), 'Bcc' => implode(',', $this->stringifyAddresses($email->getBcc( ))), 'ReplyTo' => implode(',', $this->stringifyAddresses($email->getReplyTo( ))), 'Subject' => $email->getSubject( ), 'TextBody' => $email->getTextBody( ), 'HtmlBody' => $email->getHtmlBody( ), 'Attachments' => $this->getAttachments($email), ] |
/src/Symfony/Component/Mailer/Bridge/Postmark/Tests/Transport/PostmarkApiTransportTest.php:40 | 1 | return [[new PostmarkApiTransport('KEY'), 'postmark+api://api.postmarkapp.com', ], [(new PostmarkApiTransport('KEY'))->setHost('example.com'), 'postmark+api://example.com', ], [(new PostmarkApiTransport('KEY'))->setHost('example.com')->setPort(99), 'postmark+api://example.com:99', ], ] |
/src/Symfony/Component/Mailer/Bridge/Postmark/Tests/Transport/PostmarkTransportFactoryTest.php:67 | 1 | yield [new Dsn('postmark+api', 'example.com', self::USER, '', 8080), (new PostmarkApiTransport(self::USER, new MockHttpClient( ), null, $logger))->setHost('example.com')->setPort(8080), ] |
/src/Symfony/Component/Mailer/Bridge/Postmark/Tests/Transport/PostmarkTransportFactoryTest.php:72 | 1 | yield [new Dsn('postmark+api', 'example.com', self::USER, '', 8080, ['message_stream' => 'broadcasts']), (new PostmarkApiTransport(self::USER, new MockHttpClient( ), null, $logger))->setHost('example.com')->setPort(8080)->setMessageStream('broadcasts'), ] |
/src/Symfony/Component/Lock/Store/MongoDbStore.php:278 | 1 | $cursor = $this->manager->executeQuery($this->namespace, new Query(['_id' => (string) $key, 'token' => $this->getUniqueToken($key), 'expires_at' => ['$gt' => $this->createMongoDateTime(microtime(true)), ], ], ['limit' => 1, 'projection' => ['_id' => 1], ])) |
/src/Symfony/Component/Lock/Store/PdoStore.php:133 | 1 | $sql = "UPDATE $this->table SET $this->expirationCol = {$this->getCurrentTimestampStatement( )} + $ttl, $this->tokenCol = :token1 WHERE $this->idCol = :id AND ($this->tokenCol = :token2 OR $this->expirationCol <= {$this->getCurrentTimestampStatement( )})" |
/src/Symfony/Component/Lock/Store/DoctrineDbalStore.php:140 | 1 | $sql = "UPDATE $this->table SET $this->expirationCol = {$this->getCurrentTimestampStatement( )} + ?, $this->tokenCol = ? WHERE $this->idCol = ? AND ($this->tokenCol = ? OR $this->expirationCol <= {$this->getCurrentTimestampStatement( )})" |
/src/Symfony/Component/Lock/Store/DoctrineDbalStore.php:74 | 1 | $params = (new DsnParser(['db2' => 'ibm_db2', 'mssql' => 'pdo_sqlsrv', 'mysql' => 'pdo_mysql', 'mysql2' => 'pdo_mysql', 'postgres' => 'pdo_pgsql', 'postgresql' => 'pdo_pgsql', 'pgsql' => 'pdo_pgsql', 'sqlite' => 'pdo_sqlite', 'sqlite3' => 'pdo_sqlite', ]))->parse($connOrUrl) |
/src/Symfony/Component/Scheduler/Tests/Generator/MessageGeneratorTest.php:213 | 1 | yield 'first' => ['startTime' => '22:12:00', 'runs' => ['22:12:00' => [ ], '22:12:01' => [ ], '22:13:00' => [$first], '22:13:01' => [ ], ], 'schedule' => [[$first, '22:13:00', '22:14:00']], ] |
/src/Symfony/Component/Scheduler/Tests/Trigger/PeriodicalTriggerTest.php:114 | 1 | yield [new \DateTimeImmutable('2023-03-19 13:45'), self::createTrigger('next tuesday'), [new \DateTimeImmutable('2023-03-21 13:45:00'), new \DateTimeImmutable('2023-03-28 13:45:00'), new \DateTimeImmutable('2023-04-04 13:45:00'), new \DateTimeImmutable('2023-04-11 13:45:00'), new \DateTimeImmutable('2023-04-18 13:45:00'), new \DateTimeImmutable('2023-04-25 13:45:00'), new \DateTimeImmutable('2023-05-02 13:45:00'), new \DateTimeImmutable('2023-05-09 13:45:00'), new \DateTimeImmutable('2023-05-16 13:45:00'), new \DateTimeImmutable('2023-05-23 13:45:00'), new \DateTimeImmutable('2023-05-30 13:45:00'), new \DateTimeImmutable('2023-06-06 13:45:00'), new \DateTimeImmutable('2023-06-13 13:45:00'), ], 20, ] |
/src/Symfony/Component/Scheduler/Tests/Generator/MessageGeneratorTest.php:255 | 1 | yield 'concurrency' => ['startTime' => '22:12:00', 'runs' => ['22:12:00.555' => [ ], '22:13:01.555' => [$third, $first, $first, $second, $first], '22:13:02.000' => [$first], '22:13:02.555' => [ ], ], 'schedule' => [[$first, '22:12:59', '22:13:00', '22:13:01', '22:13:02', '22:13:03'], [$second, '22:13:00', '22:14:00'], [$third, '22:12:30', '22:13:30'], ], ] |
/src/Symfony/Component/Scheduler/Tests/Generator/MessageGeneratorTest.php:242 | 1 | yield 'sequence' => ['startTime' => '22:12:00', 'runs' => ['22:12:59' => [ ], '22:13:00' => [$first], '22:13:01' => [ ], '22:13:59' => [ ], '22:14:00' => [$first], '22:14:01' => [ ], ], 'schedule' => [[$first, '22:13:00', '22:14:00', '22:15:00']], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php:642 | 1 | return [['timezone', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeZone')]], ['date', null], ['dateObject', null], ['dateTime', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeImmutable')]], ['ddd', null], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php:487 | 1 | return [[Php71Dummy::class, 'string', [new Type(Type::BUILTIN_TYPE_STRING, false)]], [Php71Dummy::class, 'intPrivate', [new Type(Type::BUILTIN_TYPE_INT, false)]], [Php71DummyExtended2::class, 'intWithAccessor', [new Type(Type::BUILTIN_TYPE_INT, false)]], [Php71DummyExtended2::class, 'intPrivate', [new Type(Type::BUILTIN_TYPE_INT, false)]], [DefaultValue::class, 'foo', null], ] |
/src/Symfony/Component/EventDispatcher/Tests/DependencyInjection/RegisterListenersPassTest.php:223 | 1 | $expectedCalls = [['addListener', ['foo.bar', [new ServiceClosureArgument(new Reference('foo')), 'onFooBar'], 0, ], ], ['addListener', ['foo.bar', [new ServiceClosureArgument(new Reference('bar')), '__invoke'], 0, ], ], ['addListener', ['event', [new ServiceClosureArgument(new Reference('baz')), 'onEvent'], 0, ], ], ['addListener', ['foo.bar_zar', [new ServiceClosureArgument(new Reference('zar')), 'onFooBarZar'], 0, ], ], ] |
/src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php:215 | 1 | return new DocBlock($docBlock->getSummary( ), $docBlock->getDescription( ), $tags, $docBlock->getContext( ), $docBlock->getLocation( ), $docBlock->isTemplateStart( ), $docBlock->isTemplateEnd( )) |
/src/Symfony/Component/EventDispatcher/Tests/Debug/WrappedListenerTest.php:34 | 1 | return [[new FooListener( ), 'Symfony\Component\EventDispatcher\Tests\Debug\FooListener::__invoke'], [[new FooListener( ), 'listen'], 'Symfony\Component\EventDispatcher\Tests\Debug\FooListener::listen'], [['Symfony\Component\EventDispatcher\Tests\Debug\FooListener', 'listenStatic'], 'Symfony\Component\EventDispatcher\Tests\Debug\FooListener::listenStatic'], [['Symfony\Component\EventDispatcher\Tests\Debug\FooListener', 'invalidMethod'], 'Symfony\Component\EventDispatcher\Tests\Debug\FooListener::invalidMethod'], ['var_dump', 'var_dump'], [function ( ) { /**/ } , 'closure'], [\Closure::fromCallable([new FooListener( ), 'listen']), 'Symfony\Component\EventDispatcher\Tests\Debug\FooListener::listen'], [\Closure::fromCallable(['Symfony\Component\EventDispatcher\Tests\Debug\FooListener', 'listenStatic']), 'Symfony\Component\EventDispatcher\Tests\Debug\FooListener::listenStatic'], [\Closure::fromCallable(function ( ) { /**/ } ), 'closure'], [[static fn ( ) => new FooListener( ), 'listen'], 'Symfony\Component\EventDispatcher\Tests\Debug\FooListener::listen'], ] |
/src/Symfony/Component/EventDispatcher/Tests/DependencyInjection/RegisterListenersPassTest.php:322 | 1 | $expectedCalls = [['addListener', [CustomEvent::class, [new ServiceClosureArgument(new Reference('foo')), 'onCustomEvent'], 0, ], ], ['addListener', ['foo', [new ServiceClosureArgument(new Reference('foo')), 'onFoo'], 42, ], ], ['addListener', ['bar', [new ServiceClosureArgument(new Reference('foo')), 'onBarEvent'], 0, ], ], ['addListener', ['baz', [new ServiceClosureArgument(new Reference('foo')), 'onBazEvent'], 0, ], ], ] |
/src/Symfony/Component/Lock/Store/DoctrineDbalPostgreSqlStore.php:55 | 1 | $params = (new DsnParser(['db2' => 'ibm_db2', 'mssql' => 'pdo_sqlsrv', 'mysql' => 'pdo_mysql', 'mysql2' => 'pdo_mysql', 'postgres' => 'pdo_pgsql', 'postgresql' => 'pdo_pgsql', 'pgsql' => 'pdo_pgsql', 'sqlite' => 'pdo_sqlite', 'sqlite3' => 'pdo_sqlite', ]))->parse($this->filterDsn($connOrUrl)) |
/src/Symfony/Component/Runtime/Internal/ComposerPlugin.php:95 | 1 | $code = strtr(file_get_contents($autoloadTemplate), ['%project_dir%' => $projectDir, '%runtime_class%' => var_export($runtimeClass, true), '%runtime_options%' => '[' . substr(var_export($extra, true), 7, -1) . " 'project_dir' => {$projectDir},\n]", ]) |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php:471 | 1 | return [[Php80Dummy::class, 'promotedWithDocCommentAndType', [new Type(Type::BUILTIN_TYPE_INT)]], [Php80Dummy::class, 'promotedWithDocComment', [new Type(Type::BUILTIN_TYPE_STRING)]], [Php80Dummy::class, 'promotedAndMutated', [new Type(Type::BUILTIN_TYPE_STRING)]], [Php80Dummy::class, 'promoted', null], [Php80Dummy::class, 'collection', [new Type(Type::BUILTIN_TYPE_ARRAY, collection : true, collectionValueType : new Type(Type::BUILTIN_TYPE_STRING))]], [Php80PromotedDummy::class, 'promoted', null], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php:213 | 1 | return [['a', null], ['b', [new Type(Type::BUILTIN_TYPE_OBJECT, true, 'Symfony\Component\PropertyInfo\Tests\Fixtures\ParentDummy')]], ['c', [new Type(Type::BUILTIN_TYPE_BOOL)]], ['d', [new Type(Type::BUILTIN_TYPE_BOOL)]], ['e', null], ['f', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeImmutable'))]], ['donotexist', null], ['staticGetter', null], ['staticSetter', null], ['self', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Symfony\Component\PropertyInfo\Tests\Fixtures\Dummy')]], ['realParent', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Symfony\Component\PropertyInfo\Tests\Fixtures\ParentDummy')]], ['date', [new Type(Type::BUILTIN_TYPE_OBJECT, false, \DateTimeImmutable::class)]], ['dates', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, \DateTimeImmutable::class))]], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php:383 | 1 | return [['a', [new Type(Type::BUILTIN_TYPE_STRING), new Type(Type::BUILTIN_TYPE_INT)]], ['b', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, [new Type(Type::BUILTIN_TYPE_INT)], [new Type(Type::BUILTIN_TYPE_STRING), new Type(Type::BUILTIN_TYPE_INT)])]], ['c', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, [ ], [new Type(Type::BUILTIN_TYPE_STRING), new Type(Type::BUILTIN_TYPE_INT)])]], ['d', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, [new Type(Type::BUILTIN_TYPE_STRING), new Type(Type::BUILTIN_TYPE_INT)], [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, [ ], [new Type(Type::BUILTIN_TYPE_STRING)])])]], ['e', [new Type(Type::BUILTIN_TYPE_OBJECT, true, Dummy::class, true, [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, [ ], [new Type(Type::BUILTIN_TYPE_STRING)])], [new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, [new Type(Type::BUILTIN_TYPE_INT)], [new Type(Type::BUILTIN_TYPE_STRING, false, null, true, [ ], [new Type(Type::BUILTIN_TYPE_OBJECT, false, DefaultValue::class)])])]), new Type(Type::BUILTIN_TYPE_OBJECT, false, ParentDummy::class)]], ['f', null], ['g', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, [ ], [new Type(Type::BUILTIN_TYPE_STRING), new Type(Type::BUILTIN_TYPE_INT)])]], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php:404 | 1 | return [['classString', [new Type(Type::BUILTIN_TYPE_STRING, false, null)]], ['classStringGeneric', [new Type(Type::BUILTIN_TYPE_STRING, false, null)]], ['htmlEscapedString', [new Type(Type::BUILTIN_TYPE_STRING, false, null)]], ['lowercaseString', [new Type(Type::BUILTIN_TYPE_STRING, false, null)]], ['nonEmptyLowercaseString', [new Type(Type::BUILTIN_TYPE_STRING, false, null)]], ['nonEmptyString', [new Type(Type::BUILTIN_TYPE_STRING, false, null)]], ['numericString', [new Type(Type::BUILTIN_TYPE_STRING, false, null)]], ['traitString', [new Type(Type::BUILTIN_TYPE_STRING, false, null)]], ['interfaceString', [new Type(Type::BUILTIN_TYPE_STRING, false, null)]], ['literalString', [new Type(Type::BUILTIN_TYPE_STRING, false, null)]], ['positiveInt', [new Type(Type::BUILTIN_TYPE_INT, false, null)]], ['negativeInt', [new Type(Type::BUILTIN_TYPE_INT, false, null)]], ['nonEmptyArray', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true)]], ['nonEmptyList', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT))]], ['scalar', [new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_FLOAT), new Type(Type::BUILTIN_TYPE_STRING), new Type(Type::BUILTIN_TYPE_BOOL)]], ['number', [new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_FLOAT)]], ['numeric', [new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_FLOAT), new Type(Type::BUILTIN_TYPE_STRING)]], ['arrayKey', [new Type(Type::BUILTIN_TYPE_STRING), new Type(Type::BUILTIN_TYPE_INT)]], ['double', [new Type(Type::BUILTIN_TYPE_FLOAT)]], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php:280 | 1 | return [['foo', [new Type(Type::BUILTIN_TYPE_ARRAY, true, null, true)]], ['bar', [new Type(Type::BUILTIN_TYPE_INT, true)]], ['timeout', [new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_FLOAT)]], ['optional', [new Type(Type::BUILTIN_TYPE_INT, true), new Type(Type::BUILTIN_TYPE_FLOAT, true)]], ['string', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Stringable'), new Type(Type::BUILTIN_TYPE_STRING)]], ['payload', null], ['data', null], ['mixedProperty', null], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php:342 | 1 | return [['defaultInt', [new Type(Type::BUILTIN_TYPE_INT, false)]], ['defaultFloat', [new Type(Type::BUILTIN_TYPE_FLOAT, false)]], ['defaultString', [new Type(Type::BUILTIN_TYPE_STRING, false)]], ['defaultArray', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true)]], ['defaultNull', null], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php:240 | 1 | return [[Php7Dummy::class, 'foo', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true)]], [Php7Dummy::class, 'bar', [new Type(Type::BUILTIN_TYPE_INT)]], [Php7Dummy::class, 'baz', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_STRING))]], [Php7Dummy::class, 'buz', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Symfony\Component\PropertyInfo\Tests\Fixtures\Php7Dummy')]], [Php7Dummy::class, 'biz', [new Type(Type::BUILTIN_TYPE_OBJECT, false, Php7ParentDummy::class)]], [Php7Dummy::class, 'donotexist', null], [Php7ParentDummy::class, 'parent', [new Type(Type::BUILTIN_TYPE_OBJECT, false, \stdClass::class)]], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php:261 | 1 | return [['foo', [new Type(Type::BUILTIN_TYPE_ARRAY, true, null, true)]], ['buz', [new Type(Type::BUILTIN_TYPE_NULL)]], ['bar', [new Type(Type::BUILTIN_TYPE_INT, true)]], ['baz', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_STRING))]], ['donotexist', null], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php:141 | 1 | return [['iteratorCollection', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Iterator', true, null, new Type(Type::BUILTIN_TYPE_STRING))]], ['iteratorCollectionWithKey', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Iterator', true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_STRING))]], ['nestedIterators', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Iterator', true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Iterator', true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_STRING)))], ], ['arrayWithKeys', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_STRING), new Type(Type::BUILTIN_TYPE_STRING))], ], ['arrayWithKeysAndComplexValue', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_STRING), new Type(Type::BUILTIN_TYPE_ARRAY, true, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_STRING, true)))], ], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php:199 | 1 | return [['foo', null], ['bar', [new Type(Type::BUILTIN_TYPE_STRING)]], ['baz', [new Type(Type::BUILTIN_TYPE_INT)]], ['foo2', [new Type(Type::BUILTIN_TYPE_FLOAT)]], ['foo3', [new Type(Type::BUILTIN_TYPE_CALLABLE)]], ['foo4', [new Type(Type::BUILTIN_TYPE_NULL)]], ['foo5', null], ['files', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'SplFileInfo')), new Type(Type::BUILTIN_TYPE_RESOURCE), ], ], ['bal', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeImmutable')]], ['parent', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Symfony\Component\PropertyInfo\Tests\Fixtures\ParentDummy')]], ['collection', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeImmutable'))]], ['nestedCollection', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_STRING, false)))]], ['mixedCollection', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, [new Type(Type::BUILTIN_TYPE_INT)], null)]], ['a', null], ['b', null], ['c', [new Type(Type::BUILTIN_TYPE_BOOL, true)]], ['d', [new Type(Type::BUILTIN_TYPE_BOOL)]], ['e', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_RESOURCE))]], ['f', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeImmutable'))]], ['g', [new Type(Type::BUILTIN_TYPE_ARRAY, true, null, true)]], ['h', [new Type(Type::BUILTIN_TYPE_STRING, true)]], ['j', [new Type(Type::BUILTIN_TYPE_OBJECT, true, 'DateTimeImmutable')]], ['nullableCollectionOfNonNullableElements', [new Type(Type::BUILTIN_TYPE_ARRAY, true, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_INT, false))]], ['donotexist', null], ['staticGetter', null], ['staticSetter', null], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpDocExtractorTest.php:431 | 1 | return [['classString', [new Type(Type::BUILTIN_TYPE_STRING, false, null)]], ['classStringGeneric', [new Type(Type::BUILTIN_TYPE_STRING, false, null)]], ['htmlEscapedString', [new Type(Type::BUILTIN_TYPE_STRING, false, null)]], ['lowercaseString', [new Type(Type::BUILTIN_TYPE_STRING, false, null)]], ['nonEmptyLowercaseString', [new Type(Type::BUILTIN_TYPE_STRING, false, null)]], ['nonEmptyString', [new Type(Type::BUILTIN_TYPE_STRING, false, null)]], ['numericString', [new Type(Type::BUILTIN_TYPE_STRING, false, null)]], ['traitString', [new Type(Type::BUILTIN_TYPE_STRING, false, null)]], ['positiveInt', [new Type(Type::BUILTIN_TYPE_INT, false, null)]], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php:88 | 1 | return [['foo', null], ['bar', [new Type(Type::BUILTIN_TYPE_STRING)]], ['baz', [new Type(Type::BUILTIN_TYPE_INT)]], ['foo2', [new Type(Type::BUILTIN_TYPE_FLOAT)]], ['foo3', [new Type(Type::BUILTIN_TYPE_CALLABLE)]], ['foo4', [new Type(Type::BUILTIN_TYPE_NULL)]], ['foo5', null], ['files', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'SplFileInfo')), new Type(Type::BUILTIN_TYPE_RESOURCE), ], ], ['bal', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeImmutable')]], ['parent', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Symfony\Component\PropertyInfo\Tests\Fixtures\ParentDummy')]], ['collection', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeImmutable'))]], ['nestedCollection', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_STRING, false)))]], ['mixedCollection', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, [new Type(Type::BUILTIN_TYPE_INT)], null)]], ['a', [new Type(Type::BUILTIN_TYPE_INT)]], ['b', [new Type(Type::BUILTIN_TYPE_OBJECT, true, 'Symfony\Component\PropertyInfo\Tests\Fixtures\ParentDummy')]], ['c', [new Type(Type::BUILTIN_TYPE_BOOL, true)]], ['d', [new Type(Type::BUILTIN_TYPE_BOOL)]], ['e', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_RESOURCE))]], ['f', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeImmutable'))]], ['g', [new Type(Type::BUILTIN_TYPE_ARRAY, true, null, true)]], ['h', [new Type(Type::BUILTIN_TYPE_STRING, true)]], ['j', [new Type(Type::BUILTIN_TYPE_OBJECT, true, 'DateTimeImmutable')]], ['nullableCollectionOfNonNullableElements', [new Type(Type::BUILTIN_TYPE_ARRAY, true, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_INT, false))]], ['donotexist', null], ['staticGetter', null], ['staticSetter', null], ['emptyVar', null], ['arrayWithKeys', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_STRING), new Type(Type::BUILTIN_TYPE_STRING))]], ['arrayOfMixed', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_STRING), null)]], ['listOfStrings', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_STRING))]], ['self', [new Type(Type::BUILTIN_TYPE_OBJECT, false, Dummy::class)]], ['rootDummyItems', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, RootDummyItem::class))]], ['rootDummyItem', [new Type(Type::BUILTIN_TYPE_OBJECT, false, RootDummyItem::class)]], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php:306 | 1 | return [['propertyInTraitPrimitiveType', new Type(Type::BUILTIN_TYPE_STRING)], ['propertyInTraitObjectSameNamespace', new Type(Type::BUILTIN_TYPE_OBJECT, false, DummyUsedInTrait::class)], ['propertyInTraitObjectDifferentNamespace', new Type(Type::BUILTIN_TYPE_OBJECT, false, Dummy::class)], ['dummyInAnotherNamespace', new Type(Type::BUILTIN_TYPE_OBJECT, false, DummyInAnotherNamespace::class)], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php:364 | 1 | return [['date', [new Type(Type::BUILTIN_TYPE_INT)]], ['timezone', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeZone')]], ['dateObject', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeInterface')]], ['dateTime', null], ['ddd', null], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php:237 | 1 | return [['foo', null], ['bar', [new Type(Type::BUILTIN_TYPE_STRING)]], ['baz', [new Type(Type::BUILTIN_TYPE_INT)]], ['foo2', [new Type(Type::BUILTIN_TYPE_FLOAT)]], ['foo3', [new Type(Type::BUILTIN_TYPE_CALLABLE)]], ['foo4', [new Type(Type::BUILTIN_TYPE_NULL)]], ['foo5', null], ['files', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'SplFileInfo')), new Type(Type::BUILTIN_TYPE_RESOURCE), ], ], ['bal', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeImmutable')]], ['parent', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Symfony\Component\PropertyInfo\Tests\Fixtures\ParentDummy')]], ['collection', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeImmutable'))]], ['nestedCollection', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_STRING, false)))]], ['mixedCollection', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, [new Type(Type::BUILTIN_TYPE_INT)], null)]], ['a', null], ['b', null], ['c', null], ['d', null], ['e', null], ['f', null], ['g', [new Type(Type::BUILTIN_TYPE_ARRAY, true, null, true)]], ['h', [new Type(Type::BUILTIN_TYPE_STRING, true)]], ['j', [new Type(Type::BUILTIN_TYPE_OBJECT, true, 'DateTimeImmutable')]], ['nullableCollectionOfNonNullableElements', [new Type(Type::BUILTIN_TYPE_ARRAY, true, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_INT, false))]], ['donotexist', null], ['staticGetter', null], ['staticSetter', null], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php:275 | 2 | return ['pub' => ['pub', [new Type(Type::BUILTIN_TYPE_STRING)], ], 'protAcc' => ['protAcc', [new Type(Type::BUILTIN_TYPE_INT)], ], 'protMut' => ['protMut', [new Type(Type::BUILTIN_TYPE_BOOL)], ], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpDocExtractorTest.php:257 | 1 | return [['foo', null, 'Short description.', 'Long description.'], ['bar', [new Type(Type::BUILTIN_TYPE_STRING)], 'This is bar', null], ['baz', [new Type(Type::BUILTIN_TYPE_INT)], 'Should be used.', null], ['foo2', [new Type(Type::BUILTIN_TYPE_FLOAT)], null, null], ['foo3', [new Type(Type::BUILTIN_TYPE_CALLABLE)], null, null], ['foo4', [new Type(Type::BUILTIN_TYPE_NULL)], null, null], ['foo5', null, null, null], ['files', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'SplFileInfo')), new Type(Type::BUILTIN_TYPE_RESOURCE), ], null, null, ], ['bal', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeImmutable')], null, null], ['parent', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Symfony\Component\PropertyInfo\Tests\Fixtures\ParentDummy')], null, null], ['collection', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeImmutable'))], null, null], ['nestedCollection', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_STRING, false)))], null, null], ['mixedCollection', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, null, null)], null, null], ['a', null, 'A.', null], ['b', null, 'B.', null], ['c', null, null, null], ['d', null, null, null], ['e', null, null, null], ['f', null, null, null], ['g', [new Type(Type::BUILTIN_TYPE_ARRAY, true, null, true)], 'Nullable array.', null], ['h', [new Type(Type::BUILTIN_TYPE_STRING, true)], null, null], ['i', [new Type(Type::BUILTIN_TYPE_STRING, true), new Type(Type::BUILTIN_TYPE_INT, true)], null, null], ['j', [new Type(Type::BUILTIN_TYPE_OBJECT, true, 'DateTimeImmutable')], null, null], ['nullableCollectionOfNonNullableElements', [new Type(Type::BUILTIN_TYPE_ARRAY, true, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_INT, false))], null, null], ['donotexist', null, null, null], ['staticGetter', null, null, null], ['staticSetter', null, null, null], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpDocExtractorTest.php:214 | 1 | return [['foo', null, 'Short description.', 'Long description.'], ['bar', [new Type(Type::BUILTIN_TYPE_STRING)], 'This is bar', null], ['baz', [new Type(Type::BUILTIN_TYPE_INT)], 'Should be used.', null], ['foo2', [new Type(Type::BUILTIN_TYPE_FLOAT)], null, null], ['foo3', [new Type(Type::BUILTIN_TYPE_CALLABLE)], null, null], ['foo4', [new Type(Type::BUILTIN_TYPE_NULL)], null, null], ['foo5', null, null, null], ['files', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'SplFileInfo')), new Type(Type::BUILTIN_TYPE_RESOURCE), ], null, null, ], ['bal', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeImmutable')], null, null], ['parent', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Symfony\Component\PropertyInfo\Tests\Fixtures\ParentDummy')], null, null], ['collection', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeImmutable'))], null, null], ['nestedCollection', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_STRING, false)))], null, null], ['mixedCollection', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, null, null)], null, null], ['a', null, 'A.', null], ['b', null, 'B.', null], ['c', [new Type(Type::BUILTIN_TYPE_BOOL, true)], null, null], ['d', [new Type(Type::BUILTIN_TYPE_BOOL)], null, null], ['e', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_RESOURCE))], null, null], ['f', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeImmutable'))], null, null], ['g', [new Type(Type::BUILTIN_TYPE_ARRAY, true, null, true)], 'Nullable array.', null], ['h', [new Type(Type::BUILTIN_TYPE_STRING, true)], null, null], ['i', [new Type(Type::BUILTIN_TYPE_STRING, true), new Type(Type::BUILTIN_TYPE_INT, true)], null, null], ['j', [new Type(Type::BUILTIN_TYPE_OBJECT, true, 'DateTimeImmutable')], null, null], ['nullableCollectionOfNonNullableElements', [new Type(Type::BUILTIN_TYPE_ARRAY, true, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_INT, false))], null, null], ['nonNullableCollectionOfNullableElements', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_INT, true))], null, null], ['nullableCollectionOfMultipleNonNullableElementTypes', [new Type(Type::BUILTIN_TYPE_ARRAY, true, null, true, new Type(Type::BUILTIN_TYPE_INT), [new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_STRING)])], null, null], ['donotexist', null, null, null], ['staticGetter', null, null, null], ['staticSetter', null, null, null], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpDocExtractorTest.php:150 | 1 | return [['iteratorCollection', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Iterator', true, [new Type(Type::BUILTIN_TYPE_STRING), new Type(Type::BUILTIN_TYPE_INT)], new Type(Type::BUILTIN_TYPE_STRING))], null, null], ['iteratorCollectionWithKey', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Iterator', true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_STRING))], null, null], ['nestedIterators', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Iterator', true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Iterator', true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_STRING)))], null, null, ], ['arrayWithKeys', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_STRING), new Type(Type::BUILTIN_TYPE_STRING))], null, null, ], ['arrayWithKeysAndComplexValue', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_STRING), new Type(Type::BUILTIN_TYPE_ARRAY, true, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_STRING, true)))], null, null, ], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpDocExtractorTest.php:92 | 1 | return [['foo', null, 'Short description.', 'Long description.'], ['bar', [new Type(Type::BUILTIN_TYPE_STRING)], 'This is bar', null], ['baz', [new Type(Type::BUILTIN_TYPE_INT)], 'Should be used.', null], ['foo2', [new Type(Type::BUILTIN_TYPE_FLOAT)], null, null], ['foo3', [new Type(Type::BUILTIN_TYPE_CALLABLE)], null, null], ['foo4', [new Type(Type::BUILTIN_TYPE_NULL)], null, null], ['foo5', null, null, null], ['files', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'SplFileInfo')), new Type(Type::BUILTIN_TYPE_RESOURCE), ], null, null, ], ['bal', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeImmutable')], null, null], ['parent', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'Symfony\Component\PropertyInfo\Tests\Fixtures\ParentDummy')], null, null], ['collection', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeImmutable'))], null, null], ['nestedCollection', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_STRING, false)))], null, null], ['mixedCollection', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, null, null)], null, null], ['a', [new Type(Type::BUILTIN_TYPE_INT)], 'A.', null], ['b', [new Type(Type::BUILTIN_TYPE_OBJECT, true, 'Symfony\Component\PropertyInfo\Tests\Fixtures\ParentDummy')], 'B.', null], ['c', [new Type(Type::BUILTIN_TYPE_BOOL, true)], null, null], ['ct', [new Type(Type::BUILTIN_TYPE_TRUE, true)], null, null], ['cf', [new Type(Type::BUILTIN_TYPE_FALSE, true)], null, null], ['d', [new Type(Type::BUILTIN_TYPE_BOOL)], null, null], ['dt', [new Type(Type::BUILTIN_TYPE_TRUE)], null, null], ['df', [new Type(Type::BUILTIN_TYPE_FALSE)], null, null], ['e', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_RESOURCE))], null, null], ['f', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeImmutable'))], null, null], ['g', [new Type(Type::BUILTIN_TYPE_ARRAY, true, null, true)], 'Nullable array.', null], ['h', [new Type(Type::BUILTIN_TYPE_STRING, true)], null, null], ['i', [new Type(Type::BUILTIN_TYPE_STRING, true), new Type(Type::BUILTIN_TYPE_INT, true)], null, null], ['j', [new Type(Type::BUILTIN_TYPE_OBJECT, true, 'DateTimeImmutable')], null, null], ['nullableCollectionOfNonNullableElements', [new Type(Type::BUILTIN_TYPE_ARRAY, true, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_INT, false))], null, null], ['donotexist', null, null, null], ['staticGetter', null, null, null], ['staticSetter', null, null, null], ['emptyVar', null, 'This should not be removed.', null], ['arrayWithKeys', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_STRING), new Type(Type::BUILTIN_TYPE_STRING))], null, null], ['arrayOfMixed', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_STRING), null)], null, null], ['listOfStrings', [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), new Type(Type::BUILTIN_TYPE_STRING))], null, null], ['self', [new Type(Type::BUILTIN_TYPE_OBJECT, false, Dummy::class)], null, null], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpDocExtractorTest.php:411 | 1 | return [['date', [new Type(Type::BUILTIN_TYPE_INT)]], ['timezone', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeZone')]], ['dateObject', [new Type(Type::BUILTIN_TYPE_OBJECT, false, 'DateTimeInterface')]], ['dateTime', null], ['ddd', null], ['mixed', null], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpDocExtractorTest.php:354 | 1 | return [['methodInTraitPrimitiveType', new Type(Type::BUILTIN_TYPE_STRING)], ['methodInTraitObjectSameNamespace', new Type(Type::BUILTIN_TYPE_OBJECT, false, DummyUsedInTrait::class)], ['methodInTraitObjectDifferentNamespace', new Type(Type::BUILTIN_TYPE_OBJECT, false, Dummy::class)], ['methodInExternalTraitPrimitiveType', new Type(Type::BUILTIN_TYPE_STRING)], ['methodInExternalTraitObjectSameNamespace', new Type(Type::BUILTIN_TYPE_OBJECT, false, Dummy::class)], ['methodInExternalTraitObjectDifferentNamespace', new Type(Type::BUILTIN_TYPE_OBJECT, false, DummyUsedInTrait::class)], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpDocExtractorTest.php:334 | 1 | return [['propertyInTraitPrimitiveType', new Type(Type::BUILTIN_TYPE_STRING)], ['propertyInTraitObjectSameNamespace', new Type(Type::BUILTIN_TYPE_OBJECT, false, DummyUsedInTrait::class)], ['propertyInTraitObjectDifferentNamespace', new Type(Type::BUILTIN_TYPE_OBJECT, false, Dummy::class)], ['propertyInExternalTraitPrimitiveType', new Type(Type::BUILTIN_TYPE_STRING)], ['propertyInExternalTraitObjectSameNamespace', new Type(Type::BUILTIN_TYPE_OBJECT, false, Dummy::class)], ['propertyInExternalTraitObjectDifferentNamespace', new Type(Type::BUILTIN_TYPE_OBJECT, false, DummyUsedInTrait::class)], ] |
/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpDocExtractorTest.php:303 | 2 | return ['pub' => ['pub', [new Type(Type::BUILTIN_TYPE_STRING)], ], 'protAcc' => ['protAcc', [new Type(Type::BUILTIN_TYPE_INT)], ], 'protMut' => ['protMut', [new Type(Type::BUILTIN_TYPE_BOOL)], ], ] |
/src/Symfony/Component/Uid/UuidV6.php:49 | 1 | $uuid = substr($uuidV1, 15, 3) . substr($uuidV1, 9, 4) . $uuidV1[0] . '-' . substr($uuidV1, 1, 4) . '-6' . substr($uuidV1, 5, 3) . substr($uuidV1, 18, 6) |
/src/Symfony/Component/Uid/Ulid.php:200 | 1 | return strtr(sprintf('%010s%04s%04s%04s%04s', $time, base_convert(self::$rand[1], 10, 32), base_convert(self::$rand[2], 10, 32), base_convert(self::$rand[3], 10, 32), base_convert(self::$rand[4], 10, 32)), 'abcdefghijklmnopqrstuv', 'ABCDEFGHJKMNPQRSTVWXYZ') |
/src/Symfony/Component/Uid/Ulid.php:104 | 1 | $ulid = sprintf('%02s%05s%05s%05s%05s%05s%05s', base_convert(substr($ulid, 0, 2), 32, 16), base_convert(substr($ulid, 2, 4), 32, 16), base_convert(substr($ulid, 6, 4), 32, 16), base_convert(substr($ulid, 10, 4), 32, 16), base_convert(substr($ulid, 14, 4), 32, 16), base_convert(substr($ulid, 18, 4), 32, 16), base_convert(substr($ulid, 22, 4), 32, 16)) |
/src/Symfony/Component/Uid/Ulid.php:76 | 1 | $ulid = sprintf('%02s%04s%04s%04s%04s%04s%04s', base_convert(substr($ulid, 0, 2), 16, 32), base_convert(substr($ulid, 2, 5), 16, 32), base_convert(substr($ulid, 7, 5), 16, 32), base_convert(substr($ulid, 12, 5), 16, 32), base_convert(substr($ulid, 17, 5), 16, 32), base_convert(substr($ulid, 22, 5), 16, 32), base_convert(substr($ulid, 27, 5), 16, 32)) |
/src/Symfony/Component/PropertyInfo/Tests/TypeTest.php:57 | 1 | $type = new Type('array', false, null, true, [new Type('int'), new Type('string')], [new Type('object', false, \ArrayObject::class, true), new Type('array', false, null, true)]) |
/src/Symfony/Component/PropertyInfo/Util/PhpStanTypeHelper.php:162 | 1 | return [new Type($subTypes[0]->getBuiltinType( ), true, $subTypes[0]->getClassName( ), $subTypes[0]->isCollection( ), $subTypes[0]->getCollectionKeyTypes( ), $subTypes[0]->getCollectionValueTypes( ))] |
/src/Symfony/Component/Ldap/Adapter/ExtLdap/Query.php:99 | 1 | $search = @$func($con, $this->dn, $this->query, $this->options['filter'], $this->options['attrsOnly'], $sizeLimit, $this->options['timeout'], $this->options['deref'], $this->serverctrls) |
/src/Symfony/Component/Uid/UuidV7.php:116 | 1 | return substr_replace(sprintf('%012s-%04x-%04x-%04x%04x%04x', $time, 0x7000 | (self::$rand[1] << 2) | (self::$rand[2] >> 14), 0x8000 | (self::$rand[2] & 0x3FFF), self::$rand[3], self::$rand[4], self::$rand[5], ), '-', 8, 0) |
/src/Symfony/Component/Mime/Tests/Crypto/DkimSignerTest.php:53 | 1 | $message = (new Email( ))->from(new Address('fabien@testdkim.symfony.net', 'Fabién'))->to('fabien.potencier@gmail.com')->subject('Tést')->text("Some body \n \n This \r\n\r\n is really interesting and at the same time very long line to see if everything works as expected, does it?\r\n\r\n\r\n\r\n")->date(new \DateTimeImmutable('2005-10-15', new \DateTimeZone('Europe/Paris'))) |
/src/Symfony/Component/Mime/Tests/Crypto/SMimeSignerTest.php:117 | 1 | $message = new Email((new Headers( ))->addDateHeader('Date', new \DateTimeImmutable('2019-04-07 10:36:30', new \DateTimeZone('Europe/Paris')))->addMailboxListHeader('From', ['fabien@symfony.com'])->addMailboxListHeader('To', ['fabien@symfony.com'])) |
/src/Symfony/Component/Mime/Tests/Crypto/SMimeEncrypterTest.php:43 | 1 | $message = (new Email( ))->date(new \DateTimeImmutable('2019-04-07 10:36:30', new \DateTimeZone('Europe/Paris')))->to('fabien@symfony.com')->bcc('luna@symfony.com')->subject('Testing')->from('noreply@example.com')->text('El Barto was not here') |
/src/Symfony/Component/Mime/Tests/Crypto/SMimeEncrypterTest.php:26 | 4 | $message = (new Email( ))->date(new \DateTimeImmutable('2019-04-07 10:36:30', new \DateTimeZone('Europe/Paris')))->to('fabien@symfony.com')->subject('Testing')->from('noreply@example.com')->text('El Barto was not here') |
/src/Symfony/Component/Mime/Tests/Crypto/SMimeSignerTest.php:44 | 4 | $message = (new Email( ))->date(new \DateTimeImmutable('2019-04-07 10:36:30', new \DateTimeZone('Europe/Paris')))->to('fabien@symfony.com')->subject('Testing')->from('noreply@example.com')->text('El Barto was not here') |
/src/Symfony/Component/Mime/Tests/RawMessageTest.php:80 | 1 | return ['string' => ['some string', true], 'traversable' => [new \ArrayObject(['some', ' ', 'string']), true], 'array' => [['some', ' ', 'string'], true], 'generator' => [(function ( ) { /**/ } )( ), false], ] |
/src/Symfony/Component/Mime/Tests/Crypto/SMimeSignerTest.php:101 | 1 | $message = (new Email( ))->date(new \DateTimeImmutable('2019-04-07 10:36:30', new \DateTimeZone('Europe/Paris')))->to('fabien@symfony.com')->addBcc('fabien@symfony.com', 's.stok@rollerscapes.net')->subject('I am your sign of fear')->from('noreply@example.com')->text('El Barto was not here') |
/src/Symfony/Component/Mime/Tests/Crypto/SMimeSignerTest.php:79 | 4 | $message = (new Email( ))->date(new \DateTimeImmutable('2019-04-07 10:36:30', new \DateTimeZone('Europe/Paris')))->to('fabien@symfony.com')->subject('Testing')->from('noreply@example.com')->text('El Barto was not here') |
/src/Symfony/Component/String/AbstractUnicodeString.php:63 | 1 | $string .= \chr(0xF0 | $code >> 18) . \chr(0x80 | $code >> 12 & 0x3F) . \chr(0x80 | $code >> 6 & 0x3F) . \chr(0x80 | $code & 0x3F) |
/src/Symfony/Component/OptionsResolver/Tests/OptionsResolverTest.php:845 | 1 | return [[true, 'string', 'The option "option" with value true is expected to be of type "string", but is of type "bool".'], [false, 'string', 'The option "option" with value false is expected to be of type "string", but is of type "bool".'], [fopen(__FILE__, 'r'), 'string', 'The option "option" with value resource is expected to be of type "string", but is of type "resource (stream)".'], [[ ], 'string', 'The option "option" with value array is expected to be of type "string", but is of type "array".'], [new OptionsResolver( ), 'string', 'The option "option" with value Symfony\Component\OptionsResolver\OptionsResolver is expected to be of type "string", but is of type "Symfony\Component\OptionsResolver\OptionsResolver".'], [42, 'string', 'The option "option" with value 42 is expected to be of type "string", but is of type "int".'], [null, 'string', 'The option "option" with value null is expected to be of type "string", but is of type "null".'], ['bar', '\stdClass', 'The option "option" with value "bar" is expected to be of type "\stdClass", but is of type "string".'], [['foo', 12], 'string[]', 'The option "option" with value array is expected to be of type "string[]", but one of the elements is of type "int".'], [123, ['string[]', 'string'], 'The option "option" with value 123 is expected to be of type "string[]" or "string", but is of type "int".'], [[null], ['string[]', 'string'], 'The option "option" with value array is expected to be of type "string[]" or "string", but one of the elements is of type "null".'], [['string', null], ['string[]', 'string'], 'The option "option" with value array is expected to be of type "string[]" or "string", but one of the elements is of type "null".'], [[\stdClass::class], ['string'], 'The option "option" with value array is expected to be of type "string", but is of type "array".'], ] |
/src/Symfony/Component/String/Tests/AbstractAsciiTestCase.php:329 | 1 | return [['hello world', ' ', [static::createFromString('hello'), static::createFromString('world'), ], null, ], ['radar', 'd', [static::createFromString('ra'), static::createFromString('ar'), ], 2, ], ['foo,bar,baz,qux,kix', ',', [static::createFromString('foo'), static::createFromString('bar'), static::createFromString('baz'), static::createFromString('qux'), static::createFromString('kix'), ], null, ], ['foo,bar,baz,qux,kix', ',', [static::createFromString('foo,bar,baz,qux,kix'), ], 1, ], ['foo,bar,baz,qux,kix', ',', [static::createFromString('foo'), static::createFromString('bar'), static::createFromString('baz,qux,kix'), ], 3, ], ['Quisque viverra tincidunt elit. Vestibulum convallis dui nec lacis suscipit cursus.', 'is', [static::createFromString('Qu'), static::createFromString('que viverra tincidunt elit. Vestibulum convall'), static::createFromString(' dui nec lac'), static::createFromString(' suscipit cursus.'), ], null, ], ['foo,,bar, baz , qux,kix', '/\s*,\s*/', [static::createFromString('foo'), static::createFromString(''), static::createFromString('bar'), static::createFromString('baz'), static::createFromString('qux,kix'), ], 5, AbstractString::PREG_SPLIT, ], ['foo ,,bar, baz', '/\s*(,)\s*/', [static::createFromString('foo'), static::createFromString(','), static::createFromString(','), static::createFromString('bar'), static::createFromString(','), static::createFromString('baz'), ], null, AbstractString::PREG_SPLIT_NO_EMPTY | AbstractString::PREG_SPLIT_DELIM_CAPTURE, ], ['foo, bar,baz', '/\s*(,)\s*/', [[static::createFromString('foo'), 0], [static::createFromString('bar'), 5], [static::createFromString('baz'), 9], ], null, AbstractString::PREG_SPLIT_OFFSET_CAPTURE, ], ] |
/src/Symfony/Component/String/Tests/AbstractAsciiTestCase.php:158 | 1 | return [[[ ], [ ]], [['abc' => static::createFromString('foo'), 1, static::createFromString('bar'), 'baz' => true], ['abc' => 'foo', 1, 'bar', 'baz' => true], ], [['a' => ['b' => static::createFromString('c'), [static::createFromString('d')]], static::createFromString('e')], ['a' => ['b' => 'c', ['d']], 'e'], ], ] |
/src/Symfony/Component/Mime/Tests/Crypto/SMimeEncrypterTest.php:71 | 1 | $message2 = (new Email( ))->date(new \DateTimeImmutable('2019-04-07 10:36:30', new \DateTimeZone('Europe/Paris')))->to('luna@symfony.com')->subject('Testing')->from('noreply@example.com')->text('El Barto was not here') |
/src/Symfony/Component/Mime/Tests/Crypto/SMimeEncrypterTest.php:64 | 4 | $message = (new Email( ))->date(new \DateTimeImmutable('2019-04-07 10:36:30', new \DateTimeZone('Europe/Paris')))->to('fabien@symfony.com')->subject('Testing')->from('noreply@example.com')->text('El Barto was not here') |
/src/Symfony/Component/Mime/Tests/Part/Multipart/FormDataPartTest.php:53 | 1 | $f = new FormDataPart(['foo' => clone $p1, 'bar' => ['baz' => [clone $p1, 'qux' => clone $p1, ], ], 'quux' => [clone $p1, clone $p1, ], 'quuz' => ['corge' => [clone $p1, clone $p1, ], ], '2' => clone $p1, '0' => clone $p1, 'bar2' => [['baz' => clone $p1], 'baz' => ['qux' => clone $p1, ], ], ['quux2' => clone $p1], ['quux2' => [clone $p1]], 'quuz2' => [['corge' => clone $p1], ['corge' => clone $p1], ], ['2' => clone $p1], ['2' => clone $p1], ['0' => clone $p1], ['0' => clone $p1], ['2[0]' => clone $p1], ['2[1]' => clone $p1], ['0[0]' => clone $p1], ['0[1]' => clone $p1], 'qux' => [['foo' => clone $p1, 'bar' => clone $p1, ], ['foo' => clone $p1, 'bar' => clone $p1, ], ], ]) |
/src/Symfony/Component/Mime/Tests/Encoder/QpMimeHeaderEncoderTest.php:93 | 1 | $allowedBytes = array_merge(range(\ord('a'), \ord('z')), range(\ord('A'), \ord('Z')), range(\ord('0'), \ord('9')), [\ord('!'), \ord('*'), \ord('+'), \ord('-'), \ord('/')]) |
/src/Symfony/Component/Yaml/Dumper.php:129 | 1 | $output .= sprintf('%s%s%s%s', $prefix, $dumpAsMap ? Inline::dump($key, $flags) . ':' : '-', $willBeInlined ? ' ' : "\n", $this->dump($value, $inline - 1, $willBeInlined ? 0 : $indent + $this->indentation, $flags)) . ($willBeInlined ? "\n" : '') |
/src/Symfony/Component/Yaml/Inline.php:113 | 1 | return $value->format(match (true) { /**/ } ) |
/src/Symfony/Component/Yaml/Tests/ParserTest.php:2247 | 1 | return ['scalars' => [['foo' => new TaggedValue('inline', 'bar'), 'quz' => new TaggedValue('long', 'this is a long text'), ], <<<YAML foo: !inline bar quz: !long > this is a long text YAML], 'sequences' => [[new TaggedValue('foo', ['yaml']), new TaggedValue('quz', ['bar'])], <<<YAML - !foo - yaml - !quz [bar] YAML], 'mappings' => [new TaggedValue('foo', ['foo' => new TaggedValue('quz', ['bar']), 'quz' => new TaggedValue('foo', ['quz' => 'bar'])]), <<<YAML !foo foo: !quz [bar] quz: !foo quz: bar YAML], 'inline' => [[new TaggedValue('foo', ['foo', 'bar']), new TaggedValue('quz', ['foo' => 'bar', 'quz' => new TaggedValue('bar', ['one' => 'bar'])])], <<<YAML - !foo [foo, bar] - !quz {foo: bar, quz: !bar {one: bar}} YAML], 'spaces-around-tag-value-in-sequence' => [[new TaggedValue('foo', 'bar')], '[ !foo bar ]', ], 'with-comments' => [[[new TaggedValue('foo', ['foo', 'baz'])], ], <<<YAML - [!foo [ foo, baz #bar ]] YAML], 'with-comments-trailing-comma' => [[[new TaggedValue('foo', ['foo', 'baz'])], ], <<<YAML - [!foo [ foo, baz, #bar ]] YAML], ] |
/src/Symfony/Component/Yaml/Tests/ParserTest.php:2535 | 1 | $expected = (object) ['foo' => (object) ['bar' => 1, ], 'bar' => (object) ['baz' => 2, 'bar' => 1, ], 'baz' => (object) ['baz_foo' => 3, 'baz_bar' => 4, ], 'foobar' => (object) ['bar' => null, 'baz' => 2, ], ] |
/src/Symfony/Component/Workflow/Tests/Dumper/MermaidDumperTest.php:76 | 1 | yield [self::createComplexWorkflowDefinition( ), "graph LR\n" . "place0([\"a\"])\n" . "place1((\"b\"))\n" . "place2((\"c\"))\n" . "place3((\"d\"))\n" . "place4((\"e\"))\n" . "place5((\"f\"))\n" . "place6((\"g\"))\n" . "transition0[\"t1\"]\n" . "place0-->transition0\n" . "transition0-->place1\n" . "transition0-->place2\n" . "transition1[\"t2\"]\n" . "place1-->transition1\n" . "transition1-->place3\n" . "place2-->transition1\n" . "transition2[\"My custom transition label 1\"]\n" . "place3-->transition2\n" . "linkStyle 6 stroke:Red\n" . "transition2-->place4\n" . "linkStyle 7 stroke:Red\n" . "transition3[\"t4\"]\n" . "place3-->transition3\n" . "transition3-->place5\n" . "transition4[\"t5\"]\n" . "place4-->transition4\n" . "transition4-->place6\n" . "transition5[\"t6\"]\n" . "place5-->transition5\n" . "transition5-->place6", ] |
/src/Symfony/Component/Workflow/Dumper/PlantUmlDumper.php:200 | 1 | $output = "state $placeEscaped" . (\in_array($place, $definition->getInitialPlaces( ), true) ? ' ' . self::INITIAL : '') . ($marking?->has($place) ? ' ' . self::MARKED : '') |
/src/Symfony/Component/Workflow/Dumper/GraphvizDumper.php:252 | 1 | return sprintf("digraph workflow {\n %s%s\n node [%s];\n edge [%s];\n\n", $this->addOptions($options['graph']), '""' !== $label && '<>' !== $label ? sprintf(' label=%s', $label) : '', $this->addOptions($options['node']), $this->addOptions($options['edge'])) |
/src/Symfony/Component/Yaml/Unescaper.php:106 | 1 | return \chr(0xF0 | $c >> 18) . \chr(0x80 | $c >> 12 & 0x3F) . \chr(0x80 | $c >> 6 & 0x3F) . \chr(0x80 | $c & 0x3F) |
/src/Symfony/Component/Mime/MessageConverter.php:73 | 1 | return (new Email(clone $message->getHeaders( )))->html($part->getBody( ), $part->getPreparedHeaders( )->getHeaderParameter('Content-Type', 'charset') ?: 'utf-8') |
/src/Symfony/Component/Mime/MessageConverter.php:87 | 1 | return (new Email(clone $message->getHeaders( )))->text($parts[0]->getBody( ), $parts[0]->getPreparedHeaders( )->getHeaderParameter('Content-Type', 'charset') ?: 'utf-8')->html($parts[1]->getBody( ), $parts[1]->getPreparedHeaders( )->getHeaderParameter('Content-Type', 'charset') ?: 'utf-8') |
/src/Symfony/Component/Mime/Crypto/DkimSigner.php:50 | 1 | $this->defaultOptions = $defaultOptions + ['algorithm' => self::ALGO_SHA256, 'signature_expiration_delay' => 0, 'body_max_length' => \PHP_INT_MAX, 'body_show_length' => false, 'header_canon' => self::CANON_RELAXED, 'body_canon' => self::CANON_RELAXED, 'headers_to_ignore' => [ ], ] |
/src/Symfony/Component/Mime/Crypto/DkimSigner.php:91 | 1 | $params = ['v' => '1', 'q' => 'dns/txt', 'a' => $options['algorithm'], 'bh' => base64_encode($bodyHash), 'd' => $this->domainName, 'h' => implode(': ', $signedHeaderNames), 'i' => '@' . $this->domainName, 's' => $this->selector, 't' => time( ), 'c' => $options['header_canon'] . '/' . $options['body_canon'], ] |
/src/Symfony/Component/Yaml/Tests/InlineTest.php:319 | 1 | return [['', ''], ['null', null], ['false', false], ['true', true], ['12', 12], ['-12', -12], ['1_2', 12], ['_12', '_12'], ['12_', 12], ['"quoted string"', 'quoted string'], ["'quoted string'", 'quoted string'], ['1234.0', 1234.0], ['12.30e+02', 12.30e+02], ['123.45_67', 123.4567], ['0x4D2', 0x4D2], ['0x_4_D_2_', 0x4D2], ['0o2333', 02333], ['0o_2_3_3_3', 02333], ['.Inf', -log(0)], ['-.Inf', log(0)], ["'686e444'", '686e444'], ['686e444', 646e444], ['123456789123456789123456789123456789', '123456789123456789123456789123456789'], ['"foo\r\nbar"', "foo\r\nbar"], ["'foo#bar'", 'foo#bar'], ["'foo # bar'", 'foo # bar'], ["'#cfcfcf'", '#cfcfcf'], ['::form_base.html.twig', '::form_base.html.twig'], ["'y'", 'y'], ["'n'", 'n'], ["'yes'", 'yes'], ["'no'", 'no'], ["'on'", 'on'], ["'off'", 'off'], ['2007-10-30', gmmktime(0, 0, 0, 10, 30, 2007)], ['2007-10-30T02:59:43Z', gmmktime(2, 59, 43, 10, 30, 2007)], ['2007-10-30 02:59:43 Z', gmmktime(2, 59, 43, 10, 30, 2007)], ['1960-10-30 02:59:43 Z', gmmktime(2, 59, 43, 10, 30, 1960)], ['1730-10-30T02:59:43Z', \PHP_INT_SIZE === 4 ? '-7547547617' : gmmktime(2, 59, 43, 10, 30, 1730)], ['"a \\"string\\" with \'quoted strings inside\'"', 'a "string" with \'quoted strings inside\''], ["'a \"string\" with ''quoted strings inside'''", 'a "string" with \'quoted strings inside\''], ['[foo, http://urls.are/no/mappings, false, null, 12]', ['foo', 'http://urls.are/no/mappings', false, null, 12]], ['[ foo , bar , false , null , 12 ]', ['foo', 'bar', false, null, 12]], ['[\'foo,bar\', \'foo bar\']', ['foo,bar', 'foo bar']], ['{foo: bar,bar: foo,"false": false, "null": null,integer: 12}', ['foo' => 'bar', 'bar' => 'foo', 'false' => false, 'null' => null, 'integer' => 12]], ['{ foo : bar, bar : foo, "false" : false, "null" : null, integer : 12 }', ['foo' => 'bar', 'bar' => 'foo', 'false' => false, 'null' => null, 'integer' => 12]], ['{foo: \'bar\', bar: \'foo: bar\'}', ['foo' => 'bar', 'bar' => 'foo: bar']], ['{\'foo\': \'bar\', "bar": \'foo: bar\'}', ['foo' => 'bar', 'bar' => 'foo: bar']], ['{\'foo\'\'\': \'bar\', "bar\"": \'foo: bar\'}', ['foo\'' => 'bar', 'bar"' => 'foo: bar']], ['{\'foo: \': \'bar\', "bar: ": \'foo: bar\'}', ['foo: ' => 'bar', 'bar: ' => 'foo: bar']], ['{"foo:bar": "baz"}', ['foo:bar' => 'baz']], ['{"foo":"bar"}', ['foo' => 'bar']], ['[foo, [bar, foo]]', ['foo', ['bar', 'foo']]], ['[foo, {bar: foo}]', ['foo', ['bar' => 'foo']]], ['{ foo: {bar: foo} }', ['foo' => ['bar' => 'foo']]], ['{ foo: [bar, foo] }', ['foo' => ['bar', 'foo']]], ['{ foo:{bar: foo} }', ['foo' => ['bar' => 'foo']]], ['{ foo:[bar, foo] }', ['foo' => ['bar', 'foo']]], ['[ foo, [ bar, foo ] ]', ['foo', ['bar', 'foo']]], ['[{ foo: {bar: foo} }]', [['foo' => ['bar' => 'foo']]]], ['[foo, [bar, [foo, [bar, foo]], foo]]', ['foo', ['bar', ['foo', ['bar', 'foo']], 'foo']]], ['[foo, {bar: foo, foo: [foo, {bar: foo}]}, [foo, {bar: foo}]]', ['foo', ['bar' => 'foo', 'foo' => ['foo', ['bar' => 'foo']]], ['foo', ['bar' => 'foo']]]], ['[foo, bar: { foo: bar }]', ['foo', '1' => ['bar' => ['foo' => 'bar']]]], ['[foo, \'@foo.baz\', { \'%foo%\': \'foo is %foo%\', bar: \'%foo%\' }, true, \'@service_container\']', ['foo', '@foo.baz', ['%foo%' => 'foo is %foo%', 'bar' => '%foo%'], true, '@service_container']], ['{ uid: !!binary Ju0Yh+uqSXOagJZFTlUt8g== }', ['uid' => hex2bin('26ed1887ebaa49739a8096454e552df2')]], ] |
/src/Symfony/Component/Yaml/Tests/InlineTest.php:408 | 1 | return [['', ''], ['null', null], ['false', false], ['true', true], ['12', 12], ['-12', -12], ['"quoted string"', 'quoted string'], ["'quoted string'", 'quoted string'], ['12.30e+02', 12.30e+02], ['0x4D2', 0x4D2], ['0o2333', 02333], ['.Inf', -log(0)], ['-.Inf', log(0)], ["'686e444'", '686e444'], ['686e444', 646e444], ['123456789123456789123456789123456789', '123456789123456789123456789123456789'], ['"foo\r\nbar"', "foo\r\nbar"], ["'foo#bar'", 'foo#bar'], ["'foo # bar'", 'foo # bar'], ["'#cfcfcf'", '#cfcfcf'], ['::form_base.html.twig', '::form_base.html.twig'], ['2007-10-30', gmmktime(0, 0, 0, 10, 30, 2007)], ['2007-10-30T02:59:43Z', gmmktime(2, 59, 43, 10, 30, 2007)], ['2007-10-30 02:59:43 Z', gmmktime(2, 59, 43, 10, 30, 2007)], ['1960-10-30 02:59:43 Z', gmmktime(2, 59, 43, 10, 30, 1960)], ['1730-10-30T02:59:43Z', \PHP_INT_SIZE === 4 ? '-7547547617' : gmmktime(2, 59, 43, 10, 30, 1730)], ['"a \\"string\\" with \'quoted strings inside\'"', 'a "string" with \'quoted strings inside\''], ["'a \"string\" with ''quoted strings inside'''", 'a "string" with \'quoted strings inside\''], ['[foo, http://urls.are/no/mappings, false, null, 12]', ['foo', 'http://urls.are/no/mappings', false, null, 12]], ['[ foo , bar , false , null , 12 ]', ['foo', 'bar', false, null, 12]], ['[\'foo,bar\', \'foo bar\']', ['foo,bar', 'foo bar']], ['{foo: bar,bar: foo,"false": false,"null": null,integer: 12}', (object) ['foo' => 'bar', 'bar' => 'foo', 'false' => false, 'null' => null, 'integer' => 12], Yaml::PARSE_OBJECT_FOR_MAP], ['{ foo : bar, bar : foo, "false" : false, "null" : null, integer : 12 }', (object) ['foo' => 'bar', 'bar' => 'foo', 'false' => false, 'null' => null, 'integer' => 12], Yaml::PARSE_OBJECT_FOR_MAP], ['{foo: \'bar\', bar: \'foo: bar\'}', (object) ['foo' => 'bar', 'bar' => 'foo: bar']], ['{\'foo\': \'bar\', "bar": \'foo: bar\'}', (object) ['foo' => 'bar', 'bar' => 'foo: bar']], ['{\'foo\'\'\': \'bar\', "bar\"": \'foo: bar\'}', (object) ['foo\'' => 'bar', 'bar"' => 'foo: bar']], ['{\'foo: \': \'bar\', "bar: ": \'foo: bar\'}', (object) ['foo: ' => 'bar', 'bar: ' => 'foo: bar']], ['{"foo:bar": "baz"}', (object) ['foo:bar' => 'baz']], ['{"foo":"bar"}', (object) ['foo' => 'bar']], ['[foo, [bar, foo]]', ['foo', ['bar', 'foo']]], ['[foo, {bar: foo}]', ['foo', (object) ['bar' => 'foo']]], ['{ foo: {bar: foo} }', (object) ['foo' => (object) ['bar' => 'foo']]], ['{ foo: [bar, foo] }', (object) ['foo' => ['bar', 'foo']]], ['[ foo, [ bar, foo ] ]', ['foo', ['bar', 'foo']]], ['[{ foo: {bar: foo} }]', [(object) ['foo' => (object) ['bar' => 'foo']]]], ['[foo, [bar, [foo, [bar, foo]], foo]]', ['foo', ['bar', ['foo', ['bar', 'foo']], 'foo']]], ['[foo, {bar: foo, foo: [foo, {bar: foo}]}, [foo, {bar: foo}]]', ['foo', (object) ['bar' => 'foo', 'foo' => ['foo', (object) ['bar' => 'foo']]], ['foo', (object) ['bar' => 'foo']]]], ['[foo, bar: { foo: bar }]', ['foo', '1' => (object) ['bar' => (object) ['foo' => 'bar']]]], ['[foo, \'@foo.baz\', { \'%foo%\': \'foo is %foo%\', bar: \'%foo%\' }, true, \'@service_container\']', ['foo', '@foo.baz', (object) ['%foo%' => 'foo is %foo%', 'bar' => '%foo%'], true, '@service_container']], ['{}', new \stdClass( )], ['{ foo : bar, bar : {} }', (object) ['foo' => 'bar', 'bar' => new \stdClass( )]], ['{ foo : [], bar : {} }', (object) ['foo' => [ ], 'bar' => new \stdClass( )]], ['{foo: \'bar\', bar: {} }', (object) ['foo' => 'bar', 'bar' => new \stdClass( )]], ['{\'foo\': \'bar\', "bar": {}}', (object) ['foo' => 'bar', 'bar' => new \stdClass( )]], ['{\'foo\': \'bar\', "bar": \'{}\'}', (object) ['foo' => 'bar', 'bar' => '{}']], ['[foo, [{}, {}]]', ['foo', [new \stdClass( ), new \stdClass( )]]], ['[foo, [[], {}]]', ['foo', [[ ], new \stdClass( )]]], ['[foo, [[{}, {}], {}]]', ['foo', [[new \stdClass( ), new \stdClass( )], new \stdClass( )]]], ['[foo, {bar: {}}]', ['foo', '1' => (object) ['bar' => new \stdClass( )]]], ] |
/src/Symfony/Component/Yaml/Tests/InlineTest.php:489 | 1 | return [['null', null], ['false', false], ['true', true], ['12', 12], ["'1_2'", '1_2'], ['_12', '_12'], ["'12_'", '12_'], ["'quoted string'", 'quoted string'], ['1230.0', 12.30e+02], ['1.23E+45', 12.30e+44], ['1234', 0x4D2], ['1243', 02333], ["'0x_4_D_2_'", '0x_4_D_2_'], ["'0_2_3_3_3'", '0_2_3_3_3'], ['.Inf', -log(0)], ['-.Inf', log(0)], ["'686e444'", '686e444'], ['"foo\r\nbar"', "foo\r\nbar"], ["'foo#bar'", 'foo#bar'], ["'foo # bar'", 'foo # bar'], ["'#cfcfcf'", '#cfcfcf'], ["\"isn't it a nice single quote\"", "isn't it a nice single quote"], ['\'this is "double quoted"\'', 'this is "double quoted"'], ["\"one double, four single quotes: \\\"''''\"", 'one double, four single quotes: "\'\'\'\''], ['\'four double, one single quote: """"\'\'\'', 'four double, one single quote: """"\''], ["'a \"string\" with ''quoted strings inside'''", 'a "string" with \'quoted strings inside\''], ["'-dash'", '-dash'], ["'-'", '-'], ["'y'", 'y'], ["'n'", 'n'], ["'yes'", 'yes'], ["'no'", 'no'], ["'on'", 'on'], ["'off'", 'off'], ['[foo, bar, false, null, 12]', ['foo', 'bar', false, null, 12]], ['[\'foo,bar\', \'foo bar\']', ['foo,bar', 'foo bar']], ['{ foo: bar, bar: foo, \'false\': false, \'null\': null, integer: 12 }', ['foo' => 'bar', 'bar' => 'foo', 'false' => false, 'null' => null, 'integer' => 12]], ['{ foo: bar, bar: \'foo: bar\' }', ['foo' => 'bar', 'bar' => 'foo: bar']], ['[foo, [bar, foo]]', ['foo', ['bar', 'foo']]], ['[foo, [bar, [foo, [bar, foo]], foo]]', ['foo', ['bar', ['foo', ['bar', 'foo']], 'foo']]], ['{ foo: { bar: foo } }', ['foo' => ['bar' => 'foo']]], ['[foo, { bar: foo }]', ['foo', ['bar' => 'foo']]], ['[foo, { bar: foo, foo: [foo, { bar: foo }] }, [foo, { bar: foo }]]', ['foo', ['bar' => 'foo', 'foo' => ['foo', ['bar' => 'foo']]], ['foo', ['bar' => 'foo']]]], ['[foo, \'@foo.baz\', { \'%foo%\': \'foo is %foo%\', bar: \'%foo%\' }, true, \'@service_container\']', ['foo', '@foo.baz', ['%foo%' => 'foo is %foo%', 'bar' => '%foo%'], true, '@service_container']], ['{ foo: { bar: { 1: 2, baz: 3 } } }', ['foo' => ['bar' => [1 => 2, 'baz' => 3]]]], ["'0123 '", '0123 '], ['"0123\f"', "0123\f"], ['"0123\n"', "0123\n"], ['"0123\r"', "0123\r"], ['"0123\t"', "0123\t"], ['"0123\v"', "0123\v"], 'ideographic space' => ["' '", ' '], 'ideographic space surrounded by characters' => ["'a b'", 'a b'], ] |
/src/Symfony/Component/Mime/MessageConverter.php:70 | 1 | return (new Email(clone $message->getHeaders( )))->text($part->getBody( ), $part->getPreparedHeaders( )->getHeaderParameter('Content-Type', 'charset') ?: 'utf-8') |
/src/Symfony/Component/Messenger/Command/AbstractFailedMessagesCommand.php:185 | 1 | return [Caster::PREFIX_VIRTUAL . 'message' => $flattenException->getMessage( ), Caster::PREFIX_VIRTUAL . 'code' => $flattenException->getCode( ), Caster::PREFIX_VIRTUAL . 'file' => $flattenException->getFile( ), Caster::PREFIX_VIRTUAL . 'line' => $flattenException->getLine( ), Caster::PREFIX_VIRTUAL . 'trace' => new TraceStub($flattenException->getTrace( )), ] |
/src/Symfony/Component/Messenger/Stamp/ErrorDetailsStamp.php:76 | 1 | return $this->flattenException->getClass( ) === $that->flattenException->getClass( ) && $this->flattenException->getCode( ) === $that->flattenException->getCode( ) && $this->flattenException->getMessage( ) === $that->flattenException->getMessage( ) |
/src/Symfony/Component/Messenger/Tests/Command/DebugCommandTest.php:49 | 1 | $command = new DebugCommand(['command_bus' => [DummyCommand::class => [[DummyCommandHandler::class, ['option1' => '1', 'option2' => '2']]], DummyCommandWithDescription::class => [[DummyCommandWithDescriptionHandler::class, [ ]]], MultipleBusesMessage::class => [[MultipleBusesMessageHandler::class, [ ]]], ], 'query_bus' => [DummyQuery::class => [[DummyQueryHandler::class, [ ]]], MultipleBusesMessage::class => [[MultipleBusesMessageHandler::class, [ ]]], ], ]) |
/src/Symfony/Component/Messenger/Tests/Transport/Serialization/Normalizer/FlattenExceptionNormalizerTest.php:65 | 1 | return ['instance from exception' => [FlattenException::createFromThrowable(new \RuntimeException('foo', 42))], 'instance with previous exception' => [FlattenException::createFromThrowable(new \RuntimeException('foo', 42, new \Exception( )))], 'instance with headers' => [FlattenException::createFromThrowable(new \RuntimeException('foo', 42), 404, ['Foo' => 'Bar'])], ] |
/src/Symfony/Component/Messenger/Tests/Transport/Serialization/SerializerTest.php:144 | 1 | $series = [[['[{"context":{"groups":["foo"]}}]', SerializerStamp::class . '[]', 'json', [Serializer::MESSENGER_SERIALIZATION_CONTEXT => true]], [new SerializerStamp(['groups' => ['foo']])], ], [['{}', DummyMessage::class, 'json', [ObjectNormalizer::GROUPS => ['foo'], Serializer::MESSENGER_SERIALIZATION_CONTEXT => true]], new DummyMessage('test'), ], ] |
/src/Symfony/Component/Messenger/Tests/Transport/Serialization/SerializerTest.php:100 | 1 | $envelope = (new Envelope($message = new DummyMessage('test')))->with(new SerializerStamp([ObjectNormalizer::GROUPS => ['foo']]))->with(new ValidationStamp(['foo', 'bar'])) |
/src/Symfony/Component/Messenger/Tests/Transport/Serialization/SerializerTest.php:44 | 1 | $envelope = (new Envelope(new DummyMessage('Hello')))->with(new SerializerStamp([ObjectNormalizer::GROUPS => ['foo']]))->with(new ValidationStamp(['foo', 'bar']))->with(new SerializedMessageStamp('{"message":"Hello"}')) |
/src/Symfony/Component/Messenger/Tests/Middleware/DispatchAfterCurrentBusMiddlewareTest.php:152 | 1 | $commandBus = new MessageBus([$middleware, new DispatchingMiddleware($eventBus, [new Envelope($eventL1a, [new DispatchAfterCurrentBusStamp( )]), new Envelope($eventL1b, [new DispatchAfterCurrentBusStamp( )]), new Envelope($eventL1c, [new DispatchAfterCurrentBusStamp( )]), ]), $handlingMiddleware, ]) |
/src/Symfony/Component/Workflow/Tests/DataCollector/WorkflowDataCollectorTest.php:42 | 1 | $guardListener = new GuardListener(['workflow.workflow2.guard.t1' => ['my_expression']], $this->createMock(ExpressionLanguage::class), $this->createMock(TokenStorageInterface::class), $this->createMock(AuthorizationCheckerInterface::class), $this->createMock(AuthenticationTrustResolverInterface::class), $this->createMock(RoleHierarchyInterface::class), $this->createMock(ValidatorInterface::class)) |
/src/Symfony/Component/Finder/Tests/Iterator/SortableIteratorTest.php:263 | 1 | return [[SortableIterator::SORT_BY_NAME, self::toAbsolute($sortByName)], [SortableIterator::SORT_BY_TYPE, self::toAbsolute($sortByType)], [SortableIterator::SORT_BY_ACCESSED_TIME, self::toAbsolute($sortByAccessedTime)], [SortableIterator::SORT_BY_CHANGED_TIME, self::toAbsolute($sortByChangedTime)], [SortableIterator::SORT_BY_MODIFIED_TIME, self::toAbsolute($sortByModifiedTime)], [SortableIterator::SORT_BY_NAME_NATURAL, self::toAbsolute($sortByNameNatural)], [fn (\SplFileInfo $a, \SplFileInfo $b) => strcmp($a->getRealPath( ), $b->getRealPath( )), self::toAbsolute($customComparison)], ] |
/src/Symfony/Component/Finder/Tests/Iterator/DateRangeFilterIteratorTest.php:90 | 1 | return [[[new DateComparator('since 20 years ago')], static::toAbsolute($since20YearsAgo)], [[new DateComparator('since 2 months ago')], static::toAbsolute($since2MonthsAgo)], [[new DateComparator('until last month')], static::toAbsolute($untilLastMonth)], ] |
/src/Symfony/Component/Finder/Tests/Iterator/DepthRangeFilterIteratorTest.php:97 | 1 | return [[0, 0, self::toAbsolute($lessThan1)], [0, 1, self::toAbsolute($lessThanOrEqualTo1)], [2, \PHP_INT_MAX, [ ]], [1, \PHP_INT_MAX, self::toAbsolute($graterThanOrEqualTo1)], [1, 1, self::toAbsolute($equalTo1)], ] |
/src/Symfony/Component/Finder/Tests/Iterator/PathFilterIteratorTest.php:67 | 1 | return [[$inner, ['/^A/'], [ ], ['abc.dat', 'ab.dat', 'a.dat']], [$inner, ['/^A\/B/'], [ ], ['abc.dat', 'ab.dat']], [$inner, ['/^A\/B\/C/'], [ ], ['abc.dat']], [$inner, ['/A\/B\/C/'], [ ], ['abc.dat', 'abc.dat.copy']], [$inner, ['A'], [ ], ['abc.dat', 'ab.dat', 'a.dat', 'abc.dat.copy', 'ab.dat.copy', 'a.dat.copy']], [$inner, ['A/B'], [ ], ['abc.dat', 'ab.dat', 'abc.dat.copy', 'ab.dat.copy']], [$inner, ['A/B/C'], [ ], ['abc.dat', 'abc.dat.copy']], [$inner, ['copy/A'], [ ], ['abc.dat.copy', 'ab.dat.copy', 'a.dat.copy']], [$inner, ['copy/A/B'], [ ], ['abc.dat.copy', 'ab.dat.copy']], [$inner, ['copy/A/B/C'], [ ], ['abc.dat.copy']], ] |
/src/Symfony/Component/Finder/Tests/Comparator/DateComparatorTest.php:54 | 1 | return [['< 2005-10-10', [strtotime('2005-10-09')], [strtotime('2005-10-15')]], ['until 2005-10-10', [strtotime('2005-10-09')], [strtotime('2005-10-15')]], ['before 2005-10-10', [strtotime('2005-10-09')], [strtotime('2005-10-15')]], ['> 2005-10-10', [strtotime('2005-10-15')], [strtotime('2005-10-09')]], ['after 2005-10-10', [strtotime('2005-10-15')], [strtotime('2005-10-09')]], ['since 2005-10-10', [strtotime('2005-10-15')], [strtotime('2005-10-09')]], ['!= 2005-10-10', [strtotime('2005-10-11')], [strtotime('2005-10-10')]], ] |
/src/Symfony/Component/Finder/Tests/FinderTest.php:1094 | 1 | $expected = [self::$tmpDir . \DIRECTORY_SEPARATOR . 'Zephire.php', self::$tmpDir . \DIRECTORY_SEPARATOR . 'test.php', __DIR__ . \DIRECTORY_SEPARATOR . 'GitignoreTest.php', __DIR__ . \DIRECTORY_SEPARATOR . 'FinderOpenBasedirTest.php', __DIR__ . \DIRECTORY_SEPARATOR . 'FinderTest.php', __DIR__ . \DIRECTORY_SEPARATOR . 'GlobTest.php', self::$tmpDir . \DIRECTORY_SEPARATOR . 'qux_0_1.php', self::$tmpDir . \DIRECTORY_SEPARATOR . 'qux_1000_1.php', self::$tmpDir . \DIRECTORY_SEPARATOR . 'qux_1002_0.php', self::$tmpDir . \DIRECTORY_SEPARATOR . 'qux_10_2.php', self::$tmpDir . \DIRECTORY_SEPARATOR . 'qux_12_0.php', self::$tmpDir . \DIRECTORY_SEPARATOR . 'qux_2_0.php', self::$tmpDir . \DIRECTORY_SEPARATOR . 'zebulon.php', ] |
/src/Symfony/Component/Finder/Tests/FinderTest.php:958 | 1 | $finder = $this->buildFinder( )->in([self::$tmpDir, self::$tmpDir . '/qux', self::$tmpDir . '/foo', ])->depth(0)->files( )->filter(static fn (\SplFileInfo $file) : bool => '' !== $file->getExtension( ))->sort(static fn (\SplFileInfo $a, \SplFileInfo $b) : int => strcmp($a->getExtension( ), $b->getExtension( )) ?: strcmp($a->getFilename( ), $b->getFilename( ))) |
/src/Symfony/Component/Messenger/Bridge/AmazonSqs/Tests/Transport/ConnectionTest.php:233 | 1 | $firstResult = ResultMockFactory::create(ReceiveMessageResult::class, ['Messages' => [new Message(['MessageId' => 1, 'Body' => 'this is a test']), new Message(['MessageId' => 2, 'Body' => 'this is a test']), new Message(['MessageId' => 3, 'Body' => 'this is a test']), ]]) |
/src/Symfony/Component/Messenger/Bridge/AmazonSqs/Tests/Transport/ConnectionTest.php:240 | 1 | $series = [[[['QueueUrl' => 'https://sqs.us-east-2.amazonaws.com/123456789012/MyQueue', 'VisibilityTimeout' => null, 'MaxNumberOfMessages' => 9, 'MessageAttributeNames' => ['All'], 'WaitTimeSeconds' => 20]], $firstResult], [[['QueueUrl' => 'https://sqs.us-east-2.amazonaws.com/123456789012/MyQueue', 'VisibilityTimeout' => null, 'MaxNumberOfMessages' => 9, 'MessageAttributeNames' => ['All'], 'WaitTimeSeconds' => 20]], $secondResult], ] |
/src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/Connection.php:136 | 1 | $clientConfiguration = ['region' => $options['region'], 'accessKeyId' => rawurldecode($params['user'] ?? '') ?: $options['access_key'] ?? self::DEFAULT_OPTIONS['access_key'], 'accessKeySecret' => rawurldecode($params['pass'] ?? '') ?: $options['secret_key'] ?? self::DEFAULT_OPTIONS['secret_key'], ] |
/src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/Connection.php:216 | 1 | $this->currentResponse = $this->client->receiveMessage(['QueueUrl' => $this->getQueueUrl( ), 'VisibilityTimeout' => $this->configuration['visibility_timeout'], 'MaxNumberOfMessages' => $this->configuration['buffer_size'], 'MessageAttributeNames' => ['All'], 'WaitTimeSeconds' => $this->configuration['wait_time'], ]) |
/src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/Transport/ConnectionTest.php:574 | 1 | yield 'SQL Server' => [class_exists(SQLServerPlatform::class) && !class_exists(SQLServer2012Platform::class) ? new SQLServerPlatform( ) : new SQLServer2012Platform( ), sprintf('SELECT m.* FROM messenger_messages m WITH (UPDLOCK, ROWLOCK%s) WHERE (m.queue_name = ?) AND (m.delivered_at is null OR m.delivered_at < ?) AND (m.available_at <= ?) ORDER BY available_at ASC OFFSET 0 ROWS FETCH NEXT 1 ROWS ONLY ', method_exists(QueryBuilder::class, 'forUpdate') ? ', READPAST' : ''), ] |
/src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/Connection.php:127 | 1 | $configuration = ['buffer_size' => (int) $options['buffer_size'], 'wait_time' => (int) $options['wait_time'], 'poll_timeout' => $options['poll_timeout'], 'visibility_timeout' => null !== $options['visibility_timeout'] ? (int) $options['visibility_timeout'] : null, 'auto_setup' => filter_var($options['auto_setup'], \FILTER_VALIDATE_BOOL), 'queue_name' => (string) $options['queue_name'], ] |
/src/Symfony/Component/Messenger/Bridge/Doctrine/Transport/Connection.php:137 | 1 | return $this->executeInsert($queryBuilder->getSQL( ), [$body, json_encode($headers), $this->configuration['queue_name'], $now, $availableAt, ], [Types::STRING, Types::STRING, Types::STRING, Types::DATETIME_IMMUTABLE, Types::DATETIME_IMMUTABLE, ]) |
/src/Symfony/Component/Messenger/Bridge/Doctrine/Transport/Connection.php:371 | 1 | return $this->createQueryBuilder( )->where('m.queue_name = ?')->andWhere('m.delivered_at is null OR m.delivered_at < ?')->andWhere('m.available_at <= ?')->setParameters([$this->configuration['queue_name'], $redeliverLimit, $now, ], [Types::STRING, Types::DATETIME_IMMUTABLE, Types::DATETIME_IMMUTABLE, ]) |
/src/Symfony/Component/Messenger/Tests/Middleware/HandleMessageMiddlewareTest.php:132 | 1 | yield 'A stamp is added per handler' => [[new HandlerDescriptor($first, ['alias' => 'first']), new HandlerDescriptor($second, ['alias' => 'second']), ], [new HandledStamp('first result', $firstClass . '::__invoke@first'), new HandledStamp(null, $secondClass . '::__invoke@second'), ], true, ] |
/src/Symfony/Component/Messenger/Tests/Middleware/HandleMessageMiddlewareTest.php:144 | 1 | yield 'It tries all handlers' => [[new HandlerDescriptor($first, ['alias' => 'first']), new HandlerDescriptor($failing, ['alias' => 'failing']), new HandlerDescriptor($second, ['alias' => 'second']), ], [new HandledStamp('first result', $firstClass . '::__invoke@first'), new HandledStamp(null, $secondClass . '::__invoke@second'), ], false, ] |
/src/Symfony/Component/Messenger/Tests/Handler/HandlersLocatorTest.php:41 | 1 | $locator = new HandlersLocator([DummyMessage::class => [$first = new HandlerDescriptor($firstHandler, ['alias' => 'one']), new HandlerDescriptor($this->createPartialMock(HandlersLocatorTestCallable::class, ['__invoke']), ['from_transport' => 'ignored', 'alias' => 'two']), $second = new HandlerDescriptor($secondHandler, ['from_transport' => 'transportName', 'alias' => 'three']), ], ]) |
/src/Symfony/Component/Messenger/Tests/Handler/HandlersLocatorTest.php:65 | 1 | $locator = new HandlersLocator([str_replace('DummyMessage', '*', DummyMessage::class) => [$first = new HandlerDescriptor($firstHandler, ['alias' => 'one']), ], str_replace('Fixtures\\DummyMessage', '*', DummyMessage::class) => [$second = new HandlerDescriptor($secondHandler, ['alias' => 'two']), ], ]) |
/src/Symfony/Component/Messenger/Tests/WorkerTest.php:255 | 1 | $series = [$this->isInstanceOf(WorkerStartedEvent::class), $this->isInstanceOf(WorkerMessageReceivedEvent::class), $this->isInstanceOf(WorkerMessageFailedEvent::class), $this->isInstanceOf(WorkerRunningEvent::class), $this->isInstanceOf(WorkerStoppedEvent::class), ] |
/src/Symfony/Component/Messenger/Tests/WorkerTest.php:304 | 1 | $receiver = new DummyReceiver([[new Envelope($apiMessage), new Envelope($apiMessage)], [ ], [ ], [new Envelope($apiMessage)], [new Envelope($apiMessage)], [ ], [new Envelope($apiMessage)], ]) |
/src/Symfony/Component/Messenger/Tests/FailureIntegrationTest.php:93 | 1 | $handlerLocator = new HandlersLocator([DummyMessage::class => [new HandlerDescriptor($transport1HandlerThatFails, ['from_transport' => 'transport1', 'alias' => 'handler_that_fails', ]), new HandlerDescriptor($allTransportHandlerThatWorks, ['alias' => 'handler_that_works1', ]), new HandlerDescriptor($transport2HandlerThatWorks, ['from_transport' => 'transport2', 'alias' => 'handler_that_works2', ]), ], ]) |
/src/Symfony/Component/Messenger/Tests/WorkerTest.php:201 | 1 | $series = [$this->isInstanceOf(WorkerStartedEvent::class), $this->isInstanceOf(WorkerMessageReceivedEvent::class), $this->isInstanceOf(WorkerMessageHandledEvent::class), $this->isInstanceOf(WorkerRunningEvent::class), $this->isInstanceOf(WorkerStoppedEvent::class), ] |
/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/ConnectionTest.php:419 | 17 | $factory = new TestAmqpFactory($amqpConnection = $this->createMock(\AMQPConnection::class), $amqpChannel = $this->createMock(\AMQPChannel::class), $amqpQueue = $this->createMock(\AMQPQueue::class), $amqpExchange = $this->createMock(\AMQPExchange::class)) |
/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/ConnectionTest.php:266 | 17 | $factory = new TestAmqpFactory($amqpConnection = $this->createMock(\AMQPConnection::class), $amqpChannel = $this->createMock(\AMQPChannel::class), $amqpQueue = $this->createMock(\AMQPQueue::class), $amqpExchange = $this->createMock(\AMQPExchange::class)) |
/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/ConnectionTest.php:559 | 17 | $factory = new TestAmqpFactory($amqpConnection = $this->createMock(\AMQPConnection::class), $amqpChannel = $this->createMock(\AMQPChannel::class), $amqpQueue = $this->createMock(\AMQPQueue::class), $amqpExchange = $this->createMock(\AMQPExchange::class)) |
/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/ConnectionTest.php:442 | 17 | $factory = new TestAmqpFactory($amqpConnection = $this->createMock(\AMQPConnection::class), $amqpChannel = $this->createMock(\AMQPChannel::class), $amqpQueue = $this->createMock(\AMQPQueue::class), $amqpExchange = $this->createMock(\AMQPExchange::class)) |
/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/ConnectionTest.php:627 | 17 | $factory = new TestAmqpFactory($amqpConnection = $this->createMock(\AMQPConnection::class), $amqpChannel = $this->createMock(\AMQPChannel::class), $amqpQueue = $this->createMock(\AMQPQueue::class), $amqpExchange = $this->createMock(\AMQPExchange::class)) |
/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/ConnectionTest.php:579 | 17 | $factory = new TestAmqpFactory($amqpConnection = $this->createMock(\AMQPConnection::class), $amqpChannel = $this->createMock(\AMQPChannel::class), $amqpQueue = $this->createMock(\AMQPQueue::class), $amqpExchange = $this->createMock(\AMQPExchange::class)) |
/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/ConnectionTest.php:695 | 17 | $factory = new TestAmqpFactory($amqpConnection = $this->createMock(\AMQPConnection::class), $amqpChannel = $this->createMock(\AMQPChannel::class), $amqpQueue = $this->createMock(\AMQPQueue::class), $amqpExchange = $this->createMock(\AMQPExchange::class)) |
/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/ConnectionTest.php:642 | 17 | $factory = new TestAmqpFactory($amqpConnection = $this->createMock(\AMQPConnection::class), $amqpChannel = $this->createMock(\AMQPChannel::class), $amqpQueue = $this->createMock(\AMQPQueue::class), $amqpExchange = $this->createMock(\AMQPExchange::class)) |
/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/ConnectionTest.php:730 | 17 | $factory = new TestAmqpFactory($amqpConnection = $this->createMock(\AMQPConnection::class), $amqpChannel = $this->createMock(\AMQPChannel::class), $amqpQueue = $this->createMock(\AMQPQueue::class), $amqpExchange = $this->createMock(\AMQPExchange::class)) |
/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/ConnectionTest.php:715 | 17 | $factory = new TestAmqpFactory($amqpConnection = $this->createMock(\AMQPConnection::class), $amqpChannel = $this->createMock(\AMQPChannel::class), $amqpQueue = $this->createMock(\AMQPQueue::class), $amqpExchange = $this->createMock(\AMQPExchange::class)) |
/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/ConnectionTest.php:781 | 17 | $factory = new TestAmqpFactory($amqpConnection = $this->createMock(\AMQPConnection::class), $amqpChannel = $this->createMock(\AMQPChannel::class), $amqpQueue = $this->createMock(\AMQPQueue::class), $amqpExchange = $this->createMock(\AMQPExchange::class)) |
/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/ConnectionTest.php:745 | 17 | $factory = new TestAmqpFactory($amqpConnection = $this->createMock(\AMQPConnection::class), $amqpChannel = $this->createMock(\AMQPChannel::class), $amqpQueue = $this->createMock(\AMQPQueue::class), $amqpExchange = $this->createMock(\AMQPExchange::class)) |
/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/ConnectionTest.php:821 | 17 | $factory = new TestAmqpFactory($amqpConnection = $this->createMock(\AMQPConnection::class), $amqpChannel = $this->createMock(\AMQPChannel::class), $amqpQueue = $this->createMock(\AMQPQueue::class), $amqpExchange = $this->createMock(\AMQPExchange::class)) |
/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/ConnectionTest.php:801 | 17 | $factory = new TestAmqpFactory($amqpConnection = $this->createMock(\AMQPConnection::class), $amqpChannel = $this->createMock(\AMQPChannel::class), $amqpQueue = $this->createMock(\AMQPQueue::class), $amqpExchange = $this->createMock(\AMQPExchange::class)) |
/src/Symfony/Component/Messenger/Bridge/Doctrine/Transport/Connection.php:127 | 1 | $queryBuilder = $this->driverConnection->createQueryBuilder( )->insert($this->configuration['table_name'])->values(['body' => '?', 'headers' => '?', 'queue_name' => '?', 'created_at' => '?', 'available_at' => '?', ]) |
/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/AmqpExtIntegrationTest.php:140 | 1 | $connection = Connection::fromDsn(getenv('MESSENGER_AMQP_DSN'), ['exchange' => ['name' => 'messages_topic', 'type' => 'topic', 'default_publish_routing_key' => 'topic_routing_key', ], 'queues' => ['A' => ['binding_keys' => ['topic_routing_key']], 'B' => ['binding_keys' => ['topic_routing_key']], ], ]) |
/src/Symfony/Component/ErrorHandler/Tests/ErrorEnhancer/ClassNotFoundErrorEnhancerTest.php:143 | 1 | $error = (new ClassNotFoundErrorEnhancer( ))->enhance(new FatalError('foo', 0, ['type' => \E_ERROR, 'message' => "Class 'FooBarCcc' not found", 'file' => $expectedFile = realpath(__FILE__), 'line' => $expectedLine = __LINE__, ])) |
/src/Symfony/Component/ErrorHandler/ErrorRenderer/HtmlErrorRenderer.php:138 | 1 | return $this->include($debugTemplate, ['exception' => $exception, 'exceptionMessage' => $exceptionMessage, 'statusText' => $statusText, 'statusCode' => $statusCode, 'logger' => null !== $this->logger && class_exists(DebugLoggerConfigurator::class) ? DebugLoggerConfigurator::getDebugLogger($this->logger) : null, 'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)( ), ]) |
/src/Symfony/Component/ErrorHandler/Exception/FlattenException.php:326 | 1 | $this->trace[] = ['namespace' => $namespace, 'short_class' => $class, 'class' => $entry['class'] ?? '', 'type' => $entry['type'] ?? '', 'function' => $entry['function'] ?? null, 'file' => $entry['file'] ?? null, 'line' => $entry['line'] ?? null, 'args' => isset($entry['args']) ? $this->flattenArgs($entry['args']) : [ ], ] |
/src/Symfony/Component/Messenger/TraceableMessageBus.php:30 | 1 | $context = ['stamps' => array_merge([ ], ...array_values($envelope->all( ))), 'message' => $envelope->getMessage( ), 'caller' => $this->getCaller( ), 'callTime' => microtime(true), ] |
/src/Symfony/Component/Messenger/DataCollector/MessengerDataCollector.php:86 | 1 | $debugRepresentation = ['bus' => $busName, 'stamps' => $tracedMessage['stamps'] ?? null, 'stamps_after_dispatch' => $tracedMessage['stamps_after_dispatch'] ?? null, 'message' => ['type' => new ClassStub($message::class), 'value' => $message, ], 'caller' => $tracedMessage['caller'], ] |
/src/Symfony/Component/Messenger/Middleware/RouterContextMiddleware.php:37 | 1 | $envelope = $envelope->with(new RouterContextStamp($context->getBaseUrl( ), $context->getMethod( ), $context->getHost( ), $context->getScheme( ), $context->getHttpPort( ), $context->getHttpsPort( ), $context->getPathInfo( ), $context->getQueryString( ))) |
/src/Symfony/Component/Messenger/Transport/Serialization/Normalizer/FlattenExceptionNormalizer.php:31 | 1 | $normalized = ['message' => $object->getMessage( ), 'code' => $object->getCode( ), 'headers' => $object->getHeaders( ), 'class' => $object->getClass( ), 'file' => $object->getFile( ), 'line' => $object->getLine( ), 'previous' => null === $object->getPrevious( ) ? null : $this->normalize($object->getPrevious( ), $format, $context), 'status' => $object->getStatusCode( ), 'status_text' => $object->getStatusText( ), 'trace' => $object->getTrace( ), 'trace_as_string' => $object->getTraceAsString( ), ] |
/src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php:210 | 1 | $redis ??= new \RedisCluster(null, $hosts, $params['timeout'], $params['read_timeout'], (bool) ($params['persistent'] ?? false), $auth, ...\defined('Redis::SCAN_PREFIX') ? [$params['ssl'] ?? null] : [ ]) |
/src/Symfony/Component/Messenger/Bridge/Redis/Tests/Transport/RedisReceiverTest.php:64 | 1 | yield [['id' => 1, 'data' => ['message' => json_encode(['body' => '{"message": "Hi"}', 'headers' => ['type' => DummyMessage::class, ], ]), ], ], new DummyMessage('Hi'), new Serializer(new SerializerComponent\Serializer([new ObjectNormalizer( )], ['json' => new JsonEncoder( )])), ] |
/src/Symfony/Component/Messenger/Bridge/Redis/Tests/Transport/RedisReceiverTest.php:82 | 1 | yield [['id' => 2, 'data' => ['message' => json_encode(['foo' => 'fooValue', 'bar' => ['baz' => 'bazValue', ], ]), ], ], (new ExternalMessage('fooValue'))->setBar(['baz' => 'bazValue']), new ExternalMessageSerializer( ), ] |
/src/Symfony/Component/Messenger/Bridge/Amqp/Transport/Connection.php:181 | 1 | $amqpOptions = array_replace_recursive(['host' => $params['host'] ?? 'localhost', 'port' => $params['port'] ?? $port, 'vhost' => isset($pathParts[0]) ? urldecode($pathParts[0]) : '/', 'exchange' => ['name' => $exchangeName, ], ], $options, $parsedQuery) |
/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/ConnectionTest.php:151 | 17 | $factory = new TestAmqpFactory($amqpConnection = $this->createMock(\AMQPConnection::class), $amqpChannel = $this->createMock(\AMQPChannel::class), $amqpQueue = $this->createMock(\AMQPQueue::class), $amqpExchange = $this->createMock(\AMQPExchange::class)) |
/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/ConnectionTest.php:178 | 1 | $connection = Connection::fromDsn($dsn, ['queues' => ['messages' => ['arguments' => ['x-max-length' => '200', 'x-max-length-bytes' => '300', 'x-max-priority' => '4', ], ], ], 'exchange' => ['arguments' => ['alternate-exchange' => 'alternate', ], ], ], $factory) |
/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/ConnectionTest.php:201 | 1 | return [[$baseDsn . '?queues[messages][arguments][x-delay]=not-a-number', [ ]], [$baseDsn . '?queues[messages][arguments][x-expires]=not-a-number', [ ]], [$baseDsn . '?queues[messages][arguments][x-max-length]=not-a-number', [ ]], [$baseDsn . '?queues[messages][arguments][x-max-length-bytes]=not-a-number', [ ]], [$baseDsn . '?queues[messages][arguments][x-max-priority]=not-a-number', [ ]], [$baseDsn . '?queues[messages][arguments][x-message-ttl]=not-a-number', [ ]], [$baseDsn, ['queues' => ['messages' => ['arguments' => ['x-delay' => 'not-a-number']]]]], [$baseDsn, ['queues' => ['messages' => ['arguments' => ['x-expires' => 'not-a-number']]]]], [$baseDsn, ['queues' => ['messages' => ['arguments' => ['x-max-length' => 'not-a-number']]]]], [$baseDsn, ['queues' => ['messages' => ['arguments' => ['x-max-length-bytes' => 'not-a-number']]]]], [$baseDsn, ['queues' => ['messages' => ['arguments' => ['x-max-priority' => 'not-a-number']]]]], [$baseDsn, ['queues' => ['messages' => ['arguments' => ['x-message-ttl' => 'not-a-number']]]]], ] |
/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/ConnectionTest.php:232 | 17 | $factory = new TestAmqpFactory($amqpConnection = $this->createMock(\AMQPConnection::class), $amqpChannel = $this->createMock(\AMQPChannel::class), $amqpQueue = $this->createMock(\AMQPQueue::class), $amqpExchange = $this->createMock(\AMQPExchange::class)) |
/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/ConnectionTest.php:249 | 17 | $factory = new TestAmqpFactory($amqpConnection = $this->createMock(\AMQPConnection::class), $amqpChannel = $this->createMock(\AMQPChannel::class), $amqpQueue = $this->createMock(\AMQPQueue::class), $amqpExchange = $this->createMock(\AMQPExchange::class)) |
/src/Symfony/Component/BrowserKit/Tests/HttpBrowserTest.php:62 | 1 | yield 'POST JSON' => [['POST', 'http://example.com/', [ ], [ ], ['CONTENT_TYPE' => 'application/json'], '["content"]'], ['POST', 'http://example.com/', ['headers' => $defaultHeaders + ['content-type' => 'application/json'], 'body' => '["content"]', 'max_redirects' => 0]], ] |
/src/Symfony/Component/BrowserKit/Tests/HttpBrowserTest.php:54 | 1 | yield 'form' => [['POST', 'http://example.com/', ['key' => 'value', 'key2' => 'value']], ['POST', 'http://example.com/', ['headers' => $defaultHeaders + ['Content-Type' => 'application/x-www-form-urlencoded'], 'body' => 'key=value&key2=value', 'max_redirects' => 0]], ] |
/src/Symfony/Component/BrowserKit/AbstractBrowser.php:651 | 1 | return $this->request($request->getMethod( ), $request->getUri( ), $request->getParameters( ), $request->getFiles( ), $request->getServer( ), $request->getContent( ), $changeHistory) |
/src/Symfony/Component/BrowserKit/Cookie.php:137 | 1 | $values = ['name' => trim($name), 'value' => trim($value), 'expires' => null, 'path' => '/', 'domain' => '', 'secure' => false, 'httponly' => false, 'passedRawValue' => true, 'samesite' => null, ] |
/src/Symfony/Component/BrowserKit/Tests/HttpBrowserTest.php:78 | 1 | yield 'GET JSON' => [['GET', 'http://example.com/jsonrpc', [ ], [ ], ['CONTENT_TYPE' => 'application/json'], '["content"]'], ['GET', 'http://example.com/jsonrpc', ['headers' => $defaultHeaders + ['content-type' => 'application/json'], 'body' => '["content"]', 'max_redirects' => 0]], ] |
/src/Symfony/Component/BrowserKit/Tests/HttpBrowserTest.php:74 | 1 | yield 'modify notation of custom header' => [['PUT', 'http://example.com/', [ ], [ ], ['Content-Type' => 'application/json'], '["content"]'], ['PUT', 'http://example.com/', ['headers' => $defaultHeaders + ['content-type' => 'application/json'], 'body' => '["content"]', 'max_redirects' => 0]], ] |
/src/Symfony/Component/BrowserKit/Tests/HttpBrowserTest.php:70 | 1 | yield 'modify notation of custom header with HTTP_ prefix' => [['PUT', 'http://example.com/', [ ], [ ], ['HTTP_Content-Type' => 'application/json'], '["content"]'], ['PUT', 'http://example.com/', ['headers' => $defaultHeaders + ['content-type' => 'application/json'], 'body' => '["content"]', 'max_redirects' => 0]], ] |
/src/Symfony/Component/BrowserKit/Tests/HttpBrowserTest.php:66 | 1 | yield 'custom header with HTTP_ prefix' => [['PUT', 'http://example.com/', [ ], [ ], ['HTTP_CONTENT_TYPE' => 'application/json'], '["content"]'], ['PUT', 'http://example.com/', ['headers' => $defaultHeaders + ['content-type' => 'application/json'], 'body' => '["content"]', 'max_redirects' => 0]], ] |
/src/Symfony/Component/ErrorHandler/ErrorEnhancer/ClassNotFoundErrorEnhancer.php:128 | 1 | $candidates = [$namespacedClass = str_replace([$path . \DIRECTORY_SEPARATOR, '.php', '/'], ['', '', '\\'], $file), $prefix . $namespacedClass, $prefix . '\\' . $namespacedClass, str_replace('\\', '_', $namespacedClass), str_replace('\\', '_', $prefix . $namespacedClass), str_replace('\\', '_', $prefix . '\\' . $namespacedClass), ] |
/src/Symfony/Component/ErrorHandler/DebugClassLoader.php:640 | 1 | $finals = isset(self::$final[$class]) || $refl->isFinal( ) ? [ ] : ['finalConstants' => $refl->getReflectionConstants(\ReflectionClassConstant::IS_PUBLIC | \ReflectionClassConstant::IS_PROTECTED), 'finalProperties' => $refl->getProperties(\ReflectionProperty::IS_PUBLIC | \ReflectionProperty::IS_PROTECTED), ] |
/src/Symfony/Component/ErrorHandler/DebugClassLoader.php:560 | 1 | $canAddReturnType = 2 === (int) $forcePatchTypes || false !== stripos($method->getFileName( ), \DIRECTORY_SEPARATOR . 'Tests' . \DIRECTORY_SEPARATOR) || $refl->isFinal( ) || $method->isFinal( ) || $method->isPrivate( ) || ('.' === (self::$internal[$class] ?? null) && !$refl->isAbstract( )) || '.' === (self::$final[$class] ?? null) || '' === ($doc['final'][0] ?? null) || '' === ($doc['internal'][0] ?? null) |
/src/Symfony/Component/BrowserKit/Tests/HttpBrowserTest.php:82 | 1 | yield 'HEAD JSON' => [['HEAD', 'http://example.com/jsonrpc', [ ], [ ], ['CONTENT_TYPE' => 'application/json'], '["content"]'], ['HEAD', 'http://example.com/jsonrpc', ['headers' => $defaultHeaders + ['content-type' => 'application/json'], 'body' => '["content"]', 'max_redirects' => 0]], ] |
/src/Symfony/Component/ErrorHandler/Tests/ErrorEnhancer/ClassNotFoundErrorEnhancerTest.php:83 | 1 | return [['Class "WhizBangFactory" not found', "Attempted to load class \"WhizBangFactory\" from the global namespace.\nDid you forget a \"use\" statement?", ], ['Class \'WhizBangFactory\' not found', "Attempted to load class \"WhizBangFactory\" from the global namespace.\nDid you forget a \"use\" statement?", ], ['Class "Foo\\Bar\\WhizBangFactory" not found', "Attempted to load class \"WhizBangFactory\" from namespace \"Foo\\Bar\".\nDid you forget a \"use\" statement for another namespace?", ], ['Class \'Foo\\Bar\\WhizBangFactory\' not found', "Attempted to load class \"WhizBangFactory\" from namespace \"Foo\\Bar\".\nDid you forget a \"use\" statement for another namespace?", ], ['Interface "Foo\\Bar\\WhizBangInterface" not found', "Attempted to load interface \"WhizBangInterface\" from namespace \"Foo\\Bar\".\nDid you forget a \"use\" statement for another namespace?", ], ['Trait "Foo\\Bar\\WhizBangTrait" not found', "Attempted to load trait \"WhizBangTrait\" from namespace \"Foo\\Bar\".\nDid you forget a \"use\" statement for another namespace?", ], ['Class \'UndefinedFunctionError\' not found', "Attempted to load class \"UndefinedFunctionError\" from the global namespace.\nDid you forget a \"use\" statement for \"Symfony\Component\ErrorHandler\Error\UndefinedFunctionError\"?", [$debugClassLoader, 'loadClass'], ], ['Class \'PEARClass\' not found', "Attempted to load class \"PEARClass\" from the global namespace.\nDid you forget a \"use\" statement for \"Symfony_Component_ErrorHandler_Tests_Fixtures_PEARClass\"?", [$debugClassLoader, 'loadClass'], ], ['Class \'Foo\\Bar\\UndefinedFunctionError\' not found', "Attempted to load class \"UndefinedFunctionError\" from namespace \"Foo\Bar\".\nDid you forget a \"use\" statement for \"Symfony\Component\ErrorHandler\Error\UndefinedFunctionError\"?", [$debugClassLoader, 'loadClass'], ], ['Class \'Foo\\Bar\\UndefinedFunctionError\' not found', "Attempted to load class \"UndefinedFunctionError\" from namespace \"Foo\Bar\".\nDid you forget a \"use\" statement for \"Symfony\Component\ErrorHandler\Error\UndefinedFunctionError\"?", [$autoloader, 'loadClass'], ], ['Class \'Foo\\Bar\\UndefinedFunctionError\' not found', "Attempted to load class \"UndefinedFunctionError\" from namespace \"Foo\Bar\".\nDid you forget a \"use\" statement for \"Symfony\Component\ErrorHandler\Error\UndefinedFunctionError\"?", [$debugClassLoader, 'loadClass'], ], ['Class \'Foo\\Bar\\UndefinedFunctionError\' not found', "Attempted to load class \"UndefinedFunctionError\" from namespace \"Foo\\Bar\".\nDid you forget a \"use\" statement for another namespace?", function ($className) { /**/ } , ], ] |
/src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php:438 | 1 | $loggers = [\E_DEPRECATED => [$bootLogger, LogLevel::INFO], \E_USER_DEPRECATED => [$bootLogger, LogLevel::INFO], \E_NOTICE => [$bootLogger, LogLevel::WARNING], \E_USER_NOTICE => [$bootLogger, LogLevel::WARNING], \E_STRICT => [$bootLogger, LogLevel::WARNING], \E_WARNING => [$bootLogger, LogLevel::WARNING], \E_USER_WARNING => [$bootLogger, LogLevel::WARNING], \E_COMPILE_WARNING => [$bootLogger, LogLevel::WARNING], \E_CORE_WARNING => [$bootLogger, LogLevel::WARNING], \E_USER_ERROR => [$bootLogger, LogLevel::CRITICAL], \E_RECOVERABLE_ERROR => [$bootLogger, LogLevel::CRITICAL], \E_COMPILE_ERROR => [$bootLogger, LogLevel::CRITICAL], \E_PARSE => [$bootLogger, LogLevel::CRITICAL], \E_ERROR => [$bootLogger, LogLevel::CRITICAL], \E_CORE_ERROR => [$bootLogger, LogLevel::CRITICAL], ] |
/src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php:417 | 1 | return [['Uncaught Exception: foo', new \Exception('foo')], ['Uncaught Exception: foo', new class ('foo') extends \RuntimeException { /**/ } ], ['Uncaught Exception: foo stdClass@anonymous bar', new \RuntimeException('foo ' . (new class ( ) extends \stdClass { /**/ } )::class . ' bar')], ['Uncaught Error: bar', new \Error('bar')], ['Uncaught ccc', new \ErrorException('ccc')], ['Uncaught Error: Class "App\Controller\ClassDoesNotExist" not found', new \Error('Class "App\Controller\ClassDoesNotExist" not found'), "Attempted to load class \"ClassDoesNotExist\" from namespace \"App\Controller\".\nDid you forget a \"use\" statement for another namespace?", ], ] |
/src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php:201 | 1 | $loggers = [\E_DEPRECATED => [null, LogLevel::INFO], \E_USER_DEPRECATED => [null, LogLevel::INFO], \E_NOTICE => [$logger, LogLevel::WARNING], \E_USER_NOTICE => [$logger, LogLevel::CRITICAL], \E_STRICT => [null, LogLevel::WARNING], \E_WARNING => [null, LogLevel::WARNING], \E_USER_WARNING => [null, LogLevel::WARNING], \E_COMPILE_WARNING => [null, LogLevel::WARNING], \E_CORE_WARNING => [null, LogLevel::WARNING], \E_USER_ERROR => [null, LogLevel::CRITICAL], \E_RECOVERABLE_ERROR => [null, LogLevel::CRITICAL], \E_COMPILE_ERROR => [null, LogLevel::CRITICAL], \E_PARSE => [null, LogLevel::CRITICAL], \E_ERROR => [null, LogLevel::CRITICAL], \E_CORE_ERROR => [null, LogLevel::CRITICAL], ] |
/src/Symfony/Component/VarExporter/Tests/Fixtures/var-on-sleep.php:3 | 1 | return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate($o = [clone (\Symfony\Component\VarExporter\Internal\Registry::$prototypes['Symfony\\Component\\VarExporter\\Tests\\GoodNight'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('Symfony\\Component\\VarExporter\\Tests\\GoodNight')), ], null, ['stdClass' => ['good' => ['night', ], ], 'Symfony\\Component\\VarExporter\\Tests\\GoodNight' => ['foo' => ['afternoon', ], 'bar' => ['morning', ], ], ], $o[0], [ ]) |
/src/Symfony/Component/VarExporter/Tests/Fixtures/error.php:3 | 1 | return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate($o = [(\Symfony\Component\VarExporter\Internal\Registry::$factories['Error'] ?? \Symfony\Component\VarExporter\Internal\Registry::f('Error'))( ), ], null, ['TypeError' => ['file' => [\dirname(__DIR__) . \DIRECTORY_SEPARATOR . 'VarExporterTest.php', ], 'line' => [234, ], ], 'Error' => ['trace' => [['file' => \dirname(__DIR__) . \DIRECTORY_SEPARATOR . 'VarExporterTest.php', 'line' => 123, ], ], ], ], $o[0], [1 => 0, ]) |
/src/Symfony/Component/VarExporter/Tests/Fixtures/final-array-iterator.php:3 | 1 | return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate($o = [clone (\Symfony\Component\VarExporter\Internal\Registry::$prototypes['Symfony\\Component\\VarExporter\\Tests\\FinalArrayIterator'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('Symfony\\Component\\VarExporter\\Tests\\FinalArrayIterator')), ], null, [ ], $o[0], [[0, [ ], [ ], null, ], ]) |
/src/Symfony/Component/VarExporter/Tests/Fixtures/clone.php:3 | 1 | return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate($o = [(($f = &\Symfony\Component\VarExporter\Internal\Registry::$factories)['Symfony\\Component\\VarExporter\\Tests\\MyCloneable'] ?? \Symfony\Component\VarExporter\Internal\Registry::f('Symfony\\Component\\VarExporter\\Tests\\MyCloneable'))( ), ($f['Symfony\\Component\\VarExporter\\Tests\\MyNotCloneable'] ?? \Symfony\Component\VarExporter\Internal\Registry::f('Symfony\\Component\\VarExporter\\Tests\\MyNotCloneable'))( ), ], null, [ ], [$o[0], $o[1], ], [ ]) |
/src/Symfony/Component/VarExporter/Tests/Fixtures/__serialize-but-no-__unserialize.php:3 | 1 | return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate($o = [clone (\Symfony\Component\VarExporter\Internal\Registry::$prototypes['Symfony\\Component\\VarExporter\\Tests\\__SerializeButNo__Unserialize'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('Symfony\\Component\\VarExporter\\Tests\\__SerializeButNo__Unserialize')), ], null, ['stdClass' => ['foo' => ['ccc', ], ], ], $o[0], [ ]) |
/src/Symfony/Component/VarExporter/Tests/Fixtures/__unserialize-but-no-__serialize.php:3 | 1 | return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate($o = [clone (\Symfony\Component\VarExporter\Internal\Registry::$prototypes['Symfony\\Component\\VarExporter\\Tests\\__UnserializeButNo__Serialize'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('Symfony\\Component\\VarExporter\\Tests\\__UnserializeButNo__Serialize')), ], null, [ ], $o[0], [['foo' => 'ccc', ], ]) |
/src/Symfony/Component/VarExporter/Tests/Fixtures/array-iterator.php:3 | 1 | return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate($o = [clone (\Symfony\Component\VarExporter\Internal\Registry::$prototypes['ArrayIterator'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('ArrayIterator')), ], null, [ ], $o[0], [[1, [123, ], [ ], null, ], ]) |
/src/Symfony/Component/VarExporter/Tests/Fixtures/private.php:3 | 1 | return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate($o = [clone (($p = &\Symfony\Component\VarExporter\Internal\Registry::$prototypes)['Symfony\\Component\\VarExporter\\Tests\\MyPrivateValue'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('Symfony\\Component\\VarExporter\\Tests\\MyPrivateValue')), clone ($p['Symfony\\Component\\VarExporter\\Tests\\MyPrivateChildValue'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('Symfony\\Component\\VarExporter\\Tests\\MyPrivateChildValue')), ], null, ['Symfony\\Component\\VarExporter\\Tests\\MyPrivateValue' => ['prot' => [123, 123, ], 'priv' => [234, 234, ], ], ], [$o[0], $o[1], ], [ ]) |
/src/Symfony/Component/VarExporter/Tests/Fixtures/readonly.php:3 | 1 | return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate($o = [clone (\Symfony\Component\VarExporter\Internal\Registry::$prototypes['Symfony\\Component\\VarExporter\\Tests\\Fixtures\\FooReadonly'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('Symfony\\Component\\VarExporter\\Tests\\Fixtures\\FooReadonly')), ], null, ['Symfony\\Component\\VarExporter\\Tests\\Fixtures\\FooReadonly' => ['name' => ['k', ], 'value' => ['v', ], ], ], $o[0], [ ]) |
/src/Symfony/Component/VarExporter/Tests/Fixtures/wakeup.php:3 | 1 | return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate($o = [clone (($p = &\Symfony\Component\VarExporter\Internal\Registry::$prototypes)['Symfony\\Component\\VarExporter\\Tests\\MyWakeup'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('Symfony\\Component\\VarExporter\\Tests\\MyWakeup')), clone $p['Symfony\\Component\\VarExporter\\Tests\\MyWakeup'], ], null, ['stdClass' => ['sub' => [$o[1], 123, ], 'baz' => [1 => 123, ], ], ], $o[0], [1 => 1, 0, ]) |
/src/Symfony/Component/VarExporter/Tests/Fixtures/private-constructor.php:3 | 1 | return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate($o = [clone (\Symfony\Component\VarExporter\Internal\Registry::$prototypes['Symfony\\Component\\VarExporter\\Tests\\PrivateConstructor'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('Symfony\\Component\\VarExporter\\Tests\\PrivateConstructor')), ], null, ['stdClass' => ['prop' => ['bar', ], ], ], $o[0], [ ]) |
/src/Symfony/Component/VarExporter/Tests/Fixtures/abstract-parent.php:3 | 1 | return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate($o = [clone (\Symfony\Component\VarExporter\Internal\Registry::$prototypes['Symfony\\Component\\VarExporter\\Tests\\ConcreteClass'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('Symfony\\Component\\VarExporter\\Tests\\ConcreteClass')), ], null, ['Symfony\\Component\\VarExporter\\Tests\\AbstractClass' => ['foo' => [123, ], 'bar' => [234, ], ], ], $o[0], [ ]) |
/src/Symfony/Component/VarExporter/Internal/Exporter.php:229 | 1 | $m[1] = sprintf('\'."%s".\'', str_replace(["\0", "\r", "\n", "\u{202A}", "\u{202B}", "\u{202D}", "\u{202E}", "\u{2066}", "\u{2067}", "\u{2068}", "\u{202C}", "\u{2069}", '\n\\'], ['\0', '\r', '\n', '\u{202A}', '\u{202B}', '\u{202D}', '\u{202E}', '\u{2066}', '\u{2067}', '\u{2068}', '\u{202C}', '\u{2069}', '\n"' . "\n" . $subIndent . '."\\'], $m[1])) |
/src/Symfony/Component/VarExporter/Internal/Exporter.php:369 | 1 | $code = [self::export($value->registry, $subIndent), self::export($value->values, $subIndent), '' !== $code ? "[\n" . $code . $subIndent . ']' : '[]', self::export($value->value, $subIndent), self::export($value->wakeups, $subIndent), ] |
/src/Symfony/Component/VarExporter/Tests/Fixtures/final-error.php:3 | 1 | return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate($o = [(\Symfony\Component\VarExporter\Internal\Registry::$factories['Symfony\\Component\\VarExporter\\Tests\\FinalError'] ?? \Symfony\Component\VarExporter\Internal\Registry::f('Symfony\\Component\\VarExporter\\Tests\\FinalError'))( ), ], null, ['TypeError' => ['file' => [\dirname(__DIR__) . \DIRECTORY_SEPARATOR . 'VarExporterTest.php', ], 'line' => [123, ], ], 'Error' => ['trace' => [[ ], ], ], ], $o[0], [1 => 0, ]) |
/src/Symfony/Component/VarExporter/Tests/Fixtures/hard-references.php:3 | 1 | return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate($o = [clone (\Symfony\Component\VarExporter\Internal\Registry::$prototypes['stdClass'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('stdClass')), ], [$r = [ ], $r[1] = $o[0], ], [ ], [&$r[1], &$r[1], $o[0], ], [ ]) |
/src/Symfony/Component/Translation/Tests/PseudoLocalizationTranslatorTest.php:31 | 1 | return [['[ƒöö⭐ ≤þ≥ƁÅŔ≤⁄þ≥]', 'foo⭐ <p>BAR</p>'], ['before <div data-label="fcy"><a href="#" title="bar" data-content="ccc">foo</a></div> after', 'before <div data-label="fcy"><a href="#" title="bar" data-content="ccc">foo</a></div> after', self::getIsolatedOptions(['parse_html' => true])], ['ƀéƒöŕé <div data-label="fcyéé"><a href="#" title="bar" data-content="ccc">ƒöö éé</a></div> åƒţéŕ', 'before <div data-label="fcyéé"><a href="#" title="bar" data-content="ccc">foo éé</a></div> after', self::getIsolatedOptions(['parse_html' => true, 'accents' => true])], ['ƀéƒöŕé <div data-label="ƒçý"><a href="#" title="ƀåŕ" data-content="ccc">ƒöö</a></div> åƒţéŕ', 'before <div data-label="fcy"><a href="#" title="bar" data-content="ccc">foo</a></div> after', self::getIsolatedOptions(['parse_html' => true, 'localizable_html_attributes' => ['data-label', 'title'], 'accents' => true])], [' ¡″♯€‰⅋´{}⁎⁺،‐·⁄⓪①②③④⑤⑥⑦⑧⑨∶⁏≤≂≥¿՞ÅƁÇÐÉƑĜĤÎĴĶĻṀÑÖÞǪŔŠŢÛṼŴẊÝŽ⁅∖⁆˄‿‵åƀçðéƒĝĥîĵķļɱñöþǫŕšţûṽŵẋýž(¦)˞', ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~', self::getIsolatedOptions(['accents' => true])], ['foo <p>bar</p> ~~~~~~~~~~ ~~', 'foo <p>bar</p>', self::getIsolatedOptions(['expansion_factor' => 2.0])], ['foo <p>bar</p> ~~~ ~~', 'foo <p>bar</p>', self::getIsolatedOptions(['parse_html' => true, 'expansion_factor' => 2.0])], ['foobar ~~', 'foobar', self::getIsolatedOptions(['expansion_factor' => 1.35])], ['[foobar]', 'foobar', self::getIsolatedOptions(['brackets' => true])], ['[foobar ~~~]', 'foobar', self::getIsolatedOptions(['expansion_factor' => 2.0, 'brackets' => true])], ['<p data-foo=""ççç<å">ƀåŕ</p>', '<p data-foo=""ccc<a">bar</p>', self::getIsolatedOptions(['parse_html' => true, 'localizable_html_attributes' => ['data-foo'], 'accents' => true])], ['<p data-foo="ççéç""">ƀåéŕ</p>', '<p data-foo="ccéc""">baér</p>', self::getIsolatedOptions(['parse_html' => true, 'localizable_html_attributes' => ['data-foo'], 'accents' => true])], ['<p data-foo="ccc""">ƀåŕ</p>', '<p data-foo="ccc""">bar</p>', self::getIsolatedOptions(['parse_html' => true, 'accents' => true])], ['<p>″≤″</p>', '<p>"<"</p>', self::getIsolatedOptions(['parse_html' => true, 'accents' => true])], ['Symfony is an Open Source, community-driven project with thousands of contributors. ~~~~~~~ ~~ ~~~~ ~~~~~~~ ~~~~~~~ ~~ ~~~~ ~~~~~~~~~~~~~ ~~~~~~~~~~~~~ ~~~~~~~ ~~ ~~~', 'Symfony is an Open Source, community-driven project with thousands of contributors.', self::getIsolatedOptions(['expansion_factor' => 2.0])], ['<p>👇👇👇👇👇👇👇</p>', '<p>👇👇👇👇👇👇👇</p>', self::getIsolatedOptions(['parse_html' => true])], ] |
/src/Symfony/Component/Translation/Bridge/Loco/Tests/LocoProviderTest.php:1032 | 1 | yield [['en', 'fr'], ['messages', 'messages+intl-icu', 'validators'], ['en' => ['messages' => <<<'XLIFF' <?xml version="1.0" encoding="UTF-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 http://docs.oasis-open.org/xliff/v1.2/os/xliff-core-1.2-strict.xsd"> <file original="https://localise.biz/user/symfony-translation-provider" source-language="en" datatype="database" tool-id="loco"> <header> <tool tool-id="loco" tool-name="Loco" tool-version="1.0.25 20201211-1" tool-company="Loco"/> </header> <body> <trans-unit id="loco:5fd89b853ee27904dd6c5f67" resname="index.hello" datatype="plaintext"> <source>index.hello</source> <target state="translated">Hello</target> </trans-unit> </body> </file> </xliff> XLIFF, 'messages+intl-icu' => <<<'XLIFF' <?xml version="1.0" encoding="UTF-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 http://docs.oasis-open.org/xliff/v1.2/os/xliff-core-1.2-strict.xsd"> <file original="https://localise.biz/user/symfony-translation-provider" source-language="en" datatype="database" tool-id="loco"> <header> <tool tool-id="loco" tool-name="Loco" tool-version="1.0.25 20201211-1" tool-company="Loco"/> </header> <body> <trans-unit id="loco:5fd89b8542e5aa5cc27457e2" resname="index.greetings" datatype="plaintext" extradata="loco:format=icu"> <source>index.greetings</source> <target state="translated">Welcome, {firstname}!</target> </trans-unit> </body> </file> </xliff> XLIFF, 'validators' => <<<'XLIFF' <?xml version="1.0" encoding="UTF-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 http://docs.oasis-open.org/xliff/v1.2/os/xliff-core-1.2-strict.xsd"> <file original="https://localise.biz/user/symfony-translation-provider" source-language="en" datatype="database" tool-id="loco"> <header> <tool tool-id="loco" tool-name="Loco" tool-version="1.0.25 20201211-1" tool-company="Loco"/> </header> <body> <trans-unit id="loco:5fd89b853ee27904dd6c5f68" resname="firstname.error" datatype="plaintext"> <source>firstname.error</source> <target state="translated">Firstname must contains only letters.</target> </trans-unit> <trans-unit id="loco:5fd89b8542e5aa5cc27457e3" resname="lastname.error" datatype="plaintext" extradata="loco:format=icu"> <source>lastname.error</source> <target state="translated">Lastname must contains only letters.</target> </trans-unit> </body> </file> </xliff> XLIFF, ], 'fr' => ['messages' => <<<'XLIFF' <?xml version="1.0" encoding="UTF-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 http://docs.oasis-open.org/xliff/v1.2/os/xliff-core-1.2-strict.xsd"> <file original="https://localise.biz/user/symfony-translation-provider" source-language="en" datatype="database" tool-id="loco"> <header> <tool tool-id="loco" tool-name="Loco" tool-version="1.0.25 20201211-1" tool-company="Loco"/> </header> <body> <trans-unit id="loco:5fd89b853ee27904dd6c5f67" resname="index.hello" datatype="plaintext"> <source>index.hello</source> <target state="translated">Bonjour</target> </trans-unit> </body> </file> </xliff> XLIFF, 'messages+intl-icu' => <<<'XLIFF' <?xml version="1.0" encoding="UTF-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 http://docs.oasis-open.org/xliff/v1.2/os/xliff-core-1.2-strict.xsd"> <file original="https://localise.biz/user/symfony-translation-provider" source-language="en" datatype="database" tool-id="loco"> <header> <tool tool-id="loco" tool-name="Loco" tool-version="1.0.25 20201211-1" tool-company="Loco"/> </header> <body> <trans-unit id="loco:5fd89b8542e5aa5cc27457e2" resname="index.greetings" datatype="plaintext" extradata="loco:format=icu"> <source>index.greetings</source> <target state="translated">Bienvenue, {firstname} !</target> </trans-unit> </body> </file> </xliff> XLIFF, 'validators' => <<<'XLIFF' <?xml version="1.0" encoding="UTF-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 http://docs.oasis-open.org/xliff/v1.2/os/xliff-core-1.2-strict.xsd"> <file original="https://localise.biz/user/symfony-translation-provider" source-language="en" datatype="database" tool-id="loco"> <header> <tool tool-id="loco" tool-name="Loco" tool-version="1.0.25 20201211-1" tool-company="Loco"/> </header> <body> <trans-unit id="loco:5fd89b853ee27904dd6c5f68" resname="firstname.error" datatype="plaintext"> <source>firstname.error</source> <target state="translated">Le prénom ne peut contenir que des lettres.</target> </trans-unit> <trans-unit id="loco:5fd89b8542e5aa5cc27457e3" resname="lastname.error" datatype="plaintext" extradata="loco:format=icu"> <source>lastname.error</source> <target state="translated">Le nom de famille ne peut contenir que des lettres.</target> </trans-unit> </body> </file> </xliff> XLIFF, ], ], $expectedTranslatorBag, ] |
/src/Symfony/Component/Translation/Bridge/Loco/Tests/LocoProviderTest.php:715 | 1 | $provider = self::createProvider((new MockHttpClient(new MockResponse($responseContent)))->withOptions(['base_uri' => 'https://localise.biz/api/', 'headers' => ['Authorization' => 'Loco API_KEY', ], ]), $loader, new NullLogger( ), 'en', 'localise.biz/api/') |
/src/Symfony/Component/Translation/Bridge/Loco/Tests/LocoProviderTest.php:690 | 8 | $provider = self::createProvider((new MockHttpClient($responses))->withOptions(['base_uri' => 'https://localise.biz/api/', 'headers' => ['Authorization' => 'Loco API_KEY'], ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'localise.biz/api/') |
/src/Symfony/Component/Translation/Bridge/Loco/Tests/LocoProviderTest.php:605 | 8 | $provider = self::createProvider((new MockHttpClient($responses))->withOptions(['base_uri' => 'https://localise.biz/api/', 'headers' => ['Authorization' => 'Loco API_KEY'], ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'localise.biz/api/') |
/src/Symfony/Component/Translation/Bridge/Loco/Tests/LocoProviderTest.php:528 | 8 | $provider = self::createProvider((new MockHttpClient($responses))->withOptions(['base_uri' => 'https://localise.biz/api/', 'headers' => ['Authorization' => 'Loco API_KEY'], ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'localise.biz/api/') |
/src/Symfony/Component/Translation/Bridge/Loco/Tests/LocoProviderTest.php:454 | 8 | $provider = self::createProvider((new MockHttpClient($responses))->withOptions(['base_uri' => 'https://localise.biz/api/', 'headers' => ['Authorization' => 'Loco API_KEY'], ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'localise.biz/api/') |
/src/Symfony/Component/Translation/Bridge/Loco/Tests/LocoProviderTest.php:394 | 8 | $provider = self::createProvider((new MockHttpClient($responses))->withOptions(['base_uri' => 'https://localise.biz/api/', 'headers' => ['Authorization' => 'Loco API_KEY'], ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'localise.biz/api/') |
/src/Symfony/Component/Translation/Bridge/Loco/Tests/LocoProviderTest.php:334 | 8 | $provider = self::createProvider((new MockHttpClient($responses))->withOptions(['base_uri' => 'https://localise.biz/api/', 'headers' => ['Authorization' => 'Loco API_KEY'], ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'localise.biz/api/') |
/src/Symfony/Component/Translation/Bridge/Loco/Tests/LocoProviderTest.php:282 | 8 | $provider = self::createProvider((new MockHttpClient($responses))->withOptions(['base_uri' => 'https://localise.biz/api/', 'headers' => ['Authorization' => 'Loco API_KEY'], ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'localise.biz/api/') |
/src/Symfony/Component/Translation/Bridge/Loco/Tests/LocoProviderTest.php:248 | 8 | $provider = self::createProvider((new MockHttpClient($responses))->withOptions(['base_uri' => 'https://localise.biz/api/', 'headers' => ['Authorization' => 'Loco API_KEY'], ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'localise.biz/api/') |
/src/Symfony/Component/Translation/Bridge/Loco/Tests/LocoProviderTest.php:60 | 1 | yield [self::createProvider((new MockHttpClient( ))->withOptions(['base_uri' => 'https://example.com:99', 'headers' => ['Authorization' => 'Loco API_KEY', ], ]), new ArrayLoader( ), new NullLogger( ), 'en', 'example.com:99'), 'loco://example.com:99', ] |
/src/Symfony/Component/Translation/Bridge/Loco/Tests/LocoProviderTest.php:50 | 1 | yield [self::createProvider((new MockHttpClient( ))->withOptions(['base_uri' => 'https://example.com', 'headers' => ['Authorization' => 'Loco API_KEY', ], ]), new ArrayLoader( ), new NullLogger( ), 'en', 'example.com'), 'loco://example.com', ] |
/src/Symfony/Component/Translation/Bridge/Loco/Tests/LocoProviderTest.php:40 | 1 | yield [self::createProvider((new MockHttpClient( ))->withOptions(['base_uri' => 'https://localise.biz/api/', 'headers' => ['Authorization' => 'Loco API_KEY', ], ]), new ArrayLoader( ), new NullLogger( ), 'en', 'localise.biz/api/'), 'loco://localise.biz/api/', ] |
/src/Symfony/Component/Translation/Bridge/Loco/LocoProvider.php:107 | 1 | $response = $this->client->request('GET', sprintf('export/locale/%s.xlf', rawurlencode($locale)), ['query' => ['filter' => $domain, 'status' => 'translated,blank-translation', ], 'headers' => ['If-Modified-Since' => $previousCatalogue instanceof CatalogueMetadataAwareInterface ? $previousCatalogue->getCatalogueMetadata('last-modified', $domain) : null, ], ]) |
/src/Symfony/Component/Translation/Bridge/Crowdin/Tests/CrowdinProviderTest.php:1198 | 9 | $provider = self::createProvider((new MockHttpClient($responses))->withOptions(['base_uri' => 'https://api.crowdin.com/api/v2/projects/1/', 'auth_bearer' => 'API_TOKEN', ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'api.crowdin.com/api/v2/projects/1/') |
/src/Symfony/Component/Notifier/Bridge/Twitter/TwitterTransport.php:84 | 1 | $oauth = ['oauth_consumer_key' => $this->apiKey, 'oauth_nonce' => self::$nonce = hash('xxh128', self::$nonce ??= random_bytes(16)), 'oauth_signature_method' => 'HMAC-SHA1', 'oauth_timestamp' => time( ), 'oauth_token' => $this->accessToken, 'oauth_version' => '1.0', ] |
/src/Symfony/Component/Notifier/Bridge/Twitter/TwitterTransport.php:96 | 1 | $oauth['oauth_signature'] = base64_encode(hash_hmac('sha1', implode('&', array_map('rawurlencode', [$method, $url, implode('&', array_map(fn ($k) => rawurlencode($k) . '=' . rawurlencode($sign[$k]), array_keys($sign))), ])), rawurlencode($this->apiSecret) . '&' . rawurlencode($this->accessSecret), true)) |
/src/Symfony/Component/Notifier/Bridge/FortySixElks/FortySixElksTransportFactory.php:32 | 1 | return (new FortySixElksTransport($this->getUser($dsn), $this->getPassword($dsn), $from, $this->client, $this->dispatcher))->setHost($host)->setPort($dsn->getPort( )) |
/src/Symfony/Component/Notifier/Bridge/GoIp/GoIpTransport.php:74 | 1 | $response = $this->client->request('GET', $this->getEndpoint( ), ['query' => ['u' => $this->username, 'p' => $this->password, 'l' => $options?->getSimSlot( ) ?? $this->simSlot, 'n' => $message->getPhone( ), 'm' => $message->getSubject( ), ], ]) |
/src/Symfony/Component/Notifier/Bridge/Sendberry/SendberryTransportFactory.php:34 | 1 | return (new SendberryTransport($this->getUser($dsn), $this->getPassword($dsn), $dsn->getRequiredOption('auth_key'), $dsn->getRequiredOption('from'), $this->client, $this->dispatcher))->setHost($host)->setPort($port) |
/src/Symfony/Component/Notifier/Bridge/Sendberry/SendberryTransport.php:76 | 1 | $response = $this->client->request('POST', $endpoint, ['json' => ['from' => $from, 'to' => [$message->getPhone( )], 'content' => $message->getSubject( ), 'key' => $this->authKey, 'name' => $this->username, 'password' => $this->password, ], ]) |
/src/Symfony/Component/Translation/Provider/TranslationProviderCollectionFactory.php:37 | 1 | $providers[$name] = $this->fromDsnObject(new Dsn($currentConfig['dsn']), !$currentConfig['locales'] ? $this->enabledLocales : $currentConfig['locales'], !$currentConfig['domains'] ? [ ] : $currentConfig['domains']) |
/src/Symfony/Component/Translation/Dumper/MoFileDumper.php:37 | 1 | $header = ['magicNumber' => MoFileLoader::MO_LITTLE_ENDIAN_MAGIC, 'formatRevision' => 0, 'count' => $size, 'offsetId' => MoFileLoader::MO_HEADER_SIZE, 'offsetTranslated' => MoFileLoader::MO_HEADER_SIZE + (8 * $size), 'sizeHashes' => 0, 'offsetHashes' => MoFileLoader::MO_HEADER_SIZE + (16 * $size), ] |
/src/Symfony/Component/Translation/Tests/Catalogue/MergeOperationTest.php:22 | 2 | $operation = $this->createOperation(new MessageCatalogue('en', ['messages' => ['a' => 'old_a', 'b' => 'old_b']]), new MessageCatalogue('en', ['messages' => ['a' => 'new_a', 'c' => 'new_c']])) |
/src/Symfony/Component/Translation/Tests/DependencyInjection/TranslationPathsPassTest.php:78 | 1 | $expectedPaths = [$container->getReflectionClass(ServiceArguments::class)->getFileName( ), $container->getReflectionClass(ServiceProperties::class)->getFileName( ), $container->getReflectionClass(ServiceMethodCalls::class)->getFileName( ), $container->getReflectionClass(ControllerArguments::class)->getFileName( ), $container->getReflectionClass(ServiceSubscriber::class)->getFileName( ), ] |
/src/Symfony/Component/Translation/Tests/Extractor/PhpAstExtractorTest.php:50 | 1 | $expectedCatalogue = ['messages' => ['translatable single-quoted key' => 'prefixtranslatable single-quoted key', 'translatable double-quoted key' => 'prefixtranslatable double-quoted key', 'translatable heredoc key' => 'prefixtranslatable heredoc key', 'translatable nowdoc key' => 'prefixtranslatable nowdoc key', "translatable double-quoted key with whitespace and escaped \$\n\" sequences" => "prefixtranslatable double-quoted key with whitespace and escaped \$\n\" sequences", 'translatable single-quoted key with whitespace and nonescaped \$\n\' sequences' => 'prefixtranslatable single-quoted key with whitespace and nonescaped \$\n\' sequences', 'translatable single-quoted key with "quote mark at the end"' => 'prefixtranslatable single-quoted key with "quote mark at the end"', 'translatable ' . $expectedHeredoc => 'prefixtranslatable ' . $expectedHeredoc, 'translatable ' . $expectedNowdoc => 'prefixtranslatable ' . $expectedNowdoc, 'translatable concatenated message with heredoc and nowdoc' => 'prefixtranslatable concatenated message with heredoc and nowdoc', 'translatable default domain' => 'prefixtranslatable default domain', 'translatable-fqn single-quoted key' => 'prefixtranslatable-fqn single-quoted key', 'translatable-fqn double-quoted key' => 'prefixtranslatable-fqn double-quoted key', 'translatable-fqn heredoc key' => 'prefixtranslatable-fqn heredoc key', 'translatable-fqn nowdoc key' => 'prefixtranslatable-fqn nowdoc key', "translatable-fqn double-quoted key with whitespace and escaped \$\n\" sequences" => "prefixtranslatable-fqn double-quoted key with whitespace and escaped \$\n\" sequences", 'translatable-fqn single-quoted key with whitespace and nonescaped \$\n\' sequences' => 'prefixtranslatable-fqn single-quoted key with whitespace and nonescaped \$\n\' sequences', 'translatable-fqn single-quoted key with "quote mark at the end"' => 'prefixtranslatable-fqn single-quoted key with "quote mark at the end"', 'translatable-fqn ' . $expectedHeredoc => 'prefixtranslatable-fqn ' . $expectedHeredoc, 'translatable-fqn ' . $expectedNowdoc => 'prefixtranslatable-fqn ' . $expectedNowdoc, 'translatable-fqn concatenated message with heredoc and nowdoc' => 'prefixtranslatable-fqn concatenated message with heredoc and nowdoc', 'translatable-fqn default domain' => 'prefixtranslatable-fqn default domain', 'translatable-short single-quoted key' => 'prefixtranslatable-short single-quoted key', 'translatable-short double-quoted key' => 'prefixtranslatable-short double-quoted key', 'translatable-short heredoc key' => 'prefixtranslatable-short heredoc key', 'translatable-short nowdoc key' => 'prefixtranslatable-short nowdoc key', "translatable-short double-quoted key with whitespace and escaped \$\n\" sequences" => "prefixtranslatable-short double-quoted key with whitespace and escaped \$\n\" sequences", 'translatable-short single-quoted key with whitespace and nonescaped \$\n\' sequences' => 'prefixtranslatable-short single-quoted key with whitespace and nonescaped \$\n\' sequences', 'translatable-short single-quoted key with "quote mark at the end"' => 'prefixtranslatable-short single-quoted key with "quote mark at the end"', 'translatable-short ' . $expectedHeredoc => 'prefixtranslatable-short ' . $expectedHeredoc, 'translatable-short ' . $expectedNowdoc => 'prefixtranslatable-short ' . $expectedNowdoc, 'translatable-short concatenated message with heredoc and nowdoc' => 'prefixtranslatable-short concatenated message with heredoc and nowdoc', 'translatable-short default domain' => 'prefixtranslatable-short default domain', 'translatable-short-fqn single-quoted key' => 'prefixtranslatable-short-fqn single-quoted key', 'translatable-short-fqn double-quoted key' => 'prefixtranslatable-short-fqn double-quoted key', 'translatable-short-fqn heredoc key' => 'prefixtranslatable-short-fqn heredoc key', 'translatable-short-fqn nowdoc key' => 'prefixtranslatable-short-fqn nowdoc key', "translatable-short-fqn double-quoted key with whitespace and escaped \$\n\" sequences" => "prefixtranslatable-short-fqn double-quoted key with whitespace and escaped \$\n\" sequences", 'translatable-short-fqn single-quoted key with whitespace and nonescaped \$\n\' sequences' => 'prefixtranslatable-short-fqn single-quoted key with whitespace and nonescaped \$\n\' sequences', 'translatable-short-fqn single-quoted key with "quote mark at the end"' => 'prefixtranslatable-short-fqn single-quoted key with "quote mark at the end"', 'translatable-short-fqn ' . $expectedHeredoc => 'prefixtranslatable-short-fqn ' . $expectedHeredoc, 'translatable-short-fqn ' . $expectedNowdoc => 'prefixtranslatable-short-fqn ' . $expectedNowdoc, 'translatable-short-fqn concatenated message with heredoc and nowdoc' => 'prefixtranslatable-short-fqn concatenated message with heredoc and nowdoc', 'translatable-short-fqn default domain' => 'prefixtranslatable-short-fqn default domain', 'single-quoted key' => 'prefixsingle-quoted key', 'double-quoted key' => 'prefixdouble-quoted key', 'heredoc key' => 'prefixheredoc key', 'nowdoc key' => 'prefixnowdoc key', "double-quoted key with whitespace and escaped \$\n\" sequences" => "prefixdouble-quoted key with whitespace and escaped \$\n\" sequences", 'single-quoted key with whitespace and nonescaped \$\n\' sequences' => 'prefixsingle-quoted key with whitespace and nonescaped \$\n\' sequences', 'single-quoted key with "quote mark at the end"' => 'prefixsingle-quoted key with "quote mark at the end"', $expectedHeredoc => 'prefix' . $expectedHeredoc, $expectedNowdoc => 'prefix' . $expectedNowdoc, 'concatenated message with heredoc and nowdoc' => 'prefixconcatenated message with heredoc and nowdoc', 'default domain' => 'prefixdefault domain', 'mix-named-arguments' => 'prefixmix-named-arguments', 'mix-named-arguments-locale' => 'prefixmix-named-arguments-locale', 'mix-named-arguments-without-domain' => 'prefixmix-named-arguments-without-domain', ], 'not_messages' => ['translatable other-domain-test-no-params-short-array' => 'prefixtranslatable other-domain-test-no-params-short-array', 'translatable other-domain-test-no-params-long-array' => 'prefixtranslatable other-domain-test-no-params-long-array', 'translatable other-domain-test-params-short-array' => 'prefixtranslatable other-domain-test-params-short-array', 'translatable other-domain-test-params-long-array' => 'prefixtranslatable other-domain-test-params-long-array', 'translatable typecast' => 'prefixtranslatable typecast', 'translatable-fqn other-domain-test-no-params-short-array' => 'prefixtranslatable-fqn other-domain-test-no-params-short-array', 'translatable-fqn other-domain-test-no-params-long-array' => 'prefixtranslatable-fqn other-domain-test-no-params-long-array', 'translatable-fqn other-domain-test-params-short-array' => 'prefixtranslatable-fqn other-domain-test-params-short-array', 'translatable-fqn other-domain-test-params-long-array' => 'prefixtranslatable-fqn other-domain-test-params-long-array', 'translatable-fqn typecast' => 'prefixtranslatable-fqn typecast', 'translatable-short other-domain-test-no-params-short-array' => 'prefixtranslatable-short other-domain-test-no-params-short-array', 'translatable-short other-domain-test-no-params-long-array' => 'prefixtranslatable-short other-domain-test-no-params-long-array', 'translatable-short other-domain-test-params-short-array' => 'prefixtranslatable-short other-domain-test-params-short-array', 'translatable-short other-domain-test-params-long-array' => 'prefixtranslatable-short other-domain-test-params-long-array', 'translatable-short typecast' => 'prefixtranslatable-short typecast', 'translatable-short-fqn other-domain-test-no-params-short-array' => 'prefixtranslatable-short-fqn other-domain-test-no-params-short-array', 'translatable-short-fqn other-domain-test-no-params-long-array' => 'prefixtranslatable-short-fqn other-domain-test-no-params-long-array', 'translatable-short-fqn other-domain-test-params-short-array' => 'prefixtranslatable-short-fqn other-domain-test-params-short-array', 'translatable-short-fqn other-domain-test-params-long-array' => 'prefixtranslatable-short-fqn other-domain-test-params-long-array', 'translatable-short-fqn typecast' => 'prefixtranslatable-short-fqn typecast', 'other-domain-test-no-params-short-array' => 'prefixother-domain-test-no-params-short-array', 'other-domain-test-no-params-long-array' => 'prefixother-domain-test-no-params-long-array', 'other-domain-test-params-short-array' => 'prefixother-domain-test-params-short-array', 'other-domain-test-params-long-array' => 'prefixother-domain-test-params-long-array', 'typecast' => 'prefixtypecast', 'ordered-named-arguments-in-trans-method' => 'prefixordered-named-arguments-in-trans-method', 'disordered-named-arguments-in-trans-method' => 'prefixdisordered-named-arguments-in-trans-method', 'variable-assignation-inlined-in-trans-method-call1' => 'prefixvariable-assignation-inlined-in-trans-method-call1', 'variable-assignation-inlined-in-trans-method-call2' => 'prefixvariable-assignation-inlined-in-trans-method-call2', 'variable-assignation-inlined-in-trans-method-call3' => 'prefixvariable-assignation-inlined-in-trans-method-call3', 'variable-assignation-inlined-with-named-arguments-in-trans-method' => 'prefixvariable-assignation-inlined-with-named-arguments-in-trans-method', 'mix-named-arguments-without-parameters' => 'prefixmix-named-arguments-without-parameters', 'mix-named-arguments-disordered' => 'prefixmix-named-arguments-disordered', 'const-domain' => 'prefixconst-domain', ], 'validators' => ['message-in-constraint-attribute' => 'prefixmessage-in-constraint-attribute', 'custom Isbn message from attribute with options as array' => 'prefixcustom Isbn message from attribute with options as array', 'custom Length exact message from attribute from named argument' => 'prefixcustom Length exact message from attribute from named argument', 'custom Length exact message from attribute from named argument 1/2' => 'prefixcustom Length exact message from attribute from named argument 1/2', 'custom Length min message from attribute from named argument 2/2' => 'prefixcustom Length min message from attribute from named argument 2/2', 'custom Isbn message with options as array' => 'prefixcustom Isbn message with options as array', 'custom Isbn message from named argument' => 'prefixcustom Isbn message from named argument', 'custom Length exact message from named argument' => 'prefixcustom Length exact message from named argument', 'custom Length exact message from named argument 1/2' => 'prefixcustom Length exact message from named argument 1/2', 'custom Length min message from named argument 2/2' => 'prefixcustom Length min message from named argument 2/2', ], ] |
/src/Symfony/Component/Translation/Tests/Catalogue/TargetOperationTest.php:22 | 2 | $operation = $this->createOperation(new MessageCatalogue('en', ['messages' => ['a' => 'old_a', 'b' => 'old_b']]), new MessageCatalogue('en', ['messages' => ['a' => 'new_a', 'c' => 'new_c']])) |
/src/Symfony/Component/Translation/Tests/TranslatorTest.php:477 | 1 | return [['Symfony est super !', 'Symfony is great!', 'Symfony est super !', [ ], 'fr', ''], ['Symfony est awesome !', 'Symfony is %what%!', 'Symfony est %what% !', ['%what%' => 'awesome'], 'fr', ''], ['Symfony est Symfony est awesome ! !', 'Symfony is %what%!', 'Symfony est %what% !', ['%what%' => $param], 'fr', ''], ['Symfony est super !', new StringClass('Symfony is great!'), 'Symfony est super !', [ ], 'fr', ''], ['', null, '', [ ], 'fr', ''], ] |
/src/Symfony/Component/Translation/Tests/TranslatorTest.php:490 | 1 | return [['There are no apples', $id, $id, ['{apples}' => 0], 'en', 'test' . MessageCatalogue::INTL_DOMAIN_SUFFIX], ['There is one apple', $id, $id, ['{apples}' => 1], 'en', 'test' . MessageCatalogue::INTL_DOMAIN_SUFFIX], ['There are 3 apples', $id, $id, ['{apples}' => 3], 'en', 'test' . MessageCatalogue::INTL_DOMAIN_SUFFIX], ] |
/src/Symfony/Component/Translation/Tests/TranslatableTest.php:52 | 1 | return [['Symfony est super !', new TranslatableMessage('Symfony is great!', [ ], ''), ['Symfony is great!' => 'Symfony est super !', ], 'fr'], ['Symfony est awesome !', new TranslatableMessage('Symfony is %what%!', ['%what%' => 'awesome'], ''), ['Symfony is %what%!' => 'Symfony est %what% !', ], 'fr'], ['Symfony est superbe !', new TranslatableMessage('Symfony is %what%!', ['%what%' => new TranslatableMessage('awesome', [ ], '')], ''), ['Symfony is %what%!' => 'Symfony est %what% !', 'awesome' => 'superbe', ], 'fr'], ] |
/src/Symfony/Component/Translation/Tests/TranslatableTest.php:82 | 1 | return [['Symfony est super!', $messages, new TranslatableMessage('symfony.is.great', [ ], '')], ['Foo Bar Baz', $messages, new TranslatableMessage('foo.bar.baz', [ ], '')], ['Foo Baz', $messages, new TranslatableMessage('foo.baz', [ ], '')], ] |
/src/Symfony/Component/Translation/Bridge/Phrase/Tests/PhraseProviderTest.php:1050 | 1 | return ['bad request' => ['statusCode' => $statusCode, 'exceptionMessage' => $exceptionMessage, 'loggerMessage' => $loggerMessage, ], 'rate limit exceeded' => ['statusCode' => 429, 'exceptionMessage' => 'Rate limit exceeded (1000). please wait 60 seconds.', 'loggerMessage' => $loggerMessage, ], 'server unavailable' => ['statusCode' => 503, 'exceptionMessage' => 'Provider server error.', 'loggerMessage' => $loggerMessage, ], ] |
/src/Symfony/Component/Translation/Bridge/Phrase/Tests/PhraseProviderTest.php:896 | 1 | yield 'custom endpoint with port' => ['provider' => $this->createProvider(httpClient : $this->getHttpClient( )->withOptions(['base_uri' => 'https://api.us.app.phrase.com:8080/api/v2/projects/PROJECT_ID/', 'headers' => ['Authorization' => 'token API_TOKEN', 'User-Agent' => 'myProject', ], ]), endpoint : 'api.us.app.phrase.com:8080'), 'expected' => 'phrase://api.us.app.phrase.com:8080', ] |
/src/Symfony/Component/Translation/Bridge/Phrase/Tests/PhraseProviderTest.php:1124 | 1 | return new PhraseProvider($httpClient ?? $this->getHttpClient( ), $this->getLogger( ), $this->getLoader( ), $dumper ?? $this->getXliffFileDumper( ), $this->getCache( ), $this->getDefaultLocale( ), $endpoint ?? $this->getEndpoint( ), $this->getReadConfig( ), $this->getWriteConfig( ), $isFallbackLocaleEnabled, ) |
/src/Symfony/Component/Translation/Bridge/Phrase/Tests/PhraseProviderTest.php:1101 | 1 | return new JsonMockResponse([['id' => '5fea6ed5c21767730918a9400e420832', 'name' => 'de', 'code' => 'de', 'fallback_locale' => null, ], ['id' => '13604ec993beefcdaba732812cdb828c', 'name' => 'en-GB', 'code' => 'en-GB', 'fallback_locale' => ['id' => '5fea6ed5c21767730918a9400e420832', 'name' => 'de', 'code' => 'de', ], ], ]) |
/src/Symfony/Component/Translation/Bridge/Phrase/PhraseProvider.php:197 | 1 | $response = $this->httpClient->request('POST', 'locales', ['body' => ['name' => $locale, 'code' => $locale, 'default' => $locale === str_replace('_', '-', $this->defaultLocale), ], 'headers' => ['Content-Type' => 'application/x-www-form-urlencoded', ], ]) |
/src/Symfony/Component/Translation/Bridge/Phrase/PhraseProviderFactory.php:65 | 1 | $client = $this->httpClient->withOptions(['base_uri' => 'https://' . $endpoint . '/v2/projects/' . $this->getUser($dsn) . '/', 'headers' => ['Authorization' => 'token ' . $this->getPassword($dsn), 'User-Agent' => $dsn->getRequiredOption('userAgent'), ], ]) |
/src/Symfony/Component/Translation/Bridge/Phrase/Tests/PhraseProviderTest.php:885 | 1 | yield 'custom endpoint' => ['provider' => $this->createProvider(httpClient : $this->getHttpClient( )->withOptions(['base_uri' => 'https://api.us.app.phrase.com/api/v2/projects/PROJECT_ID/', 'headers' => ['Authorization' => 'token API_TOKEN', 'User-Agent' => 'myProject', ], ]), endpoint : 'api.us.app.phrase.com'), 'expected' => 'phrase://api.us.app.phrase.com', ] |
/src/Symfony/Component/Translation/Bridge/Phrase/Tests/PhraseProviderTest.php:874 | 1 | yield 'default endpoint' => ['provider' => $this->createProvider(httpClient : $this->getHttpClient( )->withOptions(['base_uri' => 'https://api.phrase.com/api/v2/projects/PROJECT_ID/', 'headers' => ['Authorization' => 'token API_TOKEN', 'User-Agent' => 'myProject', ], ])), 'expected' => 'phrase://api.phrase.com', ] |
/src/Symfony/Component/Translation/Bridge/Lokalise/Tests/LokaliseProviderTest.php:585 | 1 | $provider = self::createProvider((new MockHttpClient($response))->withOptions(['base_uri' => 'https://api.lokalise.com/api2/projects/PROJECT_ID/', 'headers' => ['X-Api-Token' => 'API_KEY'], ]), new XliffFileLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'api.lokalise.com') |
/src/Symfony/Component/Translation/Bridge/Lokalise/Tests/LokaliseProviderTest.php:533 | 1 | $provider = self::createProvider((new MockHttpClient([$getLanguagesResponse, $createLanguagesResponse, $getKeysIdsForMessagesDomainResponse, $createKeysForMessagesDomainResponse, $updateTranslationsResponse, ]))->withOptions(['base_uri' => 'https://api.lokalise.com/api2/projects/PROJECT_ID/', 'headers' => ['X-Api-Token' => 'API_KEY'], ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'api.lokalise.com') |
/src/Symfony/Component/Translation/Bridge/Lokalise/Tests/LokaliseProviderTest.php:843 | 1 | yield [['en', 'fr'], ['messages', 'validators'], ['en' => ['messages' => <<<'XLIFF' <?xml version="1.0" encoding="UTF-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 http://docs.oasis-open.org/xliff/v1.2/os/xliff-core-1.2-strict.xsd"> <file original="" datatype="plaintext" xml:space="preserve" source-language="en" target-language="en"> <header> <tool tool-id="lokalise.com" tool-name="Lokalise"/> </header> <body> <trans-unit id="index.greetings" resname="index.greetings"> <source>index.greetings</source> <target>Welcome, {firstname}!</target> </trans-unit> <trans-unit id="index.hello" resname="index.hello"> <source>index.hello</source> <target>Hello</target> </trans-unit> </body> </file> </xliff> XLIFF, 'validators' => <<<'XLIFF' <?xml version="1.0" encoding="UTF-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 http://docs.oasis-open.org/xliff/v1.2/os/xliff-core-1.2-strict.xsd"> <file original="" datatype="plaintext" xml:space="preserve" source-language="en" target-language="en"> <header> <tool tool-id="lokalise.com" tool-name="Lokalise"/> </header> <body> <trans-unit id="lastname.error" resname="lastname.error"> <source>lastname.error</source> <target>Lastname must contains only letters.</target> </trans-unit> <trans-unit id="firstname.error" resname="firstname.error"> <source>firstname.error</source> <target>Firstname must contains only letters.</target> </trans-unit> </body> </file> </xliff> XLIFF, ], 'fr' => ['messages' => <<<'XLIFF' <?xml version="1.0" encoding="UTF-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 http://docs.oasis-open.org/xliff/v1.2/os/xliff-core-1.2-strict.xsd"> <file original="" datatype="plaintext" xml:space="preserve" source-language="en" target-language="fr"> <header> <tool tool-id="lokalise.com" tool-name="Lokalise"/> </header> <body> <trans-unit id="index.greetings" resname="index.greetings"> <source>index.greetings</source> <target>Bienvenue, {firstname} !</target> </trans-unit> <trans-unit id="index.hello" resname="index.hello"> <source>index.hello</source> <target>Bonjour</target> </trans-unit> </body> </file> </xliff> XLIFF, 'validators' => <<<'XLIFF' <?xml version="1.0" encoding="UTF-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 http://docs.oasis-open.org/xliff/v1.2/os/xliff-core-1.2-strict.xsd"> <file original="" datatype="plaintext" xml:space="preserve" source-language="en" target-language="fr"> <header> <tool tool-id="lokalise.com" tool-name="Lokalise"/> </header> <body> <trans-unit id="lastname.error" resname="lastname.error"> <source>lastname.error</source> <target>Le nom de famille ne peut contenir que des lettres.</target> </trans-unit> <trans-unit id="firstname.error" resname="firstname.error"> <source>firstname.error</source> <target>Le prénom ne peut contenir que des lettres.</target> </trans-unit> </body> </file> </xliff> XLIFF, ], ], $expectedTranslatorBag, ] |
/src/Symfony/Component/Translation/Bridge/Lokalise/Tests/LokaliseProviderTest.php:632 | 1 | $provider = self::createProvider((new MockHttpClient($response))->withOptions(['base_uri' => 'https://api.lokalise.com/api2/projects/PROJECT_ID/', 'headers' => ['X-Api-Token' => 'API_KEY'], ]), $loader, $this->getLogger( ), $this->getDefaultLocale( ), 'api.lokalise.com') |
/src/Symfony/Component/Translation/Bridge/Lokalise/Tests/LokaliseProviderTest.php:304 | 1 | $provider = self::createProvider((new MockHttpClient([$getLanguagesResponse, $createLanguagesResponse, ]))->withOptions(['base_uri' => 'https://api.lokalise.com/api2/projects/PROJECT_ID/', 'headers' => ['X-Api-Token' => 'API_KEY'], ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'api.lokalise.com') |
/src/Symfony/Component/Translation/Bridge/Lokalise/Tests/LokaliseProviderTest.php:263 | 1 | $provider = self::createProvider((new MockHttpClient([$getLanguagesResponse, ]))->withOptions(['base_uri' => 'https://api.lokalise.com/api2/projects/PROJECT_ID/', 'headers' => ['X-Api-Token' => 'API_KEY'], ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'api.lokalise.com') |
/src/Symfony/Component/Translation/Bridge/Lokalise/Tests/LokaliseProviderTest.php:441 | 1 | $provider = self::createProvider((new MockHttpClient([$getLanguagesResponse, $createLanguagesResponse, $getKeysIdsForMessagesDomainResponse, $createKeysForMessagesDomainResponse, ]))->withOptions(['base_uri' => 'https://api.lokalise.com/api2/projects/PROJECT_ID/', 'headers' => ['X-Api-Token' => 'API_KEY'], ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'api.lokalise.com') |
/src/Symfony/Component/Translation/Bridge/Lokalise/Tests/LokaliseProviderTest.php:361 | 1 | $provider = self::createProvider((new MockHttpClient([$getLanguagesResponse, $createLanguagesResponse, $getKeysIdsForMessagesDomainResponse, ]))->withOptions(['base_uri' => 'https://api.lokalise.com/api2/projects/PROJECT_ID/', 'headers' => ['X-Api-Token' => 'API_KEY'], ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'api.lokalise.com') |
/src/Symfony/Component/Translation/Bridge/Crowdin/Tests/CrowdinProviderTest.php:967 | 4 | $crowdinProvider = self::createProvider((new MockHttpClient($responses))->withOptions(['base_uri' => 'https://api.crowdin.com/api/v2/projects/1/', 'auth_bearer' => 'API_TOKEN', ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'api.crowdin.com/api/v2') |
/src/Symfony/Component/Translation/Bridge/Crowdin/Tests/CrowdinProviderTest.php:1022 | 4 | $crowdinProvider = self::createProvider((new MockHttpClient($responses))->withOptions(['base_uri' => 'https://api.crowdin.com/api/v2/projects/1/', 'auth_bearer' => 'API_TOKEN', ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'api.crowdin.com/api/v2') |
/src/Symfony/Component/Translation/Bridge/Crowdin/Tests/CrowdinProviderTest.php:1094 | 9 | $provider = self::createProvider((new MockHttpClient($responses))->withOptions(['base_uri' => 'https://api.crowdin.com/api/v2/projects/1/', 'auth_bearer' => 'API_TOKEN', ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'api.crowdin.com/api/v2/projects/1/') |
/src/Symfony/Component/Translation/Bridge/Crowdin/Tests/CrowdinProviderTest.php:1133 | 9 | $provider = self::createProvider((new MockHttpClient($responses))->withOptions(['base_uri' => 'https://api.crowdin.com/api/v2/projects/1/', 'auth_bearer' => 'API_TOKEN', ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'api.crowdin.com/api/v2/projects/1/') |
/src/Symfony/Component/Translation/Bridge/Crowdin/Tests/CrowdinProviderTest.php:499 | 9 | $provider = self::createProvider((new MockHttpClient($responses))->withOptions(['base_uri' => 'https://api.crowdin.com/api/v2/projects/1/', 'auth_bearer' => 'API_TOKEN', ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'api.crowdin.com/api/v2/projects/1/') |
/src/Symfony/Component/Translation/Bridge/Crowdin/Tests/CrowdinProviderTest.php:610 | 9 | $provider = self::createProvider((new MockHttpClient($responses))->withOptions(['base_uri' => 'https://api.crowdin.com/api/v2/projects/1/', 'auth_bearer' => 'API_TOKEN', ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'api.crowdin.com/api/v2/projects/1/') |
/src/Symfony/Component/Translation/Bridge/Crowdin/Tests/CrowdinProviderTest.php:757 | 4 | $crowdinProvider = self::createProvider((new MockHttpClient($responses))->withOptions(['base_uri' => 'https://api.crowdin.com/api/v2/projects/1/', 'auth_bearer' => 'API_TOKEN', ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'api.crowdin.com/api/v2') |
/src/Symfony/Component/Translation/Bridge/Crowdin/Tests/CrowdinProviderTest.php:884 | 4 | $crowdinProvider = self::createProvider((new MockHttpClient($responses))->withOptions(['base_uri' => 'https://api.crowdin.com/api/v2/projects/1/', 'auth_bearer' => 'API_TOKEN', ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'api.crowdin.com/api/v2') |
/src/Symfony/Component/Translation/Bridge/Crowdin/Tests/CrowdinProviderTest.php:160 | 9 | $provider = self::createProvider((new MockHttpClient($responses))->withOptions(['base_uri' => 'https://api.crowdin.com/api/v2/projects/1/', 'auth_bearer' => 'API_TOKEN', ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'api.crowdin.com/api/v2/projects/1/') |
/src/Symfony/Component/Translation/Bridge/Crowdin/Tests/CrowdinProviderTest.php:228 | 9 | $provider = self::createProvider((new MockHttpClient($responses))->withOptions(['base_uri' => 'https://api.crowdin.com/api/v2/projects/1/', 'auth_bearer' => 'API_TOKEN', ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'api.crowdin.com/api/v2/projects/1/') |
/src/Symfony/Component/Translation/Bridge/Crowdin/Tests/CrowdinProviderTest.php:306 | 9 | $provider = self::createProvider((new MockHttpClient($responses))->withOptions(['base_uri' => 'https://api.crowdin.com/api/v2/projects/1/', 'auth_bearer' => 'API_TOKEN', ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'api.crowdin.com/api/v2/projects/1/') |
/src/Symfony/Component/Translation/Bridge/Crowdin/Tests/CrowdinProviderTest.php:419 | 9 | $provider = self::createProvider((new MockHttpClient($responses))->withOptions(['base_uri' => 'https://api.crowdin.com/api/v2/projects/1/', 'auth_bearer' => 'API_TOKEN', ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'api.crowdin.com/api/v2/projects/1/') |
/src/Symfony/Component/Translation/Bridge/Phrase/Tests/PhraseProviderFactoryTest.php:149 | 1 | return new PhraseProviderFactory($this->getHttpClient( ), $this->getLogger( ), $this->getLoader( ), $this->getXliffFileDumper( ), $this->getCache( ), $this->getDefaultLocale( )) |
/src/Symfony/Component/Translation/Bridge/Crowdin/Tests/CrowdinProviderTest.php:41 | 1 | yield [self::createProvider((new MockHttpClient( ))->withOptions(['base_uri' => 'https://api.crowdin.com/api/v2/projects/1/', 'auth_bearer' => 'API_TOKEN', ]), new ArrayLoader( ), new NullLogger( ), 'en', 'api.crowdin.com'), 'crowdin://api.crowdin.com', ] |
/src/Symfony/Component/Translation/Bridge/Crowdin/Tests/CrowdinProviderTest.php:49 | 1 | yield [self::createProvider((new MockHttpClient( ))->withOptions(['base_uri' => 'https://domain.api.crowdin.com/api/v2/projects/1/', 'auth_bearer' => 'API_TOKEN', ]), new ArrayLoader( ), new NullLogger( ), 'en', 'domain.api.crowdin.com'), 'crowdin://domain.api.crowdin.com', ] |
/src/Symfony/Component/Translation/Bridge/Crowdin/Tests/CrowdinProviderTest.php:57 | 1 | yield [self::createProvider((new MockHttpClient( ))->withOptions(['base_uri' => 'https://api.crowdin.com:99/api/v2/projects/1/', 'auth_bearer' => 'API_TOKEN', ]), new ArrayLoader( ), new NullLogger( ), 'en', 'api.crowdin.com:99'), 'crowdin://api.crowdin.com:99', ] |
/src/Symfony/Component/Cache/Adapter/PdoAdapter.php:271 | 2 | $sql = $insertSql . " ON CONFLICT ($this->idCol) DO UPDATE SET ($this->dataCol, $this->lifetimeCol, $this->timeCol) = (EXCLUDED.$this->dataCol, EXCLUDED.$this->lifetimeCol, EXCLUDED.$this->timeCol)" |
/src/Symfony/Component/Cache/Adapter/PdoAdapter.php:263 | 2 | $sql = "MERGE INTO $this->table WITH (HOLDLOCK) USING (SELECT 1 AS dummy) AS src ON ($this->idCol = ?) " . "WHEN NOT MATCHED THEN INSERT ($this->idCol, $this->dataCol, $this->lifetimeCol, $this->timeCol) VALUES (?, ?, ?, ?) " . "WHEN MATCHED THEN UPDATE SET $this->dataCol = ?, $this->lifetimeCol = ?, $this->timeCol = ?;" |
/src/Symfony/Component/Cache/Adapter/PdoAdapter.php:256 | 2 | $sql = "MERGE INTO $this->table USING DUAL ON ($this->idCol = ?) " . "WHEN NOT MATCHED THEN INSERT ($this->idCol, $this->dataCol, $this->lifetimeCol, $this->timeCol) VALUES (?, ?, ?, ?) " . "WHEN MATCHED THEN UPDATE SET $this->dataCol = ?, $this->lifetimeCol = ?, $this->timeCol = ?" |
/src/Symfony/Component/Cache/Adapter/PdoAdapter.php:155 | 1 | $sql = "SELECT $this->idCol, CASE WHEN $this->lifetimeCol IS NULL OR $this->lifetimeCol + $this->timeCol > ? THEN $this->dataCol ELSE NULL END FROM $this->table WHERE $this->idCol IN ($sql)" |
/src/Symfony/Component/Cache/Adapter/DoctrineDbalAdapter.php:257 | 2 | $sql = $insertSql . " ON CONFLICT ($this->idCol) DO UPDATE SET ($this->dataCol, $this->lifetimeCol, $this->timeCol) = (EXCLUDED.$this->dataCol, EXCLUDED.$this->lifetimeCol, EXCLUDED.$this->timeCol)" |
/src/Symfony/Component/Cache/Adapter/DoctrineDbalAdapter.php:249 | 2 | $sql = "MERGE INTO $this->table WITH (HOLDLOCK) USING (SELECT 1 AS dummy) AS src ON ($this->idCol = ?) " . "WHEN NOT MATCHED THEN INSERT ($this->idCol, $this->dataCol, $this->lifetimeCol, $this->timeCol) VALUES (?, ?, ?, ?) " . "WHEN MATCHED THEN UPDATE SET $this->dataCol = ?, $this->lifetimeCol = ?, $this->timeCol = ?;" |
/src/Symfony/Component/Cache/Adapter/DoctrineDbalAdapter.php:242 | 2 | $sql = "MERGE INTO $this->table USING DUAL ON ($this->idCol = ?) " . "WHEN NOT MATCHED THEN INSERT ($this->idCol, $this->dataCol, $this->lifetimeCol, $this->timeCol) VALUES (?, ?, ?, ?) " . "WHEN MATCHED THEN UPDATE SET $this->dataCol = ?, $this->lifetimeCol = ?, $this->timeCol = ?" |
/src/Symfony/Component/Cache/Adapter/DoctrineDbalAdapter.php:71 | 1 | $params = (new DsnParser(['db2' => 'ibm_db2', 'mssql' => 'pdo_sqlsrv', 'mysql' => 'pdo_mysql', 'mysql2' => 'pdo_mysql', 'postgres' => 'pdo_pgsql', 'postgresql' => 'pdo_pgsql', 'pgsql' => 'pdo_pgsql', 'sqlite' => 'pdo_sqlite', 'sqlite3' => 'pdo_sqlite', ]))->parse($connOrDsn) |
/src/Symfony/Component/Cache/Tests/CacheItemTest.php:39 | 1 | return [[''], ['{'], ['}'], ['('], [')'], ['/'], ['\\'], ['@'], [':'], [true], [null], [1], [1.1], [[[ ]]], [new \Exception('foo')], ] |
/src/Symfony/Component/Cache/Traits/RedisTrait.php:351 | 1 | $redis = new $class(null, $hosts, $params['timeout'], $params['read_timeout'], (bool) $params['persistent'], $params['auth'] ?? '', ...\defined('Redis::SCAN_PREFIX') ? [$params['ssl'] ?? null] : [ ]) |
/src/Symfony/Component/Cache/Traits/RedisTrait.php:185 | 1 | $class = $params['class'] ?? match (true) { /**/ } |
/src/Symfony/Component/RateLimiter/Policy/SlidingWindowLimiter.php:88 | 1 | $reservation = new Reservation($now + $waitDuration, new RateLimit($this->getAvailableTokens($window->getHitCount( )), \DateTimeImmutable::createFromFormat('U', floor($now + $waitDuration)), false, $this->limit)) |
/src/Symfony/Component/Cache/Adapter/ApcuAdapter.php:81 | 1 | return isset($namespace[0]) && class_exists(\APCUIterator::class, false) && ('cli' !== \PHP_SAPI || filter_var(\ini_get('apc.enable_cli'), \FILTER_VALIDATE_BOOL)) ? apcu_delete(new \APCUIterator(sprintf('/^%s/', preg_quote($namespace, '/')), \APC_ITER_KEY)) : apcu_clear_cache( ) |
/src/Symfony/Component/Cache/Tests/Adapter/PredisAdapterTest.php:63 | 1 | $params = ['scheme' => 'tls', 'host' => $redisHost[0], 'port' => (int) ($redisHost[1] ?? 6379), 'ssl' => ['verify_peer' => '0'], 'persistent' => 0, 'timeout' => 3, 'read_write_timeout' => 0, 'tcp_nodelay' => true, 'database' => '1', ] |
/src/Symfony/Component/Cache/Tests/Adapter/PredisAdapterTest.php:39 | 1 | $params = ['scheme' => 'tcp', 'host' => $redisHost[0], 'port' => (int) ($redisHost[1] ?? 6379), 'persistent' => 0, 'timeout' => 3, 'read_write_timeout' => 0, 'tcp_nodelay' => true, 'database' => '1', ] |
/src/Symfony/Component/Cache/Tests/Traits/RedisTraitTest.php:61 | 1 | return [[sprintf('redis:?%s&redis_cluster=1', $hosts[0]), 'RedisCluster', ], [sprintf('redis:?%s&redis_cluster=true', $hosts[0]), 'RedisCluster', ], [sprintf('redis:?%s', $hosts[0]), 'Redis', ], ['dsn' => sprintf('redis:?%s', implode('&', \array_slice($hosts, 0, 2))), 'RedisArray', ], ] |
/src/Symfony/Component/Translation/Bridge/Lokalise/LokaliseProvider.php:277 | 1 | $response = $this->client->request('GET', 'keys', ['query' => ['filter_keys' => implode(',', $keys), 'filter_filenames' => $this->getLokaliseFilenameFromDomain($domain), 'limit' => self::LOKALISE_GET_KEYS_LIMIT, 'page' => $page, ], ]) |
/src/Symfony/Component/Translation/Bridge/Lokalise/Tests/LokaliseProviderTest.php:41 | 1 | yield [self::createProvider((new MockHttpClient( ))->withOptions(['base_uri' => 'https://api.lokalise.com/api2/projects/PROJECT_ID/', 'headers' => ['X-Api-Token' => 'API_KEY'], ]), new ArrayLoader( ), new NullLogger( ), 'en', 'api.lokalise.com'), 'lokalise://api.lokalise.com', ] |
/src/Symfony/Component/Translation/Bridge/Lokalise/LokaliseProvider.php:144 | 1 | $response = $this->client->request('POST', 'files/export', ['json' => ['format' => 'symfony_xliff', 'original_filenames' => true, 'filter_langs' => array_values($locales), 'filter_filenames' => array_map($this->getLokaliseFilenameFromDomain(...), $domains), 'export_empty_as' => 'skip', 'replace_breaks' => false, ], ]) |
/src/Symfony/Component/Translation/Bridge/Lokalise/LokaliseProvider.php:237 | 1 | $keysToUpdate[] = ['key_id' => $keyId, 'platforms' => ['web'], 'filenames' => ['web' => $this->getLokaliseFilenameFromDomain($domain), 'ios' => null, 'android' => null, 'other' => null, ], 'translations' => array_reduce($translatorBag->getCatalogues( ), static function ($carry, MessageCatalogueInterface $catalogue) use ($keyName, $domain) { /**/ } , [ ]), ] |
/src/Symfony/Component/Translation/Bridge/Lokalise/Tests/LokaliseProviderTest.php:175 | 1 | $expectedBody = json_encode(['keys' => [['key_id' => 29, 'platforms' => ['web'], 'filenames' => ['web' => 'messages.xliff', 'ios' => null, 'android' => null, 'other' => null, ], 'translations' => [['language_iso' => 'en', 'translation' => 'puppy', ], ['language_iso' => 'fr', 'translation' => 'chiot', ], ], ], ['key_id' => 92, 'platforms' => ['web'], 'filenames' => ['web' => 'validators.xliff', 'ios' => null, 'android' => null, 'other' => null, ], 'translations' => [['language_iso' => 'en', 'translation' => '{count, plural, one {# comment} other {# comments}}', ], ['language_iso' => 'fr', 'translation' => '{count, plural, one {# commentaire} other {# commentaires}}', ], ], ], ], ]) |
/src/Symfony/Component/Translation/Bridge/Lokalise/Tests/LokaliseProviderTest.php:227 | 1 | $provider = self::createProvider((new MockHttpClient([$getLanguagesResponse, $createLanguagesResponse, $getKeysIdsForMessagesDomainResponse, $getKeysIdsForValidatorsDomainResponse, $createKeysForMessagesDomainResponse, $createKeysForValidatorsDomainResponse, $updateTranslationsResponse, ]))->withOptions(['base_uri' => 'https://api.lokalise.com/api2/projects/PROJECT_ID/', 'headers' => ['X-Api-Token' => 'API_KEY'], ]), $this->getLoader( ), $this->getLogger( ), $this->getDefaultLocale( ), 'api.lokalise.com') |
/src/Symfony/Component/Translation/Bridge/Lokalise/Tests/LokaliseProviderTest.php:49 | 1 | yield [self::createProvider((new MockHttpClient( ))->withOptions(['base_uri' => 'https://example.com', 'headers' => ['X-Api-Token' => 'API_KEY'], ]), new ArrayLoader( ), new NullLogger( ), 'en', 'example.com'), 'lokalise://example.com', ] |
/src/Symfony/Component/Translation/Bridge/Lokalise/Tests/LokaliseProviderTest.php:57 | 1 | yield [self::createProvider((new MockHttpClient( ))->withOptions(['base_uri' => 'https://example.com:99', 'headers' => ['X-Api-Token' => 'API_KEY'], ]), new ArrayLoader( ), new NullLogger( ), 'en', 'example.com:99'), 'lokalise://example.com:99', ] |
/src/Symfony/Component/Cache/Marshaller/TagAwareMarshaller.php:77 | 1 | return ['value' => $this->marshaller->unmarshall(substr($value, 13 + $tagLen)), 'tags' => $tagLen ? $this->marshaller->unmarshall(substr($value, 13, $tagLen)) : [ ], 'meta' => "\0\0\0\0\0\0\0\0" === $meta ? null : $meta, ] |
/src/Symfony/Component/Intl/Timezones.php:81 | 1 | return sprintf(self::readEntry(['Meta', 'GmtFormat'], $displayLocale), sprintf(self::readEntry(['Meta', 'HourFormat' . (0 <= $offset ? 'Pos' : 'Neg')], $displayLocale), $abs / 3600, $abs / 60 % 60)) |
/src/Symfony/Component/Cache/Adapter/DoctrineDbalAdapter.php:356 | 1 | return $this->platformName = match (true) { /**/ } |
/src/Symfony/Component/Cache/Adapter/MemcachedAdapter.php:271 | 1 | return false !== $this->getClient( )->get(self::encodeKey($id)) || $this->checkResultCode(\Memcached::RES_SUCCESS === $this->client->getResultCode( )) |
/src/Symfony/Component/Translation/DataCollectorTranslator.php:126 | 1 | $this->messages[] = ['locale' => $locale, 'fallbackLocale' => $fallbackLocale, 'domain' => $domain, 'id' => $id, 'translation' => $translation, 'parameters' => $parameters, 'state' => $state, 'transChoiceNumber' => isset($parameters['%count%']) && is_numeric($parameters['%count%']) ? $parameters['%count%'] : null, ] |
/src/Symfony/Component/Translation/Util/XliffUtils.php:176 | 1 | $errors[] = ['level' => \LIBXML_ERR_WARNING == $error->level ? 'WARNING' : 'ERROR', 'code' => $error->code, 'message' => trim($error->message), 'file' => $error->file ?: 'n/a', 'line' => $error->line, 'column' => $error->column, ] |
/src/Symfony/Component/Notifier/Bridge/Twitter/TwitterTransportFactory.php:41 | 1 | return (new TwitterTransport($apiKey, $apiSecret, $accessToken, $accessSecret, $this->client, $this->dispatcher))->setHost('default' === $dsn->getHost( ) ? null : $dsn->getHost( ))->setPort($dsn->getPort( )) |
/src/Symfony/Component/Translation/PseudoLocalizationTranslator.php:177 | 1 | $trans .= $this->accents ? strtr($text, [' ' => ' ', '!' => '¡', '"' => '″', '#' => '♯', '$' => '€', '%' => '‰', '&' => '⅋', '\'' => '´', '(' => '{', ')' => '}', '*' => '⁎', '+' => '⁺', ',' => '،', '-' => '‐', '.' => '·', '/' => '⁄', '0' => '⓪', '1' => '①', '2' => '②', '3' => '③', '4' => '④', '5' => '⑤', '6' => '⑥', '7' => '⑦', '8' => '⑧', '9' => '⑨', ':' => '∶', ';' => '⁏', '<' => '≤', '=' => '≂', '>' => '≥', '?' => '¿', '@' => '՞', 'A' => 'Å', 'B' => 'Ɓ', 'C' => 'Ç', 'D' => 'Ð', 'E' => 'É', 'F' => 'Ƒ', 'G' => 'Ĝ', 'H' => 'Ĥ', 'I' => 'Î', 'J' => 'Ĵ', 'K' => 'Ķ', 'L' => 'Ļ', 'M' => 'Ṁ', 'N' => 'Ñ', 'O' => 'Ö', 'P' => 'Þ', 'Q' => 'Ǫ', 'R' => 'Ŕ', 'S' => 'Š', 'T' => 'Ţ', 'U' => 'Û', 'V' => 'Ṽ', 'W' => 'Ŵ', 'X' => 'Ẋ', 'Y' => 'Ý', 'Z' => 'Ž', '[' => '⁅', '\\' => '∖', ']' => '⁆', '^' => '˄', '_' => '‿', '`' => '‵', 'a' => 'å', 'b' => 'ƀ', 'c' => 'ç', 'd' => 'ð', 'e' => 'é', 'f' => 'ƒ', 'g' => 'ĝ', 'h' => 'ĥ', 'i' => 'î', 'j' => 'ĵ', 'k' => 'ķ', 'l' => 'ļ', 'm' => 'ɱ', 'n' => 'ñ', 'o' => 'ö', 'p' => 'þ', 'q' => 'ǫ', 'r' => 'ŕ', 's' => 'š', 't' => 'ţ', 'u' => 'û', 'v' => 'ṽ', 'w' => 'ŵ', 'x' => 'ẋ', 'y' => 'ý', 'z' => 'ž', '{' => '(', '|' => '¦', '}' => ')', '~' => '˞', ]) : $text |
/src/Symfony/Component/Validator/Tests/Constraints/NotIdenticalToValidatorTest.php:43 | 1 | return [[1, 2], ['2', 2], ['22', '333'], [new \DateTime('2001-01-01'), new \DateTime('2000-01-01')], [new \DateTime('2000-01-01'), new \DateTime('2000-01-01')], [new \DateTime('2001-01-01'), '2000-01-01'], [new \DateTime('2000-01-01'), '2000-01-01'], [new \DateTime('2001-01-01'), '2000-01-01'], [new \DateTime('2000-01-01 UTC'), '2000-01-01 UTC'], [null, 1], ] |
/src/Symfony/Component/Validator/Tests/Constraints/UniqueValidatorTest.php:160 | 1 | return ['static function' => [static fn (\stdClass $object) => [$object->name, $object->email]], 'callable with string notation' => ['Symfony\Component\Validator\Tests\Constraints\CallableClass::execute'], 'callable with static notation' => [[CallableClass::class, 'execute']], 'callable with first-class callable notation' => [CallableClass::execute(...)], 'callable with object' => [[new CallableClass( ), 'execute']], ] |
/src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTestCase.php:243 | 1 | return [[11, 10, null, '11', '10', 'bytes'], [11, 10, true, '11', '10', 'bytes'], [11, 10, false, '11', '10', 'bytes'], [ceil(1000 * 1.01), 1000, null, '1.01', '1', 'kB'], [ceil(1000 * 1.01), '1k', null, '1.01', '1', 'kB'], [ceil(1024 * 1.01), '1Ki', null, '1.01', '1', 'KiB'], [ceil(1024 * 1.01), 1024, true, '1.01', '1', 'KiB'], [ceil(1024 * 1.01 * 1000), '1024k', true, '1010', '1000', 'KiB'], [ceil(1024 * 1.01), '1Ki', true, '1.01', '1', 'KiB'], [ceil(1000 * 1.01), 1000, false, '1.01', '1', 'kB'], [ceil(1000 * 1.01), '1k', false, '1.01', '1', 'kB'], [ceil(1024 * 1.01 * 10), '10Ki', false, '10.34', '10.24', 'kB'], ] |
/src/Symfony/Component/Validator/Tests/Constraints/NotIdenticalToValidatorTest.php:83 | 1 | return [[3, '3', 3, '3', 'int'], ['a', '"a"', 'a', '"a"', 'string'], [$date, self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), $date, self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'], [$object, '2', $object, '2', __NAMESPACE__ . '\ComparisonTest_Class'], ] |
/src/Symfony/Component/Validator/Tests/Constraints/EmailValidatorTest.php:280 | 1 | return [['test@example.com test'], ['user name@example.com'], ['user name@example.com'], ['example.@example.co.uk'], ['example@example@example.co.uk'], ['(test_exampel@example.fr)'], ['example(example)example@example.co.uk'], ['.example@localhost'], ['ex\ample@localhost'], ['example@local\host'], ['example@localhost.'], ['user name@example.com'], ['username@ example . com'], ['example@(fake).com'], ['example@(fake.com'], ['username@example,com'], ['usern,ame@example.com'], ['user[na]me@example.com'], ['"""@iana.org'], ['"\"@iana.org'], ['"test"test@iana.org'], ['"test""test"@iana.org'], ['"test"."test"@iana.org'], ['"test".test@iana.org'], ['"test"' . \chr(0) . '@iana.org'], ['"test\"@iana.org'], [\chr(226) . '@iana.org'], ['test@' . \chr(226) . '.org'], ['\r\ntest@iana.org'], ['\r\n test@iana.org'], ['\r\n \r\ntest@iana.org'], ['\r\n \r\ntest@iana.org'], ['\r\n \r\n test@iana.org'], ['test@iana.org \r\n'], ['test@iana.org \r\n '], ['test@iana.org \r\n \r\n'], ['test@iana.org \r\n\r\n'], ['test@iana.org \r\n\r\n '], ['test@iana/icann.org'], ['test@foo;bar.com'], ['test;123@foobar.com'], ['test@example..com'], ['email.email@email."'], ['test@email>'], ['test@email<'], ['test@email{'], [str_repeat('x', 254) . '@example.com'], ] |
/src/Symfony/Component/Validator/Tests/Constraints/EmailValidatorTest.php:167 | 1 | return [['example'], ['example@'], ['example@localhost'], ['example@example.co..uk'], ['foo@example.com bar'], ['example@example.'], ['example@.fr'], ['@example.com'], ['example@example.com;example@example.com'], ['example@.'], [' example@example.com'], ['example@ '], [' example@example.com '], [' example @example .com '], ['example@-example.com'], [sprintf('example@%s.com', str_repeat('a', 64))], ] |
/src/Symfony/Component/Validator/Tests/Constraints/GreaterThanOrEqualValidatorTest.php:43 | 1 | return [[3, 2], [1, 1], [new \DateTime('2010/01/01'), new \DateTime('2000/01/01')], [new \DateTime('2000/01/01'), new \DateTime('2000/01/01')], [new \DateTime('2010/01/01'), '2000/01/01'], [new \DateTime('2000/01/01'), '2000/01/01'], [new \DateTime('2010/01/01 UTC'), '2000/01/01 UTC'], [new \DateTime('2000/01/01 UTC'), '2000/01/01 UTC'], ['a', 'a'], ['z', 'a'], [null, 1], ] |
/src/Symfony/Component/Validator/Tests/Constraints/IsNullValidatorTest.php:66 | 1 | return [[0, '0'], [false, 'false'], [true, 'true'], ['', '""'], ['foo bar', '"foo bar"'], [new \DateTimeImmutable( ), 'object'], [new \stdClass( ), 'object'], [[ ], 'array'], ] |
/src/Symfony/Component/Validator/Tests/Constraints/AtLeastOneOfValidatorTest.php:248 | 1 | $violations = $validator->validate(50, new AtLeastOneOf(['constraints' => [new Range(['groups' => 'adult', 'min' => 18, 'max' => 55, ]), new GreaterThan(['groups' => 'senior', 'value' => 55, ]), ], 'groups' => ['adult', 'senior'], ]), 'senior') |
/src/Symfony/Component/Validator/Tests/Constraints/AtLeastOneOfValidatorTest.php:221 | 1 | return (new ClassMetadata(Data::class))->addPropertyConstraint('foo', new NotNull(['message' => 'custom message foo']))->addPropertyConstraint('bar', new AtLeastOneOf([new NotNull(['message' => 'custom message bar']), ])) |
/src/Symfony/Component/Validator/Tests/Constraints/EqualToValidatorTest.php:64 | 1 | return [[1, '1', 2, '2', 'int'], ['22', '"22"', '333', '"333"', 'string'], [new \DateTime('2001-01-01'), self::normalizeIcuSpaces("Jan 1, 2001, 12:00\u{202F}AM"), new \DateTime('2000-01-01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'], [new \DateTime('2001-01-01'), self::normalizeIcuSpaces("Jan 1, 2001, 12:00\u{202F}AM"), '2000-01-01', self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'], [new \DateTime('2001-01-01 UTC'), self::normalizeIcuSpaces("Jan 1, 2001, 12:00\u{202F}AM"), '2000-01-01 UTC', self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'], [new ComparisonTest_Class(4), '4', new ComparisonTest_Class(5), '5', __NAMESPACE__ . '\ComparisonTest_Class'], ] |
/src/Symfony/Component/Validator/Tests/Constraints/EqualToValidatorTest.php:43 | 1 | return [[3, 3], [3, '3'], ['a', 'a'], [new \DateTime('2000-01-01'), new \DateTime('2000-01-01')], [new \DateTime('2000-01-01'), '2000-01-01'], [new \DateTime('2000-01-01 UTC'), '2000-01-01 UTC'], [new ComparisonTest_Class(5), new ComparisonTest_Class(5)], [null, 1], ] |
/src/Symfony/Component/Validator/Tests/Constraints/TypeValidatorTest.php:141 | 1 | return [['foobar', 'numeric', '"foobar"'], ['foobar', 'boolean', '"foobar"'], ['0', 'integer', '"0"'], [\NAN, 'integer', 'NAN'], [\INF, 'integer', 'INF'], ['1.5', 'float', '"1.5"'], ['1.5', 'finite-float', '"1.5"'], [\NAN, 'finite-float', 'NAN'], [\INF, 'finite-float', 'INF'], ['0', 'number', '"0"'], [\NAN, 'number', 'NAN'], ['0', 'finite-number', '"0"'], [\NAN, 'finite-number', 'NAN'], [\INF, 'finite-number', 'INF'], [12345, 'string', '12345'], [$object, 'boolean', 'object'], [$object, 'numeric', 'object'], [$object, 'integer', 'object'], [$object, 'float', 'object'], [$object, 'string', 'object'], [$object, 'resource', 'object'], [$file, 'boolean', 'resource'], [$file, 'numeric', 'resource'], [$file, 'integer', 'resource'], [$file, 'float', 'resource'], [$file, 'string', 'resource'], [$file, 'object', 'resource'], ['12a34', 'digit', '"12a34"'], ['1a#23', 'alnum', '"1a#23"'], ['abcd1', 'alpha', '"abcd1"'], ["\nabc", 'cntrl', "\"\nabc\""], ["abc\n", 'graph', "\"abc\n\""], ['abCDE', 'lower', '"abCDE"'], ['ABcde', 'upper', '"ABcde"'], ["\nabc", 'print', "\"\nabc\""], ['abc&$!', 'punct', '"abc&$!"'], ["\nabc", 'space', "\"\nabc\""], ['AR1012', 'xdigit', '"AR1012"'], ] |
/src/Symfony/Component/Validator/Tests/Constraints/TypeValidatorTest.php:78 | 1 | return [[true, 'Boolean'], [false, 'Boolean'], [true, 'boolean'], [false, 'boolean'], [true, 'bool'], [false, 'bool'], [0, 'numeric'], ['0', 'numeric'], [1.5, 'numeric'], ['1.5', 'numeric'], [0, 'integer'], [1.5, 'float'], [\NAN, 'float'], [\INF, 'float'], [1.5, 'finite-float'], [0, 'number'], [1.5, 'number'], [\INF, 'number'], [1.5, 'finite-number'], ['12345', 'string'], [[ ], 'array'], [$object, 'object'], [$object, 'stdClass'], [$file, 'resource'], ['12345', 'digit'], ['12a34', 'alnum'], ['abcde', 'alpha'], ["\n\r\t", 'cntrl'], ['arf12', 'graph'], ['abcde', 'lower'], ['ABCDE', 'upper'], ['arf12', 'print'], ['*&$()', 'punct'], ["\n\r\t", 'space'], ['AB10BC99', 'xdigit'], ] |
/src/Symfony/Component/Validator/Tests/Constraints/UniqueValidatorTest.php:81 | 1 | return [yield 'not unique booleans' => [[true, true]], yield 'not unique integers' => [[1, 2, 3, 3]], yield 'not unique floats' => [[0.1, 0.2, 0.1]], yield 'not unique string' => [['a', 'b', 'a']], yield 'not unique arrays' => [[[1, 1], [2, 3], [1, 1]]], yield 'not unique objects' => [[$object, $object]], ] |
/src/Symfony/Component/Validator/Tests/Constraints/UniqueValidatorTest.php:46 | 1 | return [yield 'null' => [[null]], yield 'empty array' => [[ ]], yield 'single integer' => [[5]], yield 'single string' => [['a']], yield 'single object' => [[new \stdClass( )]], yield 'unique booleans' => [[true, false]], yield 'unique integers' => [[1, 2, 3, 4, 5, 6]], yield 'unique floats' => [[0.1, 0.2, 0.3]], yield 'unique strings' => [['a', 'b', 'c']], yield 'unique arrays' => [[[1, 2], [2, 4], [4, 6]]], yield 'unique objects' => [[new \stdClass( ), new \stdClass( )]], ] |
/src/Symfony/Component/Validator/Tests/Constraints/CountValidatorTestCase.php:65 | 1 | return [[static::createCollection([1, 2, 3, 4, 5])], [static::createCollection([1, 2, 3, 4, 5, 6])], [static::createCollection(['a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5])], ] |
/src/Symfony/Component/Validator/Tests/Constraints/LessThanOrEqualValidatorTest.php:43 | 1 | return [[1, 2], [1, 1], [new \DateTime('2000-01-01'), new \DateTime('2000-01-01')], [new \DateTime('2000-01-01'), new \DateTime('2020-01-01')], [new \DateTime('2000-01-01'), '2000-01-01'], [new \DateTime('2000-01-01'), '2020-01-01'], [new \DateTime('2000-01-01 UTC'), '2000-01-01 UTC'], [new \DateTime('2000-01-01 UTC'), '2020-01-01 UTC'], [new ComparisonTest_Class(4), new ComparisonTest_Class(5)], [new ComparisonTest_Class(5), new ComparisonTest_Class(5)], ['a', 'a'], ['a', 'z'], [null, 1], ] |
/src/Symfony/Component/Validator/Tests/Constraints/LessThanOrEqualValidatorTest.php:70 | 1 | return [[2, '2', 1, '1', 'int'], [new \DateTime('2010-01-01'), self::normalizeIcuSpaces("Jan 1, 2010, 12:00\u{202F}AM"), new \DateTime('2000-01-01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'], [new \DateTime('2010-01-01'), self::normalizeIcuSpaces("Jan 1, 2010, 12:00\u{202F}AM"), '2000-01-01', self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'], [new \DateTime('2010-01-01 UTC'), self::normalizeIcuSpaces("Jan 1, 2010, 12:00\u{202F}AM"), '2000-01-01 UTC', self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'], [new ComparisonTest_Class(5), '5', new ComparisonTest_Class(4), '4', __NAMESPACE__ . '\ComparisonTest_Class'], ['c', '"c"', 'b', '"b"', 'string'], ] |
/src/Symfony/Component/Validator/Tests/Constraints/CollectionTest.php:128 | 1 | $constraint = new Collection(['fields' => ['fields' => [new Required( )], 'properties' => [new Required( )], 'catalog' => [new Optional( )], ], 'allowExtraFields' => true, 'extraFieldsMessage' => 'foo bar baz', ]) |
/src/Symfony/Component/Validator/Tests/Constraints/GreaterThanValidatorTest.php:43 | 1 | return [[2, 1], [new \DateTime('2005/01/01'), new \DateTime('2001/01/01')], [new \DateTime('2005/01/01'), '2001/01/01'], [new \DateTime('2005/01/01 UTC'), '2001/01/01 UTC'], [new ComparisonTest_Class(5), new ComparisonTest_Class(4)], ['333', '22'], [null, 1], ] |
/src/Symfony/Component/Validator/Tests/Constraints/GreaterThanValidatorTest.php:63 | 1 | return [[1, '1', 2, '2', 'int'], [2, '2', 2, '2', 'int'], [new \DateTime('2000/01/01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), new \DateTime('2005/01/01'), self::normalizeIcuSpaces("Jan 1, 2005, 12:00\u{202F}AM"), 'DateTime'], [new \DateTime('2000/01/01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), new \DateTime('2000/01/01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'], [new \DateTime('2000/01/01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), '2005/01/01', self::normalizeIcuSpaces("Jan 1, 2005, 12:00\u{202F}AM"), 'DateTime'], [new \DateTime('2000/01/01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), '2000/01/01', self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'], [new \DateTime('2000/01/01 UTC'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), '2005/01/01 UTC', self::normalizeIcuSpaces("Jan 1, 2005, 12:00\u{202F}AM"), 'DateTime'], [new \DateTime('2000/01/01 UTC'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), '2000/01/01 UTC', self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), 'DateTime'], [new ComparisonTest_Class(4), '4', new ComparisonTest_Class(5), '5', __NAMESPACE__ . '\ComparisonTest_Class'], [new ComparisonTest_Class(5), '5', new ComparisonTest_Class(5), '5', __NAMESPACE__ . '\ComparisonTest_Class'], ['22', '"22"', '333', '"333"', 'string'], ['22', '"22"', '22', '"22"', 'string'], ] |
/src/Symfony/Component/Validator/Tests/DependencyInjection/AddConstraintValidatorsPassTest.php:40 | 1 | $expected = (new Definition(ServiceLocator::class, [[Validator1::class => new ServiceClosureArgument(new Reference('my_constraint_validator_service1')), 'my_constraint_validator_alias1' => new ServiceClosureArgument(new Reference('my_constraint_validator_service1')), Validator2::class => new ServiceClosureArgument(new Reference('my_constraint_validator_service2')), ]]))->addTag('container.service_locator') |
/src/Symfony/Component/Validator/Command/DebugCommand.php:182 | 1 | $data[] = ['class' => 'property options', 'groups' => [ ], 'options' => ['cascadeStrategy' => CascadingStrategy::CASCADE === $metadata->getCascadingStrategy( ) ? 'Cascade' : 'None', 'autoMappingStrategy' => $autoMapingStrategy, 'traversalStrategy' => $traversalStrategy, ], ] |
/src/Symfony/Component/Validator/Tests/Constraints/GreaterThanOrEqualValidatorTest.php:68 | 1 | return [[1, '1', 2, '2', 'int'], [new \DateTime('2000/01/01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), new \DateTime('2005/01/01'), self::normalizeIcuSpaces("Jan 1, 2005, 12:00\u{202F}AM"), 'DateTime'], [new \DateTime('2000/01/01'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), '2005/01/01', self::normalizeIcuSpaces("Jan 1, 2005, 12:00\u{202F}AM"), 'DateTime'], [new \DateTime('2000/01/01 UTC'), self::normalizeIcuSpaces("Jan 1, 2000, 12:00\u{202F}AM"), '2005/01/01 UTC', self::normalizeIcuSpaces("Jan 1, 2005, 12:00\u{202F}AM"), 'DateTime'], ['b', '"b"', 'c', '"c"', 'string'], ] |
/src/Symfony/Component/Validator/Tests/Constraints/SequentiallyValidatorTest.php:71 | 1 | $violations = $validator->validate(50, new Sequentially(['constraints' => [new GreaterThan(['groups' => 'senior', 'value' => 55, ]), new Range(['groups' => 'adult', 'min' => 18, 'max' => 55, ]), ], 'groups' => ['adult', 'senior'], ]), 'adult') |
/src/Symfony/Component/Validator/Tests/Constraints/IdenticalToValidatorTest.php:83 | 1 | return [[1, '1', 2, '2', 'int'], [2, '2', '2', '"2"', 'string'], ['22', '"22"', '333', '"333"', 'string'], [new \DateTime('2001-01-01'), self::normalizeIcuSpaces("Jan 1, 2001, 12:00\u{202F}AM"), new \DateTime('2001-01-01'), self::normalizeIcuSpaces("Jan 1, 2001, 12:00\u{202F}AM"), 'DateTime'], [new \DateTime('2001-01-01'), self::normalizeIcuSpaces("Jan 1, 2001, 12:00\u{202F}AM"), new \DateTime('1999-01-01'), self::normalizeIcuSpaces("Jan 1, 1999, 12:00\u{202F}AM"), 'DateTime'], [new ComparisonTest_Class(4), '4', new ComparisonTest_Class(5), '5', __NAMESPACE__ . '\ComparisonTest_Class'], ] |
/src/Symfony/Component/Validator/Tests/Constraints/RangeValidatorTest.php:290 | 1 | $tests = [[new \DateTime('March 10, 2014')], [new \DateTime('March 15, 2014')], [new \DateTime('March 20, 2014')], [new \DateTimeImmutable('March 10, 2014')], [new \DateTimeImmutable('March 15, 2014')], [new \DateTimeImmutable('March 20, 2014')], ] |
/src/Symfony/Component/Validator/Tests/Constraints/RangeValidatorTest.php:311 | 1 | $tests = [[new \DateTime('March 20, 2013'), self::normalizeIcuSpaces("Mar 20, 2013, 12:00\u{202F}AM")], [new \DateTime('March 9, 2014'), self::normalizeIcuSpaces("Mar 9, 2014, 12:00\u{202F}AM")], [new \DateTimeImmutable('March 20, 2013'), self::normalizeIcuSpaces("Mar 20, 2013, 12:00\u{202F}AM")], [new \DateTimeImmutable('March 9, 2014'), self::normalizeIcuSpaces("Mar 9, 2014, 12:00\u{202F}AM")], ] |
/src/Symfony/Component/Validator/Tests/Constraints/RangeValidatorTest.php:330 | 1 | $tests = [[new \DateTime('March 21, 2014'), self::normalizeIcuSpaces("Mar 21, 2014, 12:00\u{202F}AM")], [new \DateTime('March 9, 2015'), self::normalizeIcuSpaces("Mar 9, 2015, 12:00\u{202F}AM")], [new \DateTimeImmutable('March 21, 2014'), self::normalizeIcuSpaces("Mar 21, 2014, 12:00\u{202F}AM")], [new \DateTimeImmutable('March 9, 2015'), self::normalizeIcuSpaces("Mar 9, 2015, 12:00\u{202F}AM")], ] |
/src/Symfony/Component/Validator/Tests/Constraints/RangeValidatorTest.php:601 | 1 | return [['The min value "foo" could not be converted to a "DateTimeImmutable" instance in the "Symfony\Component\Validator\Constraints\Range" constraint.', new \DateTimeImmutable( ), 'foo', null], ['The min value "foo" could not be converted to a "DateTime" instance in the "Symfony\Component\Validator\Constraints\Range" constraint.', new \DateTime( ), 'foo', null], ['The max value "foo" could not be converted to a "DateTimeImmutable" instance in the "Symfony\Component\Validator\Constraints\Range" constraint.', new \DateTimeImmutable( ), null, 'foo'], ['The max value "foo" could not be converted to a "DateTime" instance in the "Symfony\Component\Validator\Constraints\Range" constraint.', new \DateTime( ), null, 'foo'], ['The min value "bar" could not be converted to a "DateTimeImmutable" instance in the "Symfony\Component\Validator\Constraints\Range" constraint.', new \DateTimeImmutable( ), 'bar', 'ccc'], ] |
/src/Symfony/Component/Validator/Tests/Constraints/CountValidatorTestCase.php:47 | 1 | return [[static::createCollection([1])], [static::createCollection([1, 2])], [static::createCollection([1, 2, 3])], [static::createCollection(['a' => 1, 'b' => 2, 'c' => 3])], ] |
/src/Symfony/Component/Security/Http/Tests/Firewall/LogoutListenerTest.php:192 | 1 | $listener = new LogoutListener($tokenStorage = $this->getTokenStorage( ), $httpUtils = $this->getHttpUtils( ), $eventDispatcher ?? $this->getEventDispatcher( ), $options = ['csrf_parameter' => '_csrf_token', 'csrf_token_id' => 'logout', 'logout_path' => '/logout', 'target_url' => '/', ], $tokenManager) |
/src/Symfony/Component/Security/Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php:80 | 1 | return ['default' => [Request::create('/'), [ ], '/', ], 'forced target path' => [Request::create('/'), ['always_use_default_target_path' => true, 'default_target_path' => '/dashboard'], '/dashboard', ], 'target path as query string' => [Request::create('/?_target_path=/dashboard'), [ ], '/dashboard', ], 'target path name as query string is customized' => [Request::create('/?_my_target_path=/dashboard'), ['target_path_parameter' => '_my_target_path'], '/dashboard', ], 'target path name as query string is customized and nested' => [Request::create('/?_target_path[value]=/dashboard'), ['target_path_parameter' => '_target_path[value]'], '/dashboard', ], 'target path as referer' => [Request::create('/', 'GET', [ ], [ ], [ ], ['HTTP_REFERER' => 'http://localhost/dashboard']), ['use_referer' => true], '/dashboard', ], 'target path as referer is ignored if not configured' => [Request::create('/', 'GET', [ ], [ ], [ ], ['HTTP_REFERER' => 'http://localhost/dashboard']), [ ], '/', ], 'target path as referer when referer not set' => [Request::create('/'), ['use_referer' => true], '/', ], 'target path as referer when referer is ?' => [Request::create('/', 'GET', [ ], [ ], [ ], ['HTTP_REFERER' => '?']), ['use_referer' => true], '/', ], 'target path should be different than login URL' => [Request::create('/', 'GET', [ ], [ ], [ ], ['HTTP_REFERER' => 'http://localhost/login']), ['use_referer' => true, 'login_path' => '/login'], '/', ], 'target path should be different than login URL (query string does not matter)' => [Request::create('/', 'GET', [ ], [ ], [ ], ['HTTP_REFERER' => 'http://localhost/login?t=1&p=2']), ['use_referer' => true, 'login_path' => '/login'], '/', ], 'target path should be different than login URL (login_path as a route)' => [Request::create('/', 'GET', [ ], [ ], [ ], ['HTTP_REFERER' => 'http://localhost/login?t=1&p=2']), ['use_referer' => true, 'login_path' => 'login_route'], '/', ], ] |
/src/Symfony/Component/Security/Http/Tests/Firewall/ExceptionListenerTest.php:174 | 1 | return [[new AccessDeniedException( )], [new \LogicException('random', 0, $e = new AccessDeniedException( )), $e], [new \LogicException('random', 0, $e = new AccessDeniedException('embed', new AccessDeniedException( ))), $e], [new \LogicException('random', 0, $e = new AccessDeniedException('embed', new AuthenticationException( ))), $e], [new AccessDeniedException('random', new \LogicException( ))], ] |
/src/Symfony/Component/Security/Http/Tests/Firewall/ExceptionListenerTest.php:208 | 1 | return new ExceptionListener($tokenStorage ?? $this->createMock(TokenStorageInterface::class), $trustResolver ?? $this->createMock(AuthenticationTrustResolverInterface::class), $httpUtils ?? $this->createMock(HttpUtils::class), 'key', $authenticationEntryPoint, $errorPage, $accessDeniedHandler) |
/src/Symfony/Component/Security/Http/Tests/AccessToken/Oidc/OidcTokenHandlerTest.php:160 | 1 | return (new CompactSerializer( ))->serialize((new JWSBuilder(new AlgorithmManager([new ES256( ), ])))->create( )->withPayload($payload)->addSignature(self::getJWK( ), ['alg' => 'ES256'])->build( )) |
/src/Symfony/Component/Security/Http/Tests/Firewall/ExceptionListenerTest.php:69 | 1 | return [[$e = new AuthenticationException( ), new HttpException(Response::HTTP_UNAUTHORIZED, '', $e, [ ], 0)], [new \LogicException('random', 0, $e = new AuthenticationException( )), new HttpException(Response::HTTP_UNAUTHORIZED, '', $e, [ ], 0)], [new \LogicException('random', 0, $e = new AuthenticationException('embed', 0, new AuthenticationException( ))), new HttpException(Response::HTTP_UNAUTHORIZED, 'embed', $e, [ ], 0)], [new \LogicException('random', 0, $e = new AuthenticationException('embed', 0, new AccessDeniedException( ))), new HttpException(Response::HTTP_UNAUTHORIZED, 'embed', $e, [ ], 0)], [$e = new AuthenticationException('random', 0, new \LogicException( )), new HttpException(Response::HTTP_UNAUTHORIZED, 'random', $e, [ ], 0)], ] |
/src/Symfony/Component/Security/Http/Tests/AccessToken/Oidc/OidcTokenHandlerTest.php:104 | 1 | yield [self::buildJWS(json_encode(['iat' => time( ) - 3600, 'nbf' => time( ) - 3600, 'exp' => time( ) - 3590, 'iss' => 'https://www.example.com', 'aud' => self::AUDIENCE, 'sub' => 'e21bf182-1538-406e-8ccb-e25a17aba39f', 'email' => 'foo@example.com', ])), ] |
/src/Symfony/Component/Security/Http/Tests/AccessToken/Oidc/OidcTokenHandlerTest.php:116 | 1 | yield [self::buildJWS(json_encode(['iat' => time( ), 'nbf' => time( ), 'exp' => time( ) + 3590, 'iss' => 'https://www.example.com', 'aud' => 'invalid', 'sub' => 'e21bf182-1538-406e-8ccb-e25a17aba39f', 'email' => 'foo@example.com', ])), ] |
/src/Symfony/Component/ExpressionLanguage/Tests/LexerTest.php:56 | 1 | return [[[new Token('name', 'a', 3)], ' a ', ], [[new Token('name', 'a', 1)], 'a', ], [[new Token('string', 'foo', 1)], '"foo"', ], [[new Token('number', 3, 1)], '3', ], [[new Token('operator', '+', 1)], '+', ], [[new Token('punctuation', '.', 1)], '.', ], [[new Token('punctuation', '(', 1), new Token('number', 3, 2), new Token('operator', '+', 4), new Token('number', 5, 6), new Token('punctuation', ')', 7), new Token('operator', '~', 9), new Token('name', 'foo', 11), new Token('punctuation', '(', 14), new Token('string', 'bar', 15), new Token('punctuation', ')', 20), new Token('punctuation', '.', 21), new Token('name', 'baz', 22), new Token('punctuation', '[', 25), new Token('number', 4, 26), new Token('punctuation', ']', 27), new Token('operator', '-', 29), new Token('number', 1990, 31), ], '(3 + 5) ~ foo("bar").baz[4] - 1.99E+3', ], [[new Token('operator', '..', 1)], '..', ], [[new Token('number', 23, 1), new Token('operator', '..', 3), new Token('number', 26, 5), ], '23..26', ], [[new Token('string', '#foo', 1)], "'#foo'", ], [[new Token('string', '#foo', 1)], '"#foo"', ], [[new Token('name', 'foo', 1), new Token('punctuation', '.', 4), new Token('name', 'not', 5), new Token('operator', 'in', 9), new Token('punctuation', '[', 12), new Token('name', 'bar', 13), new Token('punctuation', ']', 16), ], 'foo.not in [bar]', ], [[new Token('number', 0.787, 1)], '0.787', ], [[new Token('number', 0.1234, 1)], '.1234', ], [[new Token('number', 188165.1178, 1)], '188_165.1_178', ], [[new Token('operator', '-', 1), new Token('number', 7189000000.0, 2), ], '-.7_189e+10', ], ] |
/src/Symfony/Component/ExpressionLanguage/Tests/ParserTest.php:60 | 1 | return [[new Node\NameNode('a'), 'a', ['a'], ], [new Node\ConstantNode('a'), '"a"', ], [new Node\ConstantNode(3), '3', ], [new Node\ConstantNode(false), 'false', ], [new Node\ConstantNode(true), 'true', ], [new Node\ConstantNode(null), 'null', ], [new Node\UnaryNode('-', new Node\ConstantNode(3)), '-3', ], [new Node\BinaryNode('-', new Node\ConstantNode(3), new Node\ConstantNode(3)), '3 - 3', ], [new Node\BinaryNode('*', new Node\BinaryNode('-', new Node\ConstantNode(3), new Node\ConstantNode(3)), new Node\ConstantNode(2)), '(3 - 3) * 2', ], [new Node\GetAttrNode(new Node\NameNode('foo'), new Node\ConstantNode('bar', true), new Node\ArgumentsNode( ), Node\GetAttrNode::PROPERTY_CALL), 'foo.bar', ['foo'], ], [new Node\GetAttrNode(new Node\NameNode('foo'), new Node\ConstantNode('bar', true), new Node\ArgumentsNode( ), Node\GetAttrNode::METHOD_CALL), 'foo.bar()', ['foo'], ], [new Node\GetAttrNode(new Node\NameNode('foo'), new Node\ConstantNode('not', true), new Node\ArgumentsNode( ), Node\GetAttrNode::METHOD_CALL), 'foo.not()', ['foo'], ], [new Node\GetAttrNode(new Node\NameNode('foo'), new Node\ConstantNode('bar', true), $arguments, Node\GetAttrNode::METHOD_CALL), 'foo.bar("arg1", 2, true)', ['foo'], ], [new Node\GetAttrNode(new Node\NameNode('foo'), new Node\ConstantNode(3), new Node\ArgumentsNode( ), Node\GetAttrNode::ARRAY_CALL), 'foo[3]', ['foo'], ], [new Node\ConditionalNode(new Node\ConstantNode(true), new Node\ConstantNode(true), new Node\ConstantNode(false)), 'true ? true : false', ], [new Node\BinaryNode('matches', new Node\ConstantNode('foo'), new Node\ConstantNode('/foo/')), '"foo" matches "/foo/"', ], [new Node\BinaryNode('starts with', new Node\ConstantNode('foo'), new Node\ConstantNode('f')), '"foo" starts with "f"', ], [new Node\BinaryNode('ends with', new Node\ConstantNode('foo'), new Node\ConstantNode('f')), '"foo" ends with "f"', ], [new Node\BinaryNode('contains', new Node\ConstantNode('foo'), new Node\ConstantNode('f')), '"foo" contains "f"', ], [new Node\GetAttrNode(new Node\NameNode('foo'), new Node\ConstantNode('bar', true, true), new Node\ArgumentsNode( ), Node\GetAttrNode::PROPERTY_CALL), 'foo?.bar', ['foo'], ], [new Node\GetAttrNode(new Node\NameNode('foo'), new Node\ConstantNode('bar', true, true), new Node\ArgumentsNode( ), Node\GetAttrNode::METHOD_CALL), 'foo?.bar()', ['foo'], ], [new Node\GetAttrNode(new Node\NameNode('foo'), new Node\ConstantNode('not', true, true), new Node\ArgumentsNode( ), Node\GetAttrNode::METHOD_CALL), 'foo?.not()', ['foo'], ], [new Node\NullCoalesceNode(new Node\GetAttrNode(new Node\NameNode('foo'), new Node\ConstantNode('bar', true), new Node\ArgumentsNode( ), Node\GetAttrNode::PROPERTY_CALL), new Node\ConstantNode('default')), 'foo.bar ?? "default"', ['foo'], ], [new Node\NullCoalesceNode(new Node\GetAttrNode(new Node\NameNode('foo'), new Node\ConstantNode('bar'), new Node\ArgumentsNode( ), Node\GetAttrNode::ARRAY_CALL), new Node\ConstantNode('default')), 'foo["bar"] ?? "default"', ['foo'], ], [self::createGetAttrNode(self::createGetAttrNode(self::createGetAttrNode(self::createGetAttrNode(new Node\NameNode('foo'), 'bar', Node\GetAttrNode::METHOD_CALL), 'foo', Node\GetAttrNode::METHOD_CALL), 'baz', Node\GetAttrNode::PROPERTY_CALL), '3', Node\GetAttrNode::ARRAY_CALL), 'foo.bar().foo().baz[3]', ['foo'], ], [new Node\NameNode('foo'), 'bar', ['foo' => 'bar'], ], [new Node\BinaryNode('in', new Node\GetAttrNode(new Node\NameNode('foo'), new Node\ConstantNode('not', true), new Node\ArgumentsNode( ), Node\GetAttrNode::PROPERTY_CALL), $arrayNode), 'foo.not in [bar]', ['foo', 'bar'], ], [new Node\BinaryNode('or', new Node\UnaryNode('not', new Node\NameNode('foo')), new Node\GetAttrNode(new Node\NameNode('foo'), new Node\ConstantNode('not', true), new Node\ArgumentsNode( ), Node\GetAttrNode::PROPERTY_CALL)), 'not foo or foo.not', ['foo'], ], [new Node\BinaryNode('..', new Node\ConstantNode(0), new Node\ConstantNode(3)), '0..3', ], [new Node\BinaryNode('+', new Node\ConstantNode(0), new Node\ConstantNode(0.1)), '0+.1', ], ] |
/src/Symfony/Component/Security/Http/Authenticator/Debug/TraceableAuthenticator.php:44 | 1 | return ['supports' => true, 'passport' => $this->passport, 'duration' => $this->duration, 'stub' => $this->stub ??= class_exists(ClassStub::class) ? new ClassStub($this->authenticator::class) : $this->authenticator::class, 'authenticated' => $this->authenticated, 'badges' => array_map(static function (BadgeInterface $badge) : array { /**/ } , $this->passport?->getBadges( ) ?? [ ], ), ] |
/src/Symfony/Component/Security/Http/LoginLink/LoginLinkNotification.php:46 | 1 | $email = NotificationEmail::asPublicEmail( )->to($recipient->getEmail( ))->subject($this->getSubject( ))->content($this->getContent( ) ?: $this->getDefaultContent('button below'))->action('Sign in', $this->loginLinkDetails->getUrl( )) |
/src/Symfony/Component/Security/Http/Tests/EventListener/CookieClearingLogoutListenerTest.php:30 | 1 | $listener = new CookieClearingLogoutListener(['foo' => ['path' => '/foo', 'domain' => 'foo.foo', 'secure' => true, 'samesite' => Cookie::SAMESITE_STRICT, 'partitioned' => true], 'foo2' => ['path' => null, 'domain' => null]]) |
/src/Symfony/Component/Security/Http/Authenticator/FormLoginAuthenticator.php:75 | 1 | return ($this->options['post_only'] ? $request->isMethod('POST') : true) && $this->httpUtils->checkRequestPath($request, $this->options['check_path']) && ($this->options['form_only'] ? 'form' === $request->getContentTypeFormat( ) : true) |
/src/Symfony/Component/Security/Http/Tests/EventListener/CheckCredentialsListenerTest.php:137 | 2 | $passport = $this->getMockBuilder(Passport::class)->onlyMethods(['addBadge'])->setConstructorArgs([new UserBadge('wouter', fn ( ) => $this->user), new PasswordCredentials('ThePa$$word'), [new PasswordUpgradeBadge('ThePa$$word')]])->getMock( ) |
/src/Symfony/Component/Security/Http/Tests/EventListener/CheckCredentialsListenerTest.php:154 | 2 | $passport = $this->getMockBuilder(Passport::class)->onlyMethods(['addBadge'])->setConstructorArgs([new UserBadge('wouter', fn ( ) => $this->user), new PasswordCredentials('ThePa$$word'), [new PasswordUpgradeBadge('ThePa$$word')]])->getMock( ) |
/src/Symfony/Component/ExpressionLanguage/Tests/Node/UnaryNodeTest.php:31 | 1 | return [['(-1)', new UnaryNode('-', new ConstantNode(1))], ['(+3)', new UnaryNode('+', new ConstantNode(3))], ['(!true)', new UnaryNode('!', new ConstantNode(true))], ['(!true)', new UnaryNode('not', new ConstantNode(true))], ] |
/src/Symfony/Component/ExpressionLanguage/Tests/Node/UnaryNodeTest.php:21 | 1 | return [[-1, new UnaryNode('-', new ConstantNode(1))], [3, new UnaryNode('+', new ConstantNode(3))], [false, new UnaryNode('!', new ConstantNode(true))], [false, new UnaryNode('not', new ConstantNode(true))], ] |
/src/Symfony/Component/ExpressionLanguage/Tests/Node/ConstantNodeTest.php:46 | 1 | return [['false', new ConstantNode(false)], ['true', new ConstantNode(true)], ['null', new ConstantNode(null)], ['3', new ConstantNode(3)], ['3.3', new ConstantNode(3.3)], ['"foo"', new ConstantNode('foo')], ['foo', new ConstantNode('foo', true)], ['{0: 1, "b": "a", 1: true}', new ConstantNode([1, 'b' => 'a', true])], ['{"a\\"b": "c", "a\\\\b": "d"}', new ConstantNode(['a"b' => 'c', 'a\\b' => 'd'])], ['["c", "d"]', new ConstantNode(['c', 'd'])], ['{"a": ["b"]}', new ConstantNode(['a' => ['b']])], ] |
/src/Symfony/Component/ExpressionLanguage/Tests/Node/ConstantNodeTest.php:33 | 1 | return [['false', new ConstantNode(false)], ['true', new ConstantNode(true)], ['null', new ConstantNode(null)], ['3', new ConstantNode(3)], ['3.3', new ConstantNode(3.3)], ['"foo"', new ConstantNode('foo')], ['[0 => 1, "b" => "a"]', new ConstantNode([1, 'b' => 'a'])], ] |
/src/Symfony/Component/ExpressionLanguage/Tests/Node/ConstantNodeTest.php:20 | 1 | return [[false, new ConstantNode(false)], [true, new ConstantNode(true)], [null, new ConstantNode(null)], [3, new ConstantNode(3)], [3.3, new ConstantNode(3.3)], ['foo', new ConstantNode('foo')], [[1, 'b' => 'a'], new ConstantNode([1, 'b' => 'a'])], ] |
/src/Symfony/Component/ExpressionLanguage/Tests/Node/GetAttrNodeTest.php:49 | 1 | return [['foo[0]', new GetAttrNode(new NameNode('foo'), new ConstantNode(0), self::getArrayNode( ), GetAttrNode::ARRAY_CALL)], ['foo["b"]', new GetAttrNode(new NameNode('foo'), new ConstantNode('b'), self::getArrayNode( ), GetAttrNode::ARRAY_CALL)], ['foo.foo', new GetAttrNode(new NameNode('foo'), new NameNode('foo'), self::getArrayNode( ), GetAttrNode::PROPERTY_CALL), ['foo' => new Obj( )]], ['foo.foo({"b": "a", 0: "b"})', new GetAttrNode(new NameNode('foo'), new NameNode('foo'), self::getArrayNode( ), GetAttrNode::METHOD_CALL), ['foo' => new Obj( )]], ['foo[index]', new GetAttrNode(new NameNode('foo'), new NameNode('index'), self::getArrayNode( ), GetAttrNode::ARRAY_CALL)], ] |
/src/Symfony/Component/ExpressionLanguage/Tests/Node/GetAttrNodeTest.php:36 | 1 | return [['$foo[0]', new GetAttrNode(new NameNode('foo'), new ConstantNode(0), self::getArrayNode( ), GetAttrNode::ARRAY_CALL)], ['$foo["b"]', new GetAttrNode(new NameNode('foo'), new ConstantNode('b'), self::getArrayNode( ), GetAttrNode::ARRAY_CALL)], ['$foo->foo', new GetAttrNode(new NameNode('foo'), new ConstantNode('foo'), self::getArrayNode( ), GetAttrNode::PROPERTY_CALL), ['foo' => new Obj( )]], ['$foo->foo(["b" => "a", 0 => "b"])', new GetAttrNode(new NameNode('foo'), new ConstantNode('foo'), self::getArrayNode( ), GetAttrNode::METHOD_CALL), ['foo' => new Obj( )]], ['$foo[$index]', new GetAttrNode(new NameNode('foo'), new NameNode('index'), self::getArrayNode( ), GetAttrNode::ARRAY_CALL)], ] |
/src/Symfony/Component/ExpressionLanguage/Tests/Node/GetAttrNodeTest.php:23 | 1 | return [['b', new GetAttrNode(new NameNode('foo'), new ConstantNode(0), self::getArrayNode( ), GetAttrNode::ARRAY_CALL), ['foo' => ['b' => 'a', 'b']]], ['a', new GetAttrNode(new NameNode('foo'), new ConstantNode('b'), self::getArrayNode( ), GetAttrNode::ARRAY_CALL), ['foo' => ['b' => 'a', 'b']]], ['bar', new GetAttrNode(new NameNode('foo'), new ConstantNode('foo'), self::getArrayNode( ), GetAttrNode::PROPERTY_CALL), ['foo' => new Obj( )]], ['baz', new GetAttrNode(new NameNode('foo'), new ConstantNode('foo'), self::getArrayNode( ), GetAttrNode::METHOD_CALL), ['foo' => new Obj( )]], ['a', new GetAttrNode(new NameNode('foo'), new NameNode('index'), self::getArrayNode( ), GetAttrNode::ARRAY_CALL), ['foo' => ['b' => 'a', 'b'], 'index' => 'b']], ] |
/src/Symfony/Component/Uid/AbstractUid.php:109 | 1 | $uid = sprintf('%02s%04s%04s%04s%04s%04s%04s', base_convert(substr($uid, 0, 2), 16, 32), base_convert(substr($uid, 2, 5), 16, 32), base_convert(substr($uid, 7, 5), 16, 32), base_convert(substr($uid, 12, 5), 16, 32), base_convert(substr($uid, 17, 5), 16, 32), base_convert(substr($uid, 22, 5), 16, 32), base_convert(substr($uid, 27, 5), 16, 32)) |
/src/Symfony/Component/ExpressionLanguage/Tests/Node/ConditionalNodeTest.php:37 | 1 | return [['(true ? 1 : 2)', new ConditionalNode(new ConstantNode(true), new ConstantNode(1), new ConstantNode(2))], ['(false ? 1 : 2)', new ConditionalNode(new ConstantNode(false), new ConstantNode(1), new ConstantNode(2))], ] |
/src/Symfony/Component/ExpressionLanguage/Tests/Node/ConditionalNodeTest.php:29 | 1 | return [['((true) ? (1) : (2))', new ConditionalNode(new ConstantNode(true), new ConstantNode(1), new ConstantNode(2))], ['((false) ? (1) : (2))', new ConditionalNode(new ConstantNode(false), new ConstantNode(1), new ConstantNode(2))], ] |
/src/Symfony/Component/ExpressionLanguage/Tests/Node/ConditionalNodeTest.php:21 | 1 | return [[1, new ConditionalNode(new ConstantNode(true), new ConstantNode(1), new ConstantNode(2))], [2, new ConditionalNode(new ConstantNode(false), new ConstantNode(1), new ConstantNode(2))], ] |
/src/Symfony/Component/ExpressionLanguage/Tests/Node/BinaryNodeTest.php:136 | 1 | return [['(true or false)', new BinaryNode('or', new ConstantNode(true), new ConstantNode(false))], ['(true || false)', new BinaryNode('||', new ConstantNode(true), new ConstantNode(false))], ['(true and false)', new BinaryNode('and', new ConstantNode(true), new ConstantNode(false))], ['(true && false)', new BinaryNode('&&', new ConstantNode(true), new ConstantNode(false))], ['(2 & 4)', new BinaryNode('&', new ConstantNode(2), new ConstantNode(4))], ['(2 | 4)', new BinaryNode('|', new ConstantNode(2), new ConstantNode(4))], ['(2 ^ 4)', new BinaryNode('^', new ConstantNode(2), new ConstantNode(4))], ['(1 < 2)', new BinaryNode('<', new ConstantNode(1), new ConstantNode(2))], ['(1 <= 2)', new BinaryNode('<=', new ConstantNode(1), new ConstantNode(2))], ['(1 <= 1)', new BinaryNode('<=', new ConstantNode(1), new ConstantNode(1))], ['(1 > 2)', new BinaryNode('>', new ConstantNode(1), new ConstantNode(2))], ['(1 >= 2)', new BinaryNode('>=', new ConstantNode(1), new ConstantNode(2))], ['(1 >= 1)', new BinaryNode('>=', new ConstantNode(1), new ConstantNode(1))], ['(true === true)', new BinaryNode('===', new ConstantNode(true), new ConstantNode(true))], ['(true !== true)', new BinaryNode('!==', new ConstantNode(true), new ConstantNode(true))], ['(2 == 1)', new BinaryNode('==', new ConstantNode(2), new ConstantNode(1))], ['(2 != 1)', new BinaryNode('!=', new ConstantNode(2), new ConstantNode(1))], ['(1 - 2)', new BinaryNode('-', new ConstantNode(1), new ConstantNode(2))], ['(1 + 2)', new BinaryNode('+', new ConstantNode(1), new ConstantNode(2))], ['(2 * 2)', new BinaryNode('*', new ConstantNode(2), new ConstantNode(2))], ['(2 / 2)', new BinaryNode('/', new ConstantNode(2), new ConstantNode(2))], ['(5 % 2)', new BinaryNode('%', new ConstantNode(5), new ConstantNode(2))], ['(5 ** 2)', new BinaryNode('**', new ConstantNode(5), new ConstantNode(2))], ['("a" ~ "b")', new BinaryNode('~', new ConstantNode('a'), new ConstantNode('b'))], ['("a" in ["a", "b"])', new BinaryNode('in', new ConstantNode('a'), $array)], ['("c" in ["a", "b"])', new BinaryNode('in', new ConstantNode('c'), $array)], ['("c" not in ["a", "b"])', new BinaryNode('not in', new ConstantNode('c'), $array)], ['("a" not in ["a", "b"])', new BinaryNode('not in', new ConstantNode('a'), $array)], ['(1 .. 3)', new BinaryNode('..', new ConstantNode(1), new ConstantNode(3))], ['("abc" matches "/^[a-z]+$/")', new BinaryNode('matches', new ConstantNode('abc'), new ConstantNode('/^[a-z]+$/'))], ] |
/src/Symfony/Component/ExpressionLanguage/Tests/Node/BinaryNodeTest.php:84 | 1 | return [['(true || false)', new BinaryNode('or', new ConstantNode(true), new ConstantNode(false))], ['(true || false)', new BinaryNode('||', new ConstantNode(true), new ConstantNode(false))], ['(true && false)', new BinaryNode('and', new ConstantNode(true), new ConstantNode(false))], ['(true && false)', new BinaryNode('&&', new ConstantNode(true), new ConstantNode(false))], ['(2 & 4)', new BinaryNode('&', new ConstantNode(2), new ConstantNode(4))], ['(2 | 4)', new BinaryNode('|', new ConstantNode(2), new ConstantNode(4))], ['(2 ^ 4)', new BinaryNode('^', new ConstantNode(2), new ConstantNode(4))], ['(1 < 2)', new BinaryNode('<', new ConstantNode(1), new ConstantNode(2))], ['(1 <= 2)', new BinaryNode('<=', new ConstantNode(1), new ConstantNode(2))], ['(1 <= 1)', new BinaryNode('<=', new ConstantNode(1), new ConstantNode(1))], ['(1 > 2)', new BinaryNode('>', new ConstantNode(1), new ConstantNode(2))], ['(1 >= 2)', new BinaryNode('>=', new ConstantNode(1), new ConstantNode(2))], ['(1 >= 1)', new BinaryNode('>=', new ConstantNode(1), new ConstantNode(1))], ['(true === true)', new BinaryNode('===', new ConstantNode(true), new ConstantNode(true))], ['(true !== true)', new BinaryNode('!==', new ConstantNode(true), new ConstantNode(true))], ['(2 == 1)', new BinaryNode('==', new ConstantNode(2), new ConstantNode(1))], ['(2 != 1)', new BinaryNode('!=', new ConstantNode(2), new ConstantNode(1))], ['(1 - 2)', new BinaryNode('-', new ConstantNode(1), new ConstantNode(2))], ['(1 + 2)', new BinaryNode('+', new ConstantNode(1), new ConstantNode(2))], ['(2 * 2)', new BinaryNode('*', new ConstantNode(2), new ConstantNode(2))], ['(2 / 2)', new BinaryNode('/', new ConstantNode(2), new ConstantNode(2))], ['(5 % 2)', new BinaryNode('%', new ConstantNode(5), new ConstantNode(2))], ['pow(5, 2)', new BinaryNode('**', new ConstantNode(5), new ConstantNode(2))], ['("a" . "b")', new BinaryNode('~', new ConstantNode('a'), new ConstantNode('b'))], ['\in_array("a", [0 => "a", 1 => "b"], true)', new BinaryNode('in', new ConstantNode('a'), $array)], ['\in_array("c", [0 => "a", 1 => "b"], true)', new BinaryNode('in', new ConstantNode('c'), $array)], ['!\in_array("c", [0 => "a", 1 => "b"], true)', new BinaryNode('not in', new ConstantNode('c'), $array)], ['!\in_array("a", [0 => "a", 1 => "b"], true)', new BinaryNode('not in', new ConstantNode('a'), $array)], ['range(1, 3)', new BinaryNode('..', new ConstantNode(1), new ConstantNode(3))], ['(static function ($regexp, $str) { set_error_handler(static fn ($t, $m) => throw new \Symfony\Component\ExpressionLanguage\SyntaxError(sprintf(\'Regexp "%s" passed to "matches" is not valid\', $regexp).substr($m, 12))); try { return preg_match($regexp, (string) $str); } finally { restore_error_handler(); } })("/^[a-z]+\$/", "abc")', new BinaryNode('matches', new ConstantNode('abc'), new ConstantNode('/^[a-z]+$/'))], ['str_starts_with("abc", "a")', new BinaryNode('starts with', new ConstantNode('abc'), new ConstantNode('a'))], ['str_ends_with("abc", "a")', new BinaryNode('ends with', new ConstantNode('abc'), new ConstantNode('a'))], ] |
/src/Symfony/Component/ExpressionLanguage/Tests/Node/BinaryNodeTest.php:29 | 1 | return [[true, new BinaryNode('or', new ConstantNode(true), new ConstantNode(false))], [true, new BinaryNode('||', new ConstantNode(true), new ConstantNode(false))], [false, new BinaryNode('and', new ConstantNode(true), new ConstantNode(false))], [false, new BinaryNode('&&', new ConstantNode(true), new ConstantNode(false))], [0, new BinaryNode('&', new ConstantNode(2), new ConstantNode(4))], [6, new BinaryNode('|', new ConstantNode(2), new ConstantNode(4))], [6, new BinaryNode('^', new ConstantNode(2), new ConstantNode(4))], [true, new BinaryNode('<', new ConstantNode(1), new ConstantNode(2))], [true, new BinaryNode('<=', new ConstantNode(1), new ConstantNode(2))], [true, new BinaryNode('<=', new ConstantNode(1), new ConstantNode(1))], [false, new BinaryNode('>', new ConstantNode(1), new ConstantNode(2))], [false, new BinaryNode('>=', new ConstantNode(1), new ConstantNode(2))], [true, new BinaryNode('>=', new ConstantNode(1), new ConstantNode(1))], [true, new BinaryNode('===', new ConstantNode(true), new ConstantNode(true))], [false, new BinaryNode('!==', new ConstantNode(true), new ConstantNode(true))], [false, new BinaryNode('==', new ConstantNode(2), new ConstantNode(1))], [true, new BinaryNode('!=', new ConstantNode(2), new ConstantNode(1))], [-1, new BinaryNode('-', new ConstantNode(1), new ConstantNode(2))], [3, new BinaryNode('+', new ConstantNode(1), new ConstantNode(2))], [4, new BinaryNode('*', new ConstantNode(2), new ConstantNode(2))], [1, new BinaryNode('/', new ConstantNode(2), new ConstantNode(2))], [1, new BinaryNode('%', new ConstantNode(5), new ConstantNode(2))], [25, new BinaryNode('**', new ConstantNode(5), new ConstantNode(2))], ['ab', new BinaryNode('~', new ConstantNode('a'), new ConstantNode('b'))], [true, new BinaryNode('in', new ConstantNode('a'), $array)], [false, new BinaryNode('in', new ConstantNode('c'), $array)], [true, new BinaryNode('not in', new ConstantNode('c'), $array)], [false, new BinaryNode('not in', new ConstantNode('a'), $array)], [[1, 2, 3], new BinaryNode('..', new ConstantNode(1), new ConstantNode(3))], [true, new BinaryNode('starts with', new ConstantNode('abc'), new ConstantNode('a'))], [false, new BinaryNode('starts with', new ConstantNode('abc'), new ConstantNode('b'))], [true, new BinaryNode('ends with', new ConstantNode('abc'), new ConstantNode('c'))], [false, new BinaryNode('ends with', new ConstantNode('abc'), new ConstantNode('b'))], [1, new BinaryNode('matches', new ConstantNode('abc'), new ConstantNode('/^[a-z]+$/'))], [0, new BinaryNode('matches', new ConstantNode(''), new ConstantNode('/^[a-z]+$/'))], [0, new BinaryNode('matches', new ConstantNode(null), new ConstantNode('/^[a-z]+$/'))], ] |
/src/Symfony/Component/ExpressionLanguage/Tests/Node/UnaryNodeTest.php:41 | 1 | return [['(- 1)', new UnaryNode('-', new ConstantNode(1))], ['(+ 3)', new UnaryNode('+', new ConstantNode(3))], ['(! true)', new UnaryNode('!', new ConstantNode(true))], ['(not true)', new UnaryNode('not', new ConstantNode(true))], ] |
/src/Symfony/Component/Config/Tests/Definition/MergeTest.php:99 | 1 | $tree = $tb->getRootNode( )->children( )->node('test', 'array')->disallowNewKeysInSubsequentConfigs( )->useAttributeAsKey('key')->prototype('array')->children( )->node('value', 'scalar')->end( )->end( )->end( )->end( )->end( )->end( )->buildTree( ) |
/src/Symfony/Component/Config/Tests/Definition/MergeTest.php:136 | 1 | $tree = $tb->getRootNode( )->children( )->node('no_deep_merging', 'array')->performNoDeepMerging( )->children( )->node('foo', 'scalar')->end( )->node('bar', 'scalar')->end( )->end( )->end( )->end( )->end( )->buildTree( ) |
/src/Symfony/Component/Config/Tests/Definition/MergeTest.php:175 | 1 | $tree = $tb->getRootNode( )->children( )->arrayNode('append_elements')->prototype('scalar')->end( )->end( )->end( )->end( )->buildTree( ) |
/src/Symfony/Component/Config/Tests/Definition/NormalizationTest.php:27 | 1 | $tree = $tb->getRootNode( )->fixXmlConfig('encoder')->children( )->node('encoders', 'array')->useAttributeAsKey('class')->prototype('array')->beforeNormalization( )->ifString( )->then(fn ($v) => ['algorithm' => $v])->end( )->children( )->node('algorithm', 'scalar')->end( )->end( )->end( )->end( )->end( )->end( )->buildTree( ) |
/src/Symfony/Component/Notifier/Message/EmailMessage.php:51 | 1 | $email = (new NotificationEmail( ))->to($recipient->getEmail( ))->subject($notification->getSubject( ))->content($notification->getContent( ) ?: $notification->getSubject( ))->importance($notification->getImportance( )) |
/src/Symfony/Component/Config/Util/XmlUtils.php:245 | 1 | $errors[] = sprintf('[%s %s] %s (in %s - line %d, column %d)', \LIBXML_ERR_WARNING == $error->level ? 'WARNING' : 'ERROR', $error->code, trim($error->message), $error->file ?: 'n/a', $error->line, $error->column) |
/src/Symfony/Component/Config/Tests/Definition/MergeTest.php:24 | 1 | $tree = $tb->getRootNode( )->children( )->node('foo', 'scalar')->cannotBeOverwritten( )->end( )->end( )->end( )->buildTree( ) |
/src/Symfony/Component/Config/Tests/Definition/MergeTest.php:51 | 1 | $tree = $tb->getRootNode( )->children( )->node('foo', 'scalar')->end( )->node('bar', 'scalar')->end( )->node('unsettable', 'array')->canBeUnset( )->children( )->node('foo', 'scalar')->end( )->node('bar', 'scalar')->end( )->end( )->end( )->node('unsetted', 'array')->canBeUnset( )->prototype('scalar')->end( )->end( )->end( )->end( )->buildTree( ) |
/src/Symfony/Component/Config/Tests/Definition/PrototypedArrayNodeTest.php:293 | 1 | return [[$scalarValue, [['id' => 'option1', 'value' => 'value1'], ], ['option1' => 'value1'], ], [$scalarValue, [['id' => 'option1', 'value' => 'value1'], ['id' => 'option2', 'value' => 'value2', 'foo' => 'foo2'], ], ['option1' => 'value1', 'option2' => ['value' => 'value2', 'foo' => 'foo2'], ], ], [$arrayValue, [['id' => 'option1', 'value' => ['foo' => 'foo1', 'bar' => 'bar1'], ], ], ['option1' => ['foo' => 'foo1', 'bar' => 'bar1'], ], ], [$variableValue, [['id' => 'option1', 'value' => ['foo' => 'foo1', 'bar' => 'bar1'], ], ['id' => 'option2', 'value' => 'value2'], ], ['option1' => ['foo' => 'foo1', 'bar' => 'bar1'], 'option2' => 'value2', ], ], ] |
/src/Symfony/Component/Config/Tests/Definition/FinalizationTest.php:24 | 1 | $tree = $tb->getRootNode( )->children( )->node('level1', 'array')->canBeUnset( )->children( )->node('level2', 'array')->canBeUnset( )->children( )->node('somevalue', 'scalar')->end( )->node('anothervalue', 'scalar')->end( )->end( )->end( )->node('level1_scalar', 'scalar')->end( )->end( )->end( )->end( )->end( )->buildTree( ) |
/src/Symfony/Component/Config/Definition/BaseNode.php:265 | 1 | return ['package' => $this->deprecation['package'], 'version' => $this->deprecation['version'], 'message' => strtr($this->deprecation['message'], ['%node%' => $node, '%path%' => $path]), ] |
/src/Symfony/Component/Config/Definition/BaseNode.php:497 | 1 | $e = new InvalidTypeException(sprintf('Invalid type for path "%s". Expected %s, but got %s.', $this->getPath( ), 1 === \count($validTypes) ? '"' . reset($validTypes) . '"' : 'one of "' . implode('", "', $validTypes) . '"', 1 === \count($knownTypes) ? '"' . reset($knownTypes) . '"' : 'one of "' . implode('", "', $knownTypes) . '"')) |
/src/Symfony/Component/Config/Tests/Definition/NormalizationTest.php:100 | 1 | $tree = $tb->getRootNode( )->children( )->node('logout', 'array')->fixXmlConfig('handler')->children( )->node('handlers', 'array')->prototype('scalar')->end( )->end( )->end( )->end( )->end( )->end( )->buildTree( ) |
/src/Symfony/Component/Config/Tests/Definition/NormalizationTest.php:188 | 1 | $tree = $tb->getRootNode( )->prototype('array')->children( )->node('foo', 'scalar')->end( )->end( )->end( )->end( )->buildTree( ) |
/src/Symfony/Component/Config/Tests/Definition/NormalizationTest.php:206 | 1 | $tree = (new TreeBuilder('root'))->getRootNode( )->useAttributeAsKey('number')->arrayPrototype( )->children( )->scalarNode('foo')->end( )->end( )->end( )->end( )->buildTree( ) |
/src/Symfony/Component/Config/Tests/Definition/NormalizationTest.php:237 | 1 | return (new TreeBuilder('root', 'array'))->getRootNode( )->children( )->node('thing', 'array')->useAttributeAsKey('id')->prototype('array')->prototype('scalar')->end( )->end( )->end( )->end( )->end( )->buildTree( ) |
/src/Symfony/Component/Security/Core/Tests/Authorization/TraceableAccessDecisionManagerTest.php:124 | 1 | yield [[['attributes' => [new \stdClass( )], 'object' => $x = fopen(__FILE__, 'r'), 'result' => true, 'voterDetails' => [ ], ]], [new \stdClass( )], $x, [ ], true, ] |
/src/Symfony/Component/Security/Core/Tests/Authorization/TraceableAccessDecisionManagerTest.php:94 | 1 | yield [[['attributes' => [null], 'object' => 'jolie string', 'result' => false, 'voterDetails' => [['voter' => $voter1, 'attributes' => [null], 'vote' => VoterInterface::ACCESS_ABSTAIN], ['voter' => $voter2, 'attributes' => [null], 'vote' => VoterInterface::ACCESS_DENIED], ], ]], [null], 'jolie string', [[$voter1, VoterInterface::ACCESS_ABSTAIN], [$voter2, VoterInterface::ACCESS_DENIED], ], false, ] |
/src/Symfony/Component/Security/Core/Tests/Authorization/TraceableAccessDecisionManagerTest.php:154 | 1 | yield [[['attributes' => [12.13], 'object' => new \stdClass( ), 'result' => false, 'voterDetails' => [['voter' => $voter1, 'attributes' => [12.13], 'vote' => VoterInterface::ACCESS_DENIED], ['voter' => $voter2, 'attributes' => [12.13], 'vote' => VoterInterface::ACCESS_DENIED], ], ]], [12.13], new \stdClass( ), [[$voter1, VoterInterface::ACCESS_DENIED], [$voter2, VoterInterface::ACCESS_DENIED], ], false, ] |
/src/Symfony/Component/Security/Core/Tests/Authorization/TraceableAccessDecisionManagerTest.php:136 | 1 | yield [[['attributes' => ['ATTRIBUTE_2'], 'object' => $x = [ ], 'result' => false, 'voterDetails' => [['voter' => $voter1, 'attributes' => ['ATTRIBUTE_2'], 'vote' => VoterInterface::ACCESS_ABSTAIN], ['voter' => $voter2, 'attributes' => ['ATTRIBUTE_2'], 'vote' => VoterInterface::ACCESS_ABSTAIN], ], ]], ['ATTRIBUTE_2'], $x, [[$voter1, VoterInterface::ACCESS_ABSTAIN], [$voter2, VoterInterface::ACCESS_ABSTAIN], ], false, ] |
/src/Symfony/Component/Security/Core/Tests/Authorization/ExpressionLanguageTest.php:56 | 1 | return [[$noToken, 'is_authenticated()', false], [$noToken, 'is_fully_authenticated()', false], [$noToken, 'is_remember_me()', false], [$rememberMeToken, 'is_authenticated()', true], [$rememberMeToken, 'is_fully_authenticated()', false], [$rememberMeToken, 'is_remember_me()', true], [$rememberMeToken, "is_granted('ROLE_FOO')", false], [$rememberMeToken, "is_granted('ROLE_USER')", true], [$usernamePasswordToken, 'is_authenticated()', true], [$usernamePasswordToken, 'is_fully_authenticated()', true], [$usernamePasswordToken, 'is_remember_me()', false], [$usernamePasswordToken, "is_granted('ROLE_FOO')", false], [$usernamePasswordToken, "is_granted('ROLE_USER')", true], ] |
/src/Symfony/Component/Security/Core/Tests/User/InMemoryUserTest.php:84 | 1 | return [[true, new InMemoryUser('username', 'password'), new InMemoryUser('username', 'password')], [false, new InMemoryUser('username', 'password', ['ROLE']), new InMemoryUser('username', 'password')], [false, new InMemoryUser('username', 'password', ['ROLE']), new InMemoryUser('username', 'password', ['NO ROLE'])], [false, new InMemoryUser('diff', 'diff'), new InMemoryUser('username', 'password')], [false, new InMemoryUser('diff', 'diff', [ ], false), new InMemoryUser('username', 'password')], ] |
/src/Symfony/Component/Security/Core/Tests/Authorization/TraceableAccessDecisionManagerTest.php:76 | 1 | yield [[['attributes' => ['ATTRIBUTE_1', 'ATTRIBUTE_2'], 'object' => true, 'result' => false, 'voterDetails' => [['voter' => $voter1, 'attributes' => ['ATTRIBUTE_1', 'ATTRIBUTE_2'], 'vote' => VoterInterface::ACCESS_ABSTAIN], ['voter' => $voter2, 'attributes' => ['ATTRIBUTE_1', 'ATTRIBUTE_2'], 'vote' => VoterInterface::ACCESS_GRANTED], ], ]], ['ATTRIBUTE_1', 'ATTRIBUTE_2'], true, [[$voter1, VoterInterface::ACCESS_ABSTAIN], [$voter2, VoterInterface::ACCESS_GRANTED], ], false, ] |
/src/Symfony/Component/Security/Core/Tests/Authorization/TraceableAccessDecisionManagerTest.php:58 | 1 | yield [[['attributes' => ['ATTRIBUTE_1'], 'object' => null, 'result' => true, 'voterDetails' => [['voter' => $voter1, 'attributes' => ['ATTRIBUTE_1'], 'vote' => VoterInterface::ACCESS_GRANTED], ['voter' => $voter2, 'attributes' => ['ATTRIBUTE_1'], 'vote' => VoterInterface::ACCESS_GRANTED], ], ]], ['ATTRIBUTE_1'], null, [[$voter1, VoterInterface::ACCESS_GRANTED], [$voter2, VoterInterface::ACCESS_GRANTED], ], true, ] |
/src/Symfony/Component/Security/Csrf/CsrfTokenManager.php:115 | 1 | return sprintf('%s.%s.%s', substr(hash('xxh128', $key), 0, 1 + (\ord($key[0]) % 32)), rtrim(strtr(base64_encode($key), '+/', '-_'), '='), rtrim(strtr(base64_encode($value), '+/', '-_'), '=')) |
/src/Symfony/Component/Security/Core/Tests/Authorization/Strategy/PriorityStrategyTest.php:31 | 1 | yield [$strategy, [self::getVoter(VoterInterface::ACCESS_ABSTAIN), self::getVoter(VoterInterface::ACCESS_DENIED), self::getVoter(VoterInterface::ACCESS_GRANTED), self::getVoter(VoterInterface::ACCESS_GRANTED), ], false] |
/src/Symfony/Component/Security/Http/AccessToken/Oidc/OidcTokenHandler.php:79 | 1 | $checkers = [new Checker\IssuedAtChecker(0, false, $this->clock), new Checker\NotBeforeChecker(0, false, $this->clock), new Checker\ExpirationTimeChecker(0, false, $this->clock), new Checker\AudienceChecker($this->audience), new Checker\IssuerChecker($this->issuers), ] |
/src/Symfony/Component/Security/Http/RateLimiter/DefaultLoginRateLimiter.php:53 | 1 | return [$this->globalFactory->create($this->hash($request->getClientIp( ))), $this->localFactory->create($this->hash($username . '-' . $request->getClientIp( ))), ] |
/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/VoterTest.php:33 | 1 | return [[$voter, ['EDIT'], VoterInterface::ACCESS_GRANTED, new \stdClass( ), 'ACCESS_GRANTED if attribute and class are supported and attribute grants access'], [$voter, ['CREATE'], VoterInterface::ACCESS_DENIED, new \stdClass( ), 'ACCESS_DENIED if attribute and class are supported and attribute does not grant access'], [$voter, ['DELETE', 'EDIT'], VoterInterface::ACCESS_GRANTED, new \stdClass( ), 'ACCESS_GRANTED if one attribute is supported and grants access'], [$voter, ['DELETE', 'CREATE'], VoterInterface::ACCESS_DENIED, new \stdClass( ), 'ACCESS_DENIED if one attribute is supported and denies access'], [$voter, ['CREATE', 'EDIT'], VoterInterface::ACCESS_GRANTED, new \stdClass( ), 'ACCESS_GRANTED if one attribute grants access'], [$voter, ['DELETE'], VoterInterface::ACCESS_ABSTAIN, new \stdClass( ), 'ACCESS_ABSTAIN if no attribute is supported'], [$voter, ['EDIT'], VoterInterface::ACCESS_ABSTAIN, new class ( ) { /**/ } , 'ACCESS_ABSTAIN if class is not supported'], [$voter, ['EDIT'], VoterInterface::ACCESS_ABSTAIN, null, 'ACCESS_ABSTAIN if object is null'], [$voter, [ ], VoterInterface::ACCESS_ABSTAIN, new \stdClass( ), 'ACCESS_ABSTAIN if no attributes were provided'], [$voter, [new StringableAttribute( )], VoterInterface::ACCESS_GRANTED, new \stdClass( ), 'ACCESS_GRANTED if attribute and class are supported and attribute grants access'], [$voter, [new \stdClass( )], VoterInterface::ACCESS_ABSTAIN, new \stdClass( ), 'ACCESS_ABSTAIN if attributes were not strings'], [$integerVoter, [42], VoterInterface::ACCESS_GRANTED, new \stdClass( ), 'ACCESS_GRANTED if attribute is an integer'], ] |
/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/RoleVoterTest.php:35 | 1 | return [[[ ], [ ], VoterInterface::ACCESS_ABSTAIN], [[ ], ['FOO'], VoterInterface::ACCESS_ABSTAIN], [[ ], ['ROLE_FOO'], VoterInterface::ACCESS_DENIED], [['ROLE_FOO'], ['ROLE_FOO'], VoterInterface::ACCESS_GRANTED], [['ROLE_FOO'], ['FOO', 'ROLE_FOO'], VoterInterface::ACCESS_GRANTED], [['ROLE_BAR', 'ROLE_FOO'], ['ROLE_FOO'], VoterInterface::ACCESS_GRANTED], [[ ], [[ ]], VoterInterface::ACCESS_ABSTAIN], [[ ], [new \stdClass( )], VoterInterface::ACCESS_ABSTAIN], ] |
/src/Symfony/Component/Security/Core/Tests/Authorization/Strategy/PriorityStrategyTest.php:24 | 1 | yield [$strategy, [self::getVoter(VoterInterface::ACCESS_ABSTAIN), self::getVoter(VoterInterface::ACCESS_GRANTED), self::getVoter(VoterInterface::ACCESS_DENIED), self::getVoter(VoterInterface::ACCESS_DENIED), ], true] |
/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/ExpressionVoterTest.php:37 | 1 | return [[[ ], [ ], VoterInterface::ACCESS_ABSTAIN, false, false], [[ ], ['FOO'], VoterInterface::ACCESS_ABSTAIN, false, false], [[ ], [self::createExpression( )], VoterInterface::ACCESS_DENIED, true, false], [['ROLE_FOO'], [self::createExpression( ), self::createExpression( )], VoterInterface::ACCESS_GRANTED], [['ROLE_BAR', 'ROLE_FOO'], [self::createExpression( )], VoterInterface::ACCESS_GRANTED], ] |
/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php:482 | 1 | return ['photo' => ['messageOptions' => (new TelegramOptions( ))->photo('ABCDEF')->hasSpoiler(true), 'endpoint' => 'sendPhoto', 'expectedBody' => ['photo' => 'ABCDEF', 'has_spoiler' => true, 'chat_id' => 'testChannel', 'parse_mode' => 'MarkdownV2', 'caption' => 'testMessage', ], 'responseContent' => ['photo' => ['file_id' => 'ABCDEF', 'file_unique_id' => 'ABCDEF1', 'file_size' => 1378, 'width' => 90, 'height' => 51, ], 'caption' => 'testMessage', ], ], 'video' => ['messageOptions' => (new TelegramOptions( ))->video('ABCDEF'), 'endpoint' => 'sendVideo', 'expectedBody' => ['video' => 'ABCDEF', 'chat_id' => 'testChannel', 'parse_mode' => 'MarkdownV2', 'caption' => 'testMessage', ], 'responseContent' => ['video' => ['file_id' => 'ABCDEF', 'file_unique_id' => 'ABCDEF1', 'file_size' => 1378, ], 'caption' => 'testMessage', ], ], 'animation' => ['messageOptions' => (new TelegramOptions( ))->animation('ABCDEF'), 'endpoint' => 'sendAnimation', 'expectedBody' => ['animation' => 'ABCDEF', 'chat_id' => 'testChannel', 'parse_mode' => 'MarkdownV2', 'caption' => 'testMessage', ], 'responseContent' => ['animation' => ['file_id' => 'ABCDEF', 'file_unique_id' => 'ABCDEF1', 'file_size' => 1378, ], 'caption' => 'testMessage', ], ], 'audio' => ['messageOptions' => (new TelegramOptions( ))->audio('ABCDEF'), 'endpoint' => 'sendAudio', 'expectedBody' => ['audio' => 'ABCDEF', 'chat_id' => 'testChannel', 'parse_mode' => 'MarkdownV2', 'caption' => 'testMessage', ], 'responseContent' => ['audio' => ['file_id' => 'ABCDEF', 'file_unique_id' => 'ABCDEF1', 'file_size' => 1378, ], 'caption' => 'testMessage', ], ], 'document' => ['messageOptions' => (new TelegramOptions( ))->document('ABCDEF'), 'endpoint' => 'sendDocument', 'expectedBody' => ['document' => 'ABCDEF', 'chat_id' => 'testChannel', 'parse_mode' => 'MarkdownV2', 'caption' => 'testMessage', ], 'responseContent' => ['document' => ['file_id' => 'ABCDEF', 'file_unique_id' => 'ABCDEF1', 'file_size' => 1378, 'file_name' => 'document.odt', 'mime_type' => 'application/vnd.oasis.opendocument.text', ], 'caption' => 'testMessage', ], ], ] |
/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php:590 | 3 | $response = new JsonMockResponse(['ok' => true, 'result' => array_merge(['message_id' => 1, 'from' => ['id' => 12345678, 'is_bot' => true, 'first_name' => 'YourBot', 'username' => 'YourBot', ], 'chat' => ['id' => 1234567890, 'first_name' => 'John', 'last_name' => 'Doe', 'username' => 'JohnDoe', 'type' => 'private', ], 'date' => 1459958199, ], $responseContent), ]) |
/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php:288 | 1 | return ['photo' => ['messageOptions' => (new TelegramOptions( ))->photo('https://localhost/photo.png')->hasSpoiler(true), 'endpoint' => 'sendPhoto', 'expectedBody' => ['photo' => 'https://localhost/photo.png', 'has_spoiler' => true, 'chat_id' => 'testChannel', 'parse_mode' => 'MarkdownV2', 'caption' => 'testMessage', ], 'responseContent' => ['photo' => ['file_id' => 'ABCDEF', 'file_unique_id' => 'ABCDEF1', 'file_size' => 1378, 'width' => 90, 'height' => 51, ], 'caption' => 'testMessage', ], ], 'video' => ['messageOptions' => (new TelegramOptions( ))->video('https://localhost/video.mp4'), 'endpoint' => 'sendVideo', 'expectedBody' => ['video' => 'https://localhost/video.mp4', 'chat_id' => 'testChannel', 'parse_mode' => 'MarkdownV2', 'caption' => 'testMessage', ], 'responseContent' => ['video' => ['file_id' => 'ABCDEF', 'file_unique_id' => 'ABCDEF1', 'file_size' => 1378, 'width' => 90, 'height' => 51, ], 'caption' => 'testMessage', ], ], 'animation' => ['messageOptions' => (new TelegramOptions( ))->animation('https://localhost/animation.gif'), 'endpoint' => 'sendAnimation', 'expectedBody' => ['animation' => 'https://localhost/animation.gif', 'chat_id' => 'testChannel', 'parse_mode' => 'MarkdownV2', 'caption' => 'testMessage', ], 'responseContent' => ['animation' => ['file_id' => 'ABCDEF', 'file_unique_id' => 'ABCDEF1', 'file_size' => 1378, ], 'caption' => 'testMessage', ], ], 'audio' => ['messageOptions' => (new TelegramOptions( ))->audio('https://localhost/audio.ogg'), 'endpoint' => 'sendAudio', 'expectedBody' => ['audio' => 'https://localhost/audio.ogg', 'chat_id' => 'testChannel', 'parse_mode' => 'MarkdownV2', 'caption' => 'testMessage', ], 'responseContent' => ['audio' => ['file_id' => 'ABCDEF', 'file_unique_id' => 'ABCDEF1', 'file_size' => 1378, ], 'caption' => 'testMessage', ], ], 'document' => ['messageOptions' => (new TelegramOptions( ))->document('https://localhost/document.odt'), 'endpoint' => 'sendDocument', 'expectedBody' => ['document' => 'https://localhost/document.odt', 'chat_id' => 'testChannel', 'parse_mode' => 'MarkdownV2', 'caption' => 'testMessage', ], 'responseContent' => ['document' => ['file_id' => 'ABCDEF', 'file_unique_id' => 'ABCDEF1', 'file_size' => 1378, 'file_name' => 'document.odt', 'mime_type' => 'application/vnd.oasis.opendocument.text', ], 'caption' => 'testMessage', ], ], 'sticker' => ['messageOptions' => (new TelegramOptions( ))->sticker('https://localhost/sticker.webp', '🤖'), 'endpoint' => 'sendSticker', 'expectedBody' => ['sticker' => 'https://localhost/sticker.webp', 'chat_id' => 'testChannel', 'parse_mode' => 'MarkdownV2', 'emoji' => '🤖', ], 'responseContent' => ['sticker' => ['file_id' => 'ABCDEF', 'file_unique_id' => 'ABCDEF1', 'file_size' => 1378, 'width' => 100, 'height' => 110, 'is_animated' => false, 'is_video' => false, 'emoji' => '🤖', ], 'caption' => 'testMessage', ], ], 'sticker-without-emoji' => ['messageOptions' => (new TelegramOptions( ))->sticker('https://localhost/sticker.webp'), 'endpoint' => 'sendSticker', 'expectedBody' => ['sticker' => 'https://localhost/sticker.webp', 'chat_id' => 'testChannel', 'parse_mode' => 'MarkdownV2', ], 'responseContent' => ['sticker' => ['file_id' => 'ABCDEF', 'file_unique_id' => 'ABCDEF1', 'file_size' => 1378, 'width' => 100, 'height' => 110, 'is_animated' => false, 'is_video' => false, ], 'caption' => 'testMessage', ], ], ] |
/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php:442 | 3 | $response = new JsonMockResponse(['ok' => true, 'result' => array_merge(['message_id' => 1, 'from' => ['id' => 12345678, 'is_bot' => true, 'first_name' => 'YourBot', 'username' => 'YourBot', ], 'chat' => ['id' => 1234567890, 'first_name' => 'John', 'last_name' => 'Doe', 'username' => 'JohnDoe', 'type' => 'private', ], 'date' => 1459958199, ], $responseContent), ]) |
/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php:871 | 1 | $response = new JsonMockResponse(['ok' => true, 'result' => ['message_id' => 1, 'from' => ['id' => 12345678, 'is_bot' => true, 'first_name' => 'YourBot', 'username' => 'YourBot', ], 'chat' => ['id' => 1234567890, 'first_name' => 'John', 'last_name' => 'Doe', 'username' => 'JohnDoe', 'type' => 'private', ], 'date' => 1459958199, 'location' => ['latitude' => 48.8566, 'longitude' => 2.3522, ], ], ]) |
/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php:924 | 1 | $response = new JsonMockResponse(['ok' => true, 'result' => ['message_id' => 1, 'from' => ['id' => 12345678, 'is_bot' => true, 'first_name' => 'YourBot', 'username' => 'YourBot', ], 'chat' => ['id' => 1234567890, 'first_name' => 'John', 'last_name' => 'Doe', 'username' => 'JohnDoe', 'type' => 'private', ], 'date' => 1459958199, 'location' => ['latitude' => 48.8566, 'longitude' => 2.3522, ], 'venue' => ['location' => ['latitude' => 48.8566, 'longitude' => 2.3522, ], 'title' => 'Center of Paris', 'address' => 'France, Paris', ], ], ]) |
/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php:630 | 1 | return ['photo' => ['messageOptions' => (new TelegramOptions( ))->uploadPhoto(self::FIXTURE_FILE)->hasSpoiler(true), 'endpoint' => 'sendPhoto', 'fileOption' => 'photo', 'expectedBody' => ['has_spoiler' => true, 'chat_id' => 'testChannel', 'parse_mode' => 'MarkdownV2', 'photo' => self::FIXTURE_FILE, 'caption' => 'testMessage', ], 'responseContent' => ['photo' => ['file_id' => 'ABCDEF', 'file_unique_id' => 'ABCDEF1', 'file_size' => 1378, 'width' => 90, 'height' => 51, ], 'caption' => 'testMessage', ], ], 'video' => ['messageOptions' => (new TelegramOptions( ))->uploadVideo(self::FIXTURE_FILE), 'endpoint' => 'sendVideo', 'fileOption' => 'video', 'expectedBody' => ['chat_id' => 'testChannel', 'parse_mode' => 'MarkdownV2', 'video' => self::FIXTURE_FILE, 'caption' => 'testMessage', ], 'responseContent' => ['video' => ['file_id' => 'ABCDEF', 'file_unique_id' => 'ABCDEF1', 'file_size' => 1378, ], 'caption' => 'testMessage', ], ], 'animation' => ['messageOptions' => (new TelegramOptions( ))->uploadAnimation(self::FIXTURE_FILE), 'endpoint' => 'sendAnimation', 'fileOption' => 'animation', 'expectedBody' => ['chat_id' => 'testChannel', 'parse_mode' => 'MarkdownV2', 'animation' => self::FIXTURE_FILE, 'caption' => 'testMessage', ], 'responseContent' => ['animation' => ['file_id' => 'ABCDEF', 'file_unique_id' => 'ABCDEF1', 'file_size' => 1378, ], 'caption' => 'testMessage', ], ], 'audio' => ['messageOptions' => (new TelegramOptions( ))->uploadAudio(self::FIXTURE_FILE), 'endpoint' => 'sendAudio', 'fileOption' => 'audio', 'expectedBody' => ['chat_id' => 'testChannel', 'parse_mode' => 'MarkdownV2', 'audio' => self::FIXTURE_FILE, 'caption' => 'testMessage', ], 'responseContent' => ['audio' => ['file_id' => 'ABCDEF', 'file_unique_id' => 'ABCDEF1', 'file_size' => 1378, ], 'caption' => 'testMessage', ], ], 'document' => ['messageOptions' => (new TelegramOptions( ))->uploadDocument(self::FIXTURE_FILE), 'endpoint' => 'sendDocument', 'fileOption' => 'document', 'expectedBody' => ['chat_id' => 'testChannel', 'parse_mode' => 'MarkdownV2', 'document' => self::FIXTURE_FILE, 'caption' => 'testMessage', ], 'responseContent' => ['document' => ['file_id' => 'ABCDEF', 'file_unique_id' => 'ABCDEF1', 'file_size' => 1378, 'file_name' => 'document.odt', 'mime_type' => 'application/vnd.oasis.opendocument.text', ], 'caption' => 'testMessage', ], ], 'sticker' => ['messageOptions' => (new TelegramOptions( ))->uploadSticker(self::FIXTURE_FILE, '🤖'), 'endpoint' => 'sendSticker', 'fileOption' => 'sticker', 'expectedBody' => ['emoji' => '🤖', 'chat_id' => 'testChannel', 'parse_mode' => 'MarkdownV2', 'sticker' => self::FIXTURE_FILE, ], 'responseContent' => ['sticker' => ['file_id' => 'ABCDEF', 'file_unique_id' => 'ABCDEF1', 'file_size' => 1378, 'type' => 'regular', 'width' => 100, 'height' => 110, 'is_animated' => false, 'is_video' => false, 'emoji' => '🤖', ], 'caption' => 'testMessage', ], ], 'sticker-without-emoji' => ['messageOptions' => (new TelegramOptions( ))->uploadSticker(self::FIXTURE_FILE), 'endpoint' => 'sendSticker', 'fileOption' => 'sticker', 'expectedBody' => ['chat_id' => 'testChannel', 'parse_mode' => 'MarkdownV2', 'sticker' => self::FIXTURE_FILE, ], 'responseContent' => ['sticker' => ['file_id' => 'ABCDEF', 'file_unique_id' => 'ABCDEF1', 'file_size' => 1378, 'type' => 'regular', 'width' => 100, 'height' => 110, 'is_animated' => false, 'is_video' => false, ], 'caption' => 'testMessage', ], ], ] |
/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php:794 | 3 | $response = new JsonMockResponse(['ok' => true, 'result' => array_merge(['message_id' => 1, 'from' => ['id' => 12345678, 'is_bot' => true, 'first_name' => 'YourBot', 'username' => 'YourBot', ], 'chat' => ['id' => 1234567890, 'first_name' => 'John', 'last_name' => 'Doe', 'username' => 'JohnDoe', 'type' => 'private', ], 'date' => 1459958199, ], $responseContent), ]) |
/src/Symfony/Component/Notifier/Bridge/Sinch/SinchTransport.php:61 | 1 | $response = $this->client->request('POST', $endpoint, ['auth_bearer' => $this->authToken, 'json' => ['from' => $message->getFrom( ) ?: $this->from, 'to' => [$message->getPhone( )], 'body' => $message->getSubject( ), ], ]) |
/src/Symfony/Component/Notifier/Bridge/Iqsms/IqsmsTransport.php:60 | 1 | $response = $this->client->request('POST', 'https://' . $this->getEndpoint( ) . '/messages/v2/send.json', ['json' => ['messages' => [['phone' => $message->getPhone( ), 'text' => $message->getSubject( ), 'sender' => $message->getFrom( ) ?: $this->from, 'clientId' => uniqid( ), ], ], 'login' => $this->login, 'password' => $this->password, ], ]) |
/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php:997 | 1 | $response = new JsonMockResponse(['ok' => true, 'result' => ['message_id' => 1, 'from' => ['id' => 12345678, 'is_bot' => true, 'first_name' => 'YourBot', 'username' => 'YourBot', ], 'chat' => ['id' => 1234567890, 'first_name' => 'John', 'last_name' => 'Doe', 'username' => 'JohnDoe', 'type' => 'private', ], 'date' => 1459958199, 'contact' => ['phone_number' => '+330186657200', 'first_name' => 'John', 'last_name' => 'Doe', 'vcard' => $vCard, 'user_id' => 1234567891, ], ], ]) |
/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php:1058 | 1 | return ['edit' => [(new TelegramOptions( ))->edit(1)->video('')], 'answerCallbackQuery' => [(new TelegramOptions( ))->answerCallbackQuery('')->video('')], 'photo' => [(new TelegramOptions( ))->photo('')->video('')], 'location' => [(new TelegramOptions( ))->location(48.8566, 2.3522)->video('')], 'audio' => [(new TelegramOptions( ))->audio('')->video('')], 'document' => [(new TelegramOptions( ))->document('')->video('')], 'video' => [(new TelegramOptions( ))->video('')->animation('')], 'animation' => [(new TelegramOptions( ))->animation('')->video('')], 'venue' => [(new TelegramOptions( ))->venue(48.8566, 2.3522, '', '')->video('')], 'contact' => [(new TelegramOptions( ))->contact('', '')->video('')], 'sticker' => [(new TelegramOptions( ))->sticker('')->video('')], 'uploadPhoto' => [(new TelegramOptions( ))->uploadPhoto(self::FIXTURE_FILE)->video('')], 'uploadAudio' => [(new TelegramOptions( ))->uploadAudio(self::FIXTURE_FILE)->video('')], 'uploadDocument' => [(new TelegramOptions( ))->uploadDocument(self::FIXTURE_FILE)->video('')], 'uploadVideo' => [(new TelegramOptions( ))->uploadVideo(self::FIXTURE_FILE)->animation('')], 'uploadAnimation' => [(new TelegramOptions( ))->uploadAnimation(self::FIXTURE_FILE)->video('')], 'uploadSticker' => [(new TelegramOptions( ))->uploadSticker(self::FIXTURE_FILE)->video('')], ] |
/src/Symfony/Component/Notifier/Bridge/Slack/Tests/SlackOptionsTest.php:140 | 1 | yield 'without content + without exception' => [['icon_emoji' => $emoji, 'blocks' => [['type' => 'section', 'text' => ['type' => 'mrkdwn', 'text' => $subject, ], ], ], ], (new Notification($subject))->emoji($emoji), ] |
/src/Symfony/Component/Notifier/Bridge/Slack/Tests/SlackOptionsTest.php:156 | 1 | yield 'with content + without exception' => [['icon_emoji' => $emoji, 'blocks' => [['type' => 'section', 'text' => ['type' => 'mrkdwn', 'text' => $subject, ], ], ['type' => 'section', 'text' => ['type' => 'mrkdwn', 'text' => $content, ], ], ], ], (new Notification($subject))->emoji($emoji)->content($content), ] |
/src/Symfony/Component/Notifier/Bridge/Yunpian/YunpianTransport.php:62 | 1 | $response = $this->client->request('POST', $endpoint, ['body' => ['apikey' => $this->apiKey, 'mobile' => $message->getPhone( ), 'text' => $message->getSubject( ), ], ]) |
/src/Symfony/Component/Notifier/Bridge/Slack/SlackTransport.php:83 | 1 | $response = $this->client->request('POST', 'https://' . $this->getEndpoint( ) . '/api/' . $apiMethod, ['json' => array_filter($options), 'auth_bearer' => $this->accessToken, 'headers' => ['Content-Type' => 'application/json; charset=utf-8', ], ]) |
/src/Symfony/Component/Notifier/Bridge/Sms77/Sms77Transport.php:59 | 1 | $response = $this->client->request('POST', $endpoint, ['headers' => ['Content-Type' => 'application/json', 'SentWith' => 'Symfony Notifier', 'X-Api-Key' => $this->apiKey, ], 'json' => ['from' => $message->getFrom( ) ?: $this->from, 'json' => 1, 'text' => $message->getSubject( ), 'to' => $message->getPhone( ), ], ]) |
/src/Symfony/Component/Notifier/Bridge/Smsc/SmscTransport.php:62 | 1 | $body = ['login' => $this->login, 'psw' => $this->password, 'sender' => $message->getFrom( ) ?: $this->from, 'phones' => $message->getPhone( ), 'mes' => $message->getSubject( ), 'fmt' => 3, 'charset' => 'utf-8', 'time' => '0-24', ] |
/src/Symfony/Component/Notifier/Bridge/Clickatell/ClickatellTransport.php:69 | 1 | $response = $this->client->request('POST', $endpoint, ['headers' => ['Accept' => 'application/json', 'Authorization' => 'Bearer ' . $this->authToken, 'Content-Type' => 'application/json', 'X-Version' => 1, ], 'json' => array_filter($options), ]) |
/src/Symfony/Component/Notifier/Bridge/Engagespot/EngagespotTransport.php:76 | 1 | $response = $this->client->request('POST', $endpoint, ['headers' => ['API-Key' => $this->apiKey, ], 'json' => ['campaign_name' => $options['campaign_name'] ?? $this->campaignName, 'notification' => ['title' => $message->getSubject( ), 'message' => $message->getContent( ), 'icon' => $options['icon'] ?? '', 'url' => $options['url'] ?? '#', ], 'send_to' => $sendToEveryone ? 'everyone' : 'identifiers', 'identifiers' => $identifiers ?? null, ], ]) |
/src/Symfony/Component/Notifier/Bridge/MessageMedia/Tests/MessageMediaOptionsTest.php:21 | 1 | $messageMediaOptions = (new MessageMediaOptions( ))->media(['test_media'])->callbackUrl('test_callback_url')->format('test_format')->deliveryReport(true)->expiry(999)->metadata(['test_metadata'])->scheduled('test_scheduled')->subject('test_subject') |
/src/Symfony/Component/Notifier/Bridge/SmsFactor/SmsFactorTransport.php:74 | 1 | $response = $this->client->request('GET', 'https://' . $this->getEndpoint( ) . '/send', ['query' => array_filter($query), 'auth_bearer' => $this->tokenApi, 'headers' => ['Accept' => 'application/json', ], ]) |
/src/Symfony/Component/Notifier/Bridge/SmsFactor/SmsFactorTransport.php:66 | 1 | $query = ['to' => $message->getPhone( ), 'text' => $message->getSubject( ), 'gsmsmsid' => $messageId, 'sender' => $message->getFrom( ) ?: $this->sender, 'pushtype' => $this->pushType?->value, ] |
/src/Symfony/Component/Notifier/Bridge/Brevo/BrevoTransport.php:58 | 1 | $response = $this->client->request('POST', 'https://' . $this->getEndpoint( ) . '/v3/transactionalSMS/sms', ['json' => ['sender' => $sender, 'recipient' => $message->getPhone( ), 'content' => $message->getSubject( ), ], 'headers' => ['api-key' => $this->apiKey, ], ]) |
/src/Symfony/Component/Notifier/Bridge/LinkedIn/Tests/LinkedInTransportTest.php:151 | 2 | $expectedBody = json_encode(['specificContent' => ['com.linkedin.ugc.ShareContent' => ['shareCommentary' => ['attributes' => [ ], 'text' => 'testMessage', ], 'shareMediaCategory' => 'NONE', ], ], 'visibility' => ['com.linkedin.ugc.MemberNetworkVisibility' => 'PUBLIC', ], 'lifecycleState' => 'PUBLISHED', 'author' => 'urn:li:person:AccountId', ]) |
/src/Symfony/Component/Notifier/Bridge/LinkedIn/Tests/LinkedInTransportTest.php:104 | 2 | $expectedBody = json_encode(['specificContent' => ['com.linkedin.ugc.ShareContent' => ['shareCommentary' => ['attributes' => [ ], 'text' => 'testMessage', ], 'shareMediaCategory' => 'NONE', ], ], 'visibility' => ['com.linkedin.ugc.MemberNetworkVisibility' => 'PUBLIC', ], 'lifecycleState' => 'PUBLISHED', 'author' => 'urn:li:person:AccountId', ]) |
/src/Symfony/Component/Notifier/Bridge/LinkedIn/LinkedInTransport.php:106 | 1 | return ['specificContent' => ['com.linkedin.ugc.ShareContent' => ['shareCommentary' => ['attributes' => [ ], 'text' => $message->getSubject( ), ], 'shareMediaCategory' => 'NONE', ], ], 'visibility' => ['com.linkedin.ugc.MemberNetworkVisibility' => 'PUBLIC', ], 'lifecycleState' => 'PUBLISHED', 'author' => sprintf('urn:li:person:%s', $this->accountId), ] |
/src/Symfony/Component/Notifier/Bridge/LinkedIn/LinkedInTransport.php:76 | 1 | $response = $this->client->request('POST', $endpoint, ['auth_bearer' => $this->authToken, 'headers' => ['X-Restli-Protocol-Version' => '2.0.0'], 'json' => array_filter($options?->toArray( ) ?? $this->bodyFromMessageWithNoOption($message)), ]) |
/src/Symfony/Component/Notifier/Message/EmailMessage.php:45 | 1 | $email = (new Email( ))->to($recipient->getEmail( ))->subject($notification->getSubject( ))->text($notification->getContent( ) ?: $notification->getSubject( )) |
/src/Symfony/Component/Notifier/Tests/Channel/BrowserChannelTest.php:68 | 1 | return [[new DefaultFlashMessageImportanceMapper( ), Notification::IMPORTANCE_URGENT, 'notification'], [new DefaultFlashMessageImportanceMapper( ), Notification::IMPORTANCE_HIGH, 'notification'], [new DefaultFlashMessageImportanceMapper( ), Notification::IMPORTANCE_MEDIUM, 'notification'], [new DefaultFlashMessageImportanceMapper( ), Notification::IMPORTANCE_LOW, 'notification'], [new BootstrapFlashMessageImportanceMapper( ), Notification::IMPORTANCE_URGENT, 'danger'], [new BootstrapFlashMessageImportanceMapper( ), Notification::IMPORTANCE_HIGH, 'warning'], [new BootstrapFlashMessageImportanceMapper( ), Notification::IMPORTANCE_MEDIUM, 'info'], [new BootstrapFlashMessageImportanceMapper( ), Notification::IMPORTANCE_LOW, 'success'], ] |
/src/Symfony/Component/Notifier/Bridge/Mobyt/MobytTransport.php:72 | 1 | $response = $this->client->request('POST', 'https://' . $this->getEndpoint( ) . '/API/v1.0/REST/sms', ['headers' => ['user_key' => $this->accountSid, 'Access_token' => $this->authToken, ], 'json' => array_filter($options), ]) |
/src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/MicrosoftTeamsOptionsTest.php:247 | 1 | $options = (new MicrosoftTeamsOptions( ))->action(new OpenUriAction( ))->action(new OpenUriAction( ))->action(new OpenUriAction( ))->action(new OpenUriAction( )) |
/src/Symfony/Component/Notifier/Bridge/Twitter/TwitterTransport.php:218 | 1 | $subtitlesVideoIds[$videoId] = $this->request('POST', '/1.1/media/subtitles/create.json', ['json' => ['media_id' => $videoId, 'media_category' => 'tweet_video', 'subtitle_info' => ['subtitles' => [['media_id' => array_search($subtitles, $subtitlesMediaIds, true), 'language_code' => pathinfo($name, \PATHINFO_EXTENSION), 'display_name' => pathinfo($name, \PATHINFO_FILENAME), ], ], ], ], ]) |
/src/Symfony/Component/Notifier/Bridge/Infobip/InfobipTransport.php:59 | 1 | $response = $this->client->request('POST', $endpoint, ['headers' => ['Authorization' => 'App ' . $this->authToken, ], 'json' => ['messages' => [['from' => $message->getFrom( ) ?: $this->from, 'destinations' => [['to' => $message->getPhone( ), ], ], 'text' => $message->getSubject( ), ], ], ], ]) |
/src/Symfony/Component/Notifier/Bridge/SmsBiuras/SmsBiurasTransport.php:78 | 1 | $response = $this->client->request('GET', $endpoint, ['query' => ['uid' => $this->uid, 'apikey' => $this->apiKey, 'message' => $message->getSubject( ), 'from' => $message->getFrom( ) ?: $this->from, 'test' => (int) $this->testMode, 'to' => $message->getPhone( ), ], ]) |
/src/Symfony/Component/Notifier/Bridge/Mercure/MercureTransport.php:75 | 1 | $update = new Update($options->getTopics( ) ?? $this->topics, json_encode(['@context' => 'https://www.w3.org/ns/activitystreams', 'type' => 'Announce', 'summary' => $message->getSubject( ), ]), $options->isPrivate( ), $options->getId( ), $options->getType( ), $options->getRetry( )) |
/src/Symfony/Component/Notifier/Bridge/Discord/Tests/DiscordOptionsTest.php:39 | 1 | $discordOptions = (new DiscordOptions( ))->addEmbed((new DiscordEmbed( ))->description('descript.io')->url('http://ava.tar/pic.png')->timestamp(new \DateTimeImmutable('2020-10-12 9:14:15+0000'))->color(2021216)->title('New song added!'))->addEmbed((new DiscordEmbed( ))->description('descript.io 2')->url('http://ava.tar/pic.png')->timestamp(new \DateTimeImmutable('2020-10-12 9:14:15+0000'))->color(2021216)->title('New song added!')) |
/src/Symfony/Component/Notifier/Bridge/Discord/Tests/DiscordOptionsTest.php:74 | 1 | $discordOptions = (new DiscordOptions( ))->addEmbed((new DiscordEmbed( ))->description('descript.io')->url('http://ava.tar/pic.png')->timestamp(new \DateTimeImmutable('2020-10-12 9:14:15+0000'))->color(2021216)->title('New song added!')->footer((new DiscordFooterEmbedObject( ))->text('text')->iconUrl('icon url')->proxyIconUrl('proxy icon url'))->thumbnail((new DiscordMediaEmbedObject( ))->url('https://thumb.ur.l/')->proxyUrl('https://proxy.ur.l/')->height(900)->width(600))->image((new DiscordMediaEmbedObject( ))->url('https://image.ur.l/')->proxyUrl('https://proxy.ur.l/')->height(900)->width(600))->author((new DiscordAuthorEmbedObject( ))->name('name field')->url('https://ur.l/')->iconUrl('https://icon.ur.l/')->proxyIconUrl('https://proxy.ic.on/url'))) |
/src/Symfony/Component/Notifier/Bridge/TurboSms/TurboSmsTransport.php:78 | 1 | $response = $this->client->request('POST', $endpoint, ['auth_bearer' => $this->authToken, 'json' => ['sms' => ['sender' => $from, 'recipients' => [$message->getPhone( )], 'text' => $message->getSubject( ), ], ], ]) |
/src/Symfony/Component/Notifier/Bridge/MessageBird/Tests/MessageBirdOptionsTest.php:21 | 1 | $messageBirdOptions = (new MessageBirdOptions( ))->type('test_type')->scheduledDatetime('test_scheduled_datetime')->createdDatetime('test_created_datetime')->dataCoding('test_data_coding')->gateway(999)->groupIds(['test_group_ids'])->mClass(888)->reference('test_reference')->reportUrl('test_report_url')->shortenUrls(true)->typeDetails('test_type_details')->validity(777) |
/src/Symfony/Component/Notifier/Bridge/Telnyx/TelnyxTransport.php:80 | 1 | $response = $this->client->request('POST', $endpoint, ['auth_bearer' => $this->apiKey, 'json' => ['from' => $from, 'to' => $message->getPhone( ), 'text' => $message->getSubject( ), 'messaging_profile_id' => $this->messagingProfileId ?? '', ], ]) |
/src/Symfony/Component/Notifier/Bridge/KazInfoTeh/KazInfoTehTransport.php:64 | 1 | $response = $this->client->request('POST', $endpoint, ['query' => ['action' => 'sendmessage', 'username' => $this->username, 'password' => $this->password, 'recipient' => $message->getPhone( ), 'messagetype' => 'SMS:TEXT', 'originator' => $message->getFrom( ) ?: $this->sender, 'messagedata' => $message->getSubject( ), ], ]) |
/src/Symfony/Component/Notifier/Bridge/Smsapi/SmsapiTransport.php:88 | 1 | $body = ['to' => $message->getPhone( ), 'message' => $message->getSubject( ), 'fast' => $this->fast, 'format' => 'json', 'encoding' => 'utf-8', 'test' => $this->test, ] |
/src/Symfony/Component/Notifier/Bridge/Redlink/RedlinkTransport.php:71 | 1 | $response = $this->client->request('POST', $endpoint, ['headers' => ['Authorization' => $this->apiToken, 'Application-Key' => $this->appToken, ], 'json' => array_merge(['sender' => $from, 'message' => $message->getSubject( ), 'phoneNumbers' => [$message->getPhone( ), ], ], array_filter($options)), ]) |
/src/Symfony/Component/Notifier/Bridge/Octopush/OctopushTransport.php:66 | 1 | $response = $this->client->request('POST', $endpoint, ['body' => ['user_login' => $this->userLogin, 'api_key' => $this->apiKey, 'sms_text' => $message->getSubject( ), 'sms_recipients' => $message->getPhone( ), 'sms_sender' => $from, 'sms_type' => $this->type, ], ]) |
/src/Symfony/Component/Notifier/Bridge/Esendex/EsendexTransport.php:70 | 1 | $response = $this->client->request('POST', 'https://' . $this->getEndpoint( ) . '/v1.0/messagedispatcher', ['auth_basic' => [$this->email, $this->password], 'headers' => ['Accept' => 'application/json', ], 'json' => array_filter($options), ]) |
/src/Symfony/Component/Notifier/Bridge/Mailjet/MailjetTransport.php:60 | 1 | $response = $this->client->request('POST', $endpoint, ['auth_bearer' => $this->authToken, 'json' => ['From' => $message->getFrom( ) ?: $this->from, 'To' => $message->getPhone( ), 'Text' => $message->getSubject( ), ], ]) |
/src/Symfony/Component/Notifier/Bridge/OvhCloud/OvhCloudTransport.php:86 | 1 | $content = ['charset' => 'UTF-8', 'class' => 'flash', 'coding' => '8bit', 'message' => $message->getSubject( ), 'receivers' => [$message->getPhone( )], 'noStopClause' => $this->noStopClause, 'priority' => 'medium', ] |
/src/Symfony/Component/Notifier/Bridge/AllMySms/Tests/AllMySmsOptionsTest.php:21 | 1 | $allMySmsOptions = (new AllMySmsOptions( ))->alerting(1)->date('test_date')->campaignName('test_campaign_name')->cliMsgId('test_cli_msg_id')->simulate(1)->uniqueIdentifier('test_unique_identifier')->verbose(1) |
/src/Symfony/Component/Notifier/Bridge/Ntfy/Tests/NtfyOptionsTest.php:25 | 1 | $ntfyOptions = (new NtfyOptions( ))->setMessage('test message')->setTitle('message title')->setPriority(NtfyOptions::PRIORITY_URGENT)->setTags(['tag1', 'tag2'])->addTag('tag3')->setDelay($delay)->setActions([['action' => 'view', 'label' => 'View', 'url' => 'https://test.com']])->addAction(['action' => 'http', 'label' => 'Open', 'url' => 'https://test2.com'])->setClick('https://test3.com')->setAttachment('https://filesrv.lan/space.jpg')->setFilename('diskspace.jpg')->setEmail('me@mail.com')->setCache(false)->setFirebase(false) |
/src/Symfony/Component/Notifier/Bridge/OneSignal/OneSignalTransport.php:84 | 1 | $response = $this->client->request('POST', 'https://' . $this->getEndpoint( ) . '/api/v1/notifications', ['headers' => ['Accept' => 'application/json', 'Authorization' => 'Basic ' . $this->apiKey, ], 'json' => $options, ]) |
/src/Symfony/Component/Notifier/Bridge/FakeSms/FakeSmsEmailTransport.php:67 | 1 | $email = (new Email( ))->from($message->getFrom( ) ?: $this->from)->to($this->to)->subject(sprintf('New SMS on phone number: %s', $message->getPhone( )))->html($message->getSubject( ))->text($message->getSubject( )) |
/src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php:103 | 1 | $data = ['login' => $this->login, 'phone' => $phone = $this->escapePhoneNumber($message->getPhone( )), 'sender' => $message->getFrom( ) ?: $this->from, 'text' => $message->getSubject( ), 'timestamp' => time( ), ] |
/src/Symfony/Component/Notifier/Bridge/OneSignal/Tests/OneSignalOptionsTest.php:21 | 1 | $oneSignalOptions = (new OneSignalOptions( ))->headings(['en' => 'English Heading', 'fr' => 'French Heading'])->contents(['en' => 'English Content', 'fr' => 'French Content'])->url('https://example.com')->data(['foo' => 'bar'])->sendAfter(new \DateTimeImmutable('Thu Sep 24 2015 14:00:00 GMT-0700 (PDT)'))->externalId('d637f30d-f709-4bed-9e2c-63637cb91894') |
/src/Symfony/Component/Notifier/Bridge/Novu/NovuOptions.php:49 | 1 | return array_merge($this->options, ['firstName' => $this->firstName, 'lastName' => $this->lastName, 'email' => $this->email, 'phone' => $this->phone, 'avatar' => $this->avatar, 'locale' => $this->locale, 'overrides' => $this->overrides, ]) |
/src/Symfony/Component/Notifier/Bridge/Novu/NovuTransport.php:59 | 1 | $body = ['name' => $message->getSubject( ), 'to' => ['subscriberId' => $message->getRecipientId( ), 'firstName' => $options['firstName'], 'lastName' => $options['lastName'], 'email' => $options['email'], 'phone' => $options['phone'], 'avatar' => $options['avatar'], 'locale' => $options['locale'], ], 'payload' => json_decode($message->getContent( )), 'overrides' => $options['overrides'] ?? [ ], ] |
/src/Symfony/Component/Notifier/Bridge/FakeChat/FakeChatEmailTransport.php:71 | 1 | $email = (new Email( ))->from($this->from)->to($this->to)->subject($subject)->html($message->getSubject( ))->text($message->getSubject( )) |
/src/Symfony/Component/Notifier/Bridge/Vonage/VonageTransport.php:61 | 1 | $response = $this->client->request('POST', 'https://' . $this->getEndpoint( ) . '/sms/json', ['body' => ['from' => $message->getFrom( ) ?: $this->from, 'to' => $message->getPhone( ), 'text' => $message->getSubject( ), 'api_key' => $this->apiKey, 'api_secret' => $this->apiSecret, ], ]) |
/src/Symfony/Component/Notifier/Bridge/SpotHit/SpotHitTransport.php:94 | 1 | $response = $this->client->request('POST', $endpoint, ['body' => ['key' => $this->token, 'destinataires' => $message->getPhone( ), 'type' => 'premium', 'message' => $message->getSubject( ), 'expediteur' => $message->getFrom( ) ?: $this->from, 'smslong' => $this->smsLong, 'smslongnbr' => $this->smsLongNBr, ], ]) |
/src/Symfony/Component/Notifier/Bridge/Plivo/Tests/PlivoOptionsTest.php:21 | 1 | $plivoOptions = (new PlivoOptions( ))->log(true)->method('test_method')->url('test_url')->mediaUrls('test_media_urls')->powerpackUuid('test_powerpack_uuid')->trackable(true)->type('test_type') |
/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php:141 | 4 | $response = new JsonMockResponse(['ok' => true, 'result' => ['message_id' => 1, 'from' => ['id' => 12345678, 'first_name' => 'YourBot', 'username' => 'YourBot', ], 'chat' => ['id' => 1234567890, 'first_name' => 'John', 'last_name' => 'Doe', 'username' => 'JohnDoe', 'type' => 'private', ], 'date' => 1459958199, 'text' => 'Hello from Bot!', ], ]) |
/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php:97 | 4 | $response = new JsonMockResponse(['ok' => true, 'result' => ['message_id' => 1, 'from' => ['id' => 12345678, 'first_name' => 'YourBot', 'username' => 'YourBot', ], 'chat' => ['id' => 1234567890, 'first_name' => 'John', 'last_name' => 'Doe', 'username' => 'JohnDoe', 'type' => 'private', ], 'date' => 1459958199, 'text' => 'Hello from Bot!', ], ]) |
/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php:245 | 4 | $response = new JsonMockResponse(['ok' => true, 'result' => ['message_id' => 1, 'from' => ['id' => 12345678, 'first_name' => 'YourBot', 'username' => 'YourBot', ], 'chat' => ['id' => 1234567890, 'first_name' => 'John', 'last_name' => 'Doe', 'username' => 'JohnDoe', 'type' => 'private', ], 'date' => 1459958199, 'text' => 'Hello from Bot!', ], ]) |
/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php:199 | 4 | $response = new JsonMockResponse(['ok' => true, 'result' => ['message_id' => 1, 'from' => ['id' => 12345678, 'first_name' => 'YourBot', 'username' => 'YourBot', ], 'chat' => ['id' => 1234567890, 'first_name' => 'John', 'last_name' => 'Doe', 'username' => 'JohnDoe', 'type' => 'private', ], 'date' => 1459958199, 'text' => 'Hello from Bot!', ], ]) |
/src/Symfony/Bridge/Doctrine/Validator/DoctrineLoader.php:98 | 1 | if(null === (self::getFieldMappingValue($mapping, 'length') ?? null) || null !== (self::getFieldMappingValue($mapping, 'enumType') ?? null) || !\in_array(self::getFieldMappingValue($mapping, 'type'), ['string', 'text'], true)) { /**/ } |
/src/Symfony/Bridge/Doctrine/Validator/DoctrineLoader.php:106 | 1 | elseif(property_exists($className, self::getFieldMappingValue($mapping, 'fieldName')) && (!$doctrineMetadata->isMappedSuperclass || $metadata->getReflectionClass( )->getProperty(self::getFieldMappingValue($mapping, 'fieldName'))->isPrivate( ))) { /**/ } |
/src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php:231 | 1 | if(isset($annotations['method']['expectedDeprecation']) || $this->checkNumAssertions = method_exists($test, 'expectDeprecation') && (new \ReflectionMethod($test, 'expectDeprecation'))->getFileName( ) === (new \ReflectionMethod(ExpectDeprecationTrait::class, 'expectDeprecation'))->getFileName( )) { /**/ } |
/src/Symfony/Bridge/Monolog/Handler/FingersCrossed/NotFoundActivationStrategy.php:42 | 1 | if($isActivated && isset($record->context['exception']) && $record->context['exception'] instanceof HttpException && 404 == $record->context['exception']->getStatusCode( ) && ($request = $this->requestStack->getMainRequest( ))) { /**/ } |
/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php:196 | 1 | if(str_contains($mappingDriverDef->getClass( ), 'yml') || str_contains($mappingDriverDef->getClass( ), 'xml') || str_contains($mappingDriverDef->getClass( ), 'Yaml') || str_contains($mappingDriverDef->getClass( ), 'Xml')) { /**/ } |
/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php:131 | 1 | if((\E_USER_DEPRECATED !== $type && \E_DEPRECATED !== $type && (\E_WARNING !== $type || false === strpos($msg, '" targeting switch is equivalent to "break'))) || !$this->getConfiguration( )->isEnabled( )) { /**/ } |
/src/Symfony/Component/HttpKernel/DataCollector/DumpDataCollector.php:110 | 1 | if($this->dumper || ($this->requestStack && $this->requestStack->getMainRequest( ) !== $request) || $request->isXmlHttpRequest( ) || $request->headers->has('Origin')) { /**/ } |
/src/Symfony/Component/HttpKernel/DataCollector/DumpDataCollector.php:115 | 1 | if(!$this->requestStack || !$response->headers->has('X-Debug-Token') || $response->isRedirection( ) || ($response->headers->has('Content-Type') && !str_contains($response->headers->get('Content-Type') ?? '', 'html')) || 'html' !== $request->getRequestFormat( ) || false === strripos($response->getContent( ), '</body>')) { /**/ } |
/src/Symfony/Bridge/Twig/NodeVisitor/TranslationNodeVisitor.php:86 | 1 | elseif($node instanceof FilterExpression && 'trans' === $node->getNode('filter')->getAttribute('value') && $node->getNode('node') instanceof ConcatBinary && $message = $this->getConcatValueFromNode($node->getNode('node'), null)) { /**/ } |
/src/Symfony/Component/HttpKernel/Kernel.php:395 | 1 | if(is_file($cachePath) && \is_object($this->container = include $cachePath) && (!$this->debug || (self::$freshCache[$cachePath] ?? $cache->isFresh( )))) { /**/ } |
/src/Symfony/Component/Validator/Constraints/ImageValidator.php:44 | 1 | if(null === $constraint->minWidth && null === $constraint->maxWidth && null === $constraint->minHeight && null === $constraint->maxHeight && null === $constraint->minPixels && null === $constraint->maxPixels && null === $constraint->minRatio && null === $constraint->maxRatio && $constraint->allowSquare && $constraint->allowLandscape && $constraint->allowPortrait && !$constraint->detectCorrupted) { /**/ } |
/src/Symfony/Component/Validator/Constraints/ChoiceValidator.php:49 | 1 | if(!\is_callable($choices = [$this->context->getObject( ), $constraint->callback]) && !\is_callable($choices = [$this->context->getClassName( ), $constraint->callback]) && !\is_callable($choices = $constraint->callback)) { /**/ } |
/src/Symfony/Component/Cache/CacheItem.php:187 | 1 | if(!\is_array($v) || 1 !== \count($v) || 10 !== \strlen($k = (string) array_key_first($v)) || "\x9D" !== $k[0] || "\0" !== $k[5] || "\x5F" !== $k[9]) { /**/ } |
/src/Symfony/Component/Validator/Constraints/TypeValidator.php:72 | 1 | if(isset(self::VALIDATION_FUNCTIONS[$type]) && match ($type) { /**/ } ) { /**/ } |
/src/Symfony/Component/Dotenv/Dotenv.php:351 | 1 | while ($this->cursor < $this->end && !\in_array($this->data[$this->cursor], ["\n", '"', "'"], true) && !((' ' === $prevChr || "\t" === $prevChr) && '#' === $this->data[$this->cursor])) { /**/ } |
/src/Symfony/Component/Dotenv/Dotenv.php:333 | 1 | while ('"' !== $this->data[$this->cursor] || ('\\' === $this->data[$this->cursor - 1] && '\\' !== $this->data[$this->cursor - 2])) { /**/ } |
/src/Symfony/Component/Dotenv/Dotenv.php:358 | 1 | if('$' === $this->data[$this->cursor] && isset($this->data[$this->cursor + 1]) && '(' === $this->data[$this->cursor + 1]) { /**/ } |
/src/Symfony/Component/Dotenv/Dotenv.php:352 | 1 | if('\\' === $this->data[$this->cursor] && isset($this->data[$this->cursor + 1]) && ('"' === $this->data[$this->cursor + 1] || "'" === $this->data[$this->cursor + 1])) { /**/ } |
/src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php:161 | 1 | if(($reflectionProperty->isPublic( ) && !\array_key_exists($reflectionProperty->name, $propertyValues)) || ($reflectionProperty->isProtected( ) && !\array_key_exists("\0*\0{$reflectionProperty->name}", $propertyValues)) || ($reflectionProperty->isPrivate( ) && !\array_key_exists("\0{$reflectionProperty->class}\0{$reflectionProperty->name}", $propertyValues))) { /**/ } |
/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php:686 | 1 | if(!($enableMaxDepth = $context[self::ENABLE_MAX_DEPTH] ?? $this->defaultContext[self::ENABLE_MAX_DEPTH] ?? false) || !isset($attributesMetadata[$attribute]) || null === $maxDepth = $attributesMetadata[$attribute]?->getMaxDepth( )) { /**/ } |
/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php:372 | 1 | elseif(!($context[self::REQUIRE_ALL_PROPERTIES] ?? $this->defaultContext[self::REQUIRE_ALL_PROPERTIES] ?? false) && $constructorParameter->hasType( ) && $constructorParameter->getType( )->allowsNull( )) { /**/ } else { /**/ } |
/src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php:226 | 1 | if(!$ignore && ([ ] === $groups || array_intersect(array_merge($attributeMetadata->getGroups( ), ['*']), $groups)) && $this->isAllowedAttribute($classOrObject, $name = $attributeMetadata->getName( ), null, $context)) { /**/ } |
/src/Symfony/Component/HttpClient/HttpClientTrait.php:103 | 1 | if(\is_string($options['body']) && (string) \strlen($options['body']) !== substr($h = $options['normalized_headers']['content-length'][0] ?? '', 16) && ('' !== $h || '' !== $options['body'])) { /**/ } |
/src/Symfony/Component/Form/Extension/Core/Type/DateIntervalType.php:48 | 1 | if(!$options['with_years'] && !$options['with_months'] && !$options['with_weeks'] && !$options['with_days'] && !$options['with_hours'] && !$options['with_minutes'] && !$options['with_seconds']) { /**/ } |
/src/Symfony/Component/Serializer/Encoder/XmlEncoder.php:270 | 1 | if(!is_numeric($attr->nodeValue) || !$typeCastAttributes || (isset($attr->nodeValue[1]) && '0' === $attr->nodeValue[0] && '.' !== $attr->nodeValue[1])) { /**/ } |
/src/Symfony/Component/Serializer/Serializer.php:343 | 1 | if(\in_array($supportedType, ['*', 'object'], true) || $class !== $supportedType && ('object' !== $genericType || !is_subclass_of($class, $supportedType)) && !($doesClassRepresentCollection && str_ends_with($supportedType, '[]') && is_subclass_of(strstr($class, '[]', true), strstr($supportedType, '[]', true)))) { /**/ } |
/src/Symfony/Component/Form/Extension/Core/DataMapper/DataMapper.php:72 | 1 | if($config->getMapped( ) && $form->isSubmitted( ) && $form->isSynchronized( ) && !$form->isDisabled( ) && $this->dataAccessor->isWritable($data, $form)) { /**/ } |
/src/Symfony/Component/HttpKernel/DependencyInjection/RegisterControllerArgumentLocatorsPass.php:144 | 1 | elseif(isset($bindings[$bindingName = $type . ' $' . $name = Target::parseName($p, $k, $parsedName)]) || isset($bindings[$bindingName = $type . ' $' . $parsedName]) || isset($bindings[$bindingName = '$' . $name]) || isset($bindings[$bindingName = $type])) { /**/ } elseif(!$autowire || (!($autowireAttributes ??= $p->getAttributes(Autowire::class, \ReflectionAttribute::IS_INSTANCEOF)) && (!$type || '\\' !== $target[0]))) { /**/ } elseif(is_subclass_of($type, \UnitEnum::class)) { /**/ } elseif(!$p->allowsNull( )) { /**/ } |
/src/Symfony/Component/Form/Extension/Core/Type/FormType.php:82 | 1 | if(!isset($view->vars['attr']['readonly']) && isset($view->parent->vars['attr']['readonly']) && false !== $view->parent->vars['attr']['readonly']) { /**/ } |
/src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToArrayTransformer.php:141 | 1 | if(!empty($value['month']) && !empty($value['day']) && !empty($value['year']) && false === checkdate($value['month'], $value['day'], $value['year'])) { /**/ } |
/src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/UidValueResolver.php:24 | 1 | if($argument->isVariadic( ) || !\is_string($value = $request->attributes->get($argument->getName( ))) || null === ($uidClass = $argument->getType( )) || !is_subclass_of($uidClass, AbstractUid::class, true)) { /**/ } |
/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php:100 | 1 | if(is_dir($item) || (str_starts_with($item, \dirname($cacheDir)) && !is_file($item)) || ($buildDir && str_starts_with($item, \dirname($buildDir)) && !is_file($item))) { /**/ } |
/src/Symfony/Component/HttpKernel/HttpCache/Store.php:151 | 1 | if($this->requestsMatch(isset($entry[1]['vary'][0]) ? implode(', ', $entry[1]['vary']) : '', $request->headers->all( ), $entry[0])) { /**/ } |
/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:478 | 1 | if(null !== $entry && \in_array($response->getStatusCode( ), [500, 502, 503, 504]) && !$entry->headers->hasCacheControlDirective('no-cache') && !$entry->mustRevalidate( )) { /**/ } |
/src/Symfony/Component/ErrorHandler/DebugClassLoader.php:445 | 1 | if(!strncmp($vendor, str_replace('_', '\\', $use), $vendorLen) && str_starts_with($className, 'Symfony\\') && (!class_exists(InstalledVersions::class) || 'symfony/symfony' !== InstalledVersions::getRootPackage( )['name'])) { /**/ } |
/src/Symfony/Component/ErrorHandler/DebugClassLoader.php:460 | 1 | if(!$refl->hasMethod($realName) || !($methodRefl = $refl->getMethod($realName))->isPublic( ) || ($static && !$methodRefl->isStatic( )) || (!$static && $methodRefl->isStatic( ))) { /**/ } |
/src/Symfony/Component/ErrorHandler/DebugClassLoader.php:572 | 1 | if(null !== ($returnType = self::$returnTypes[$class][$method->name] ?? null) && 'docblock' === $this->patchTypes['force'] && !$method->hasReturnType( ) && isset(TentativeTypes::RETURN_TYPES[$returnType[2]][$method->name])) { /**/ } |
/src/Symfony/Component/ErrorHandler/DebugClassLoader.php:653 | 1 | if(isset(self::${$type}[$use][$r->name]) && !isset($doc['deprecated']) && ('finalConstants' === $type || substr($use, 0, strrpos($use, '\\')) !== substr($use, 0, strrpos($class, '\\')))) { /**/ } |
/src/Symfony/Component/VarExporter/ProxyHelper.php:377 | 1 | if(!$mightBeRootConst || false === ($ns = strrpos($symbol, '\\')) || substr($symbol, 0, $ns) !== $namespace || \defined($symbol) || !\defined(substr($symbol, $ns + 1))) { /**/ } |
/src/Symfony/Component/VarExporter/LazyGhostTrait.php:223 | 1 | if($state && (null === $scope || isset($propertyScopes["\0$scope\0$name"])) && LazyObjectState::STATUS_INITIALIZED_FULL !== $state->status && LazyObjectState::STATUS_UNINITIALIZED_PARTIAL !== $state->initialize($this, $name, $readonlyScope ?? $scope)) { /**/ } |
/src/Symfony/Component/VarExporter/Internal/Registry.php:114 | 1 | if(($proto instanceof \Reflector || $proto instanceof \ReflectionGenerator || $proto instanceof \ReflectionType || $proto instanceof \IteratorIterator || $proto instanceof \RecursiveIteratorIterator) && (!$proto instanceof \Serializable && !method_exists($proto, '__wakeup') && !method_exists($class, '__unserialize'))) { /**/ } |
/src/Symfony/Component/ErrorHandler/DebugClassLoader.php:258 | 1 | if(!is_subclass_of($symbols[$i], MockObject::class) && !is_subclass_of($symbols[$i], ProphecySubjectInterface::class) && !is_subclass_of($symbols[$i], Proxy::class) && !is_subclass_of($symbols[$i], ProxyInterface::class) && !is_subclass_of($symbols[$i], LazyObjectInterface::class) && !is_subclass_of($symbols[$i], LegacyProxy::class) && !is_subclass_of($symbols[$i], MockInterface::class) && !is_subclass_of($symbols[$i], IMock::class)) { /**/ } |
/src/Symfony/Component/Finder/Glob.php:74 | 1 | if($delimiter === $car || '.' === $car || '(' === $car || ')' === $car || '|' === $car || '+' === $car || '^' === $car || '$' === $car) { /**/ } elseif('*' === $car) { /**/ } elseif('?' === $car) { /**/ } elseif('{' === $car) { /**/ } elseif('}' === $car && $inCurlies) { /**/ } elseif(',' === $car && $inCurlies) { /**/ } elseif('\\' === $car) { /**/ } else { /**/ } |
/src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php:185 | 1 | if('input' === $this->node->nodeName && 'checkbox' !== strtolower($this->node->getAttribute('type')) && 'radio' !== strtolower($this->node->getAttribute('type'))) { /**/ } |
/src/Symfony/Component/Yaml/Parser.php:178 | 1 | if(isset($values['leadspaces']) && ('!' === $values['value'][0] || self::preg_match('#^(?P<key>' . Inline::REGEX_QUOTED_STRING . '|[^ \'"\{\[].*?) *\:(\s+(?P<value>.+?))?\s*$#u', $this->trimTag($values['value']), $matches))) { /**/ } else { /**/ } |
/src/Symfony/Component/Yaml/Parser.php:199 | 1 | elseif(self::preg_match('#^(?P<key>(?:![^\s]++\s++)?(?:' . Inline::REGEX_QUOTED_STRING . '|[^ \'"\[\{!].*?)) *\:(( |\t)++(?P<value>.+))?$#u', rtrim($this->currentLine), $values) && (!str_contains($values['key'], ' #') || \in_array($values['key'][0], ['"', "'"]))) { /**/ } elseif('"' === $this->currentLine[0] || "'" === $this->currentLine[0]) { /**/ } elseif('{' === $this->currentLine[0]) { /**/ } elseif('[' === $this->currentLine[0]) { /**/ } else { /**/ } |
/src/Symfony/Component/Messenger/Bridge/Doctrine/Transport/PostgreSqlConnection.php:71 | 1 | if((false === $notification || $notification['message'] !== $this->configuration['table_name'] || $notification['payload'] !== $this->configuration['queue_name']) && (microtime(true) * 1000 - $this->queueEmptiedAt < $this->configuration['check_delayed_interval'])) { /**/ } |
/src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/Connection.php:167 | 1 | if('https' === $params['scheme'] && ($params['host'] ?? 'default') === "sqs.{$clientConfiguration['region']}.amazonaws.com" && ($params['path'] ?? '/') === "/{$configuration['account']}/{$configuration['queue_name']}") { /**/ } |
/src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/Connection.php:335 | 1 | if('.' === $name[0] || self::MESSAGE_ATTRIBUTE_NAME === $name || \strlen($name) > 256 || str_ends_with($name, '.') || str_starts_with($name, 'AWS.') || str_starts_with($name, 'Amazon.') || preg_match('/([^a-zA-Z0-9_\.-]+|\.\.)/', $name)) { /**/ } |
/src/Symfony/Component/Finder/Glob.php:56 | 1 | if($firstByte && $strictWildcardSlash && isset($glob[$i + 2]) && '**' === $glob[$i + 1] . $glob[$i + 2] && (!isset($glob[$i + 3]) || '/' === $glob[$i + 3])) { /**/ } |
/src/Symfony/Component/Config/FileLocator.php:84 | 1 | if('/' === $file[0] || '\\' === $file[0] || (\strlen($file) > 3 && ctype_alpha($file[0]) && ':' === $file[1] && ('\\' === $file[2] || '/' === $file[2])) || null !== parse_url($file, \PHP_URL_SCHEME)) { /**/ } |
/src/Symfony/Component/Translation/Loader/XliffFileLoader.php:117 | 1 | if(isset($translation->target) && 'needs-translation' === (string) $translation->target->attributes( )['state'] && \in_array((string) $translation->target, [$source, (string) $translation->source], true)) { /**/ } |
/src/Symfony/Component/Security/Http/HttpUtils.php:56 | 1 | if(null !== $this->secureDomainRegexp && 'https' === $this->urlMatcher->getContext( )->getScheme( ) && preg_match('#^https?:[/\\\\]{2,}+[^/]++#i', $path, $host) && !preg_match(sprintf($this->secureDomainRegexp, preg_quote($request->getHttpHost( ))), $host[0])) { /**/ } |
/src/Symfony/Component/Security/Core/Authorization/Voter/AuthenticatedVoter.php:51 | 1 | if(null === $attribute || (self::IS_AUTHENTICATED_FULLY !== $attribute && self::IS_AUTHENTICATED_REMEMBERED !== $attribute && self::IS_AUTHENTICATED !== $attribute && self::IS_IMPERSONATOR !== $attribute && self::IS_REMEMBERED !== $attribute)) { /**/ } |
/src/Symfony/Component/Cache/Marshaller/TagAwareMarshaller.php:33 | 1 | if(\is_array($value) && \is_array($value['tags'] ?? null) && \array_key_exists('value', $value) && \count($value) === 2 + (\is_string($value['meta'] ?? null) && 8 === \strlen($value['meta']))) { /**/ } else { /**/ } |
/src/Symfony/Component/Cache/Traits/RedisTrait.php:295 | 1 | if((null !== $auth && !$redis->auth($auth)) || (($params['dbindex'] || ('pconnect' === $connect && '0' !== \ini_get('redis.pconnect.pooling_enabled'))) && !$redis->select($params['dbindex']))) { /**/ } |
/src/Symfony/Component/Translation/Loader/PhpFileLoader.php:25 | 2 | if([ ] === self::$cache && \function_exists('opcache_invalidate') && filter_var(\ini_get('opcache.enable'), \FILTER_VALIDATE_BOOL) && (!\in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true) || filter_var(\ini_get('opcache.enable_cli'), \FILTER_VALIDATE_BOOL))) { /**/ } |
/src/Symfony/Component/Translation/Translator.php:184 | 1 | if($this->hasIntlFormatter && ($catalogue->defines($id, $domain . MessageCatalogue::INTL_DOMAIN_SUFFIX) || (\strlen($domain) > $len && 0 === substr_compare($domain, MessageCatalogue::INTL_DOMAIN_SUFFIX, -$len, $len)))) { /**/ } |
/src/Symfony/Component/Mailer/Bridge/Mailgun/Webhook/MailgunRequestParser.php:48 | 1 | if(!isset($content['signature']['timestamp']) || !isset($content['signature']['token']) || !isset($content['signature']['signature']) || !isset($content['event-data']['event'])) { /**/ } |
/src/Symfony/Component/Mailer/Bridge/Sendgrid/Webhook/SendgridRequestParser.php:47 | 1 | if(!isset($content[0]['email']) || !isset($content[0]['timestamp']) || !isset($content[0]['event']) || !isset($content[0]['sg_message_id'])) { /**/ } |
/src/Symfony/Component/PropertyAccess/PropertyAccessor.php:535 | 1 | if($recursive || !$value instanceof \DateTimeInterface || !\in_array($value::class, ['DateTime', 'DateTimeImmutable'], true) || __FILE__ !== ($e->getTrace( )[0]['file'] ?? null)) { /**/ } |
/src/Symfony/Component/PropertyAccess/PropertyAccessor.php:281 | 1 | if(($zval[self::VALUE] instanceof \ArrayAccess && !$zval[self::VALUE]->offsetExists($property)) || (\is_array($zval[self::VALUE]) && !isset($zval[self::VALUE][$property]) && !\array_key_exists($property, $zval[self::VALUE]))) { /**/ } |
/src/Symfony/Component/ExpressionLanguage/Parser.php:320 | 1 | if($this->stream->current->test(Token::STRING_TYPE) || $this->stream->current->test(Token::NAME_TYPE) || $this->stream->current->test(Token::NUMBER_TYPE)) { /**/ } elseif($this->stream->current->test(Token::PUNCTUATION_TYPE, '(')) { /**/ } else { /**/ } |
/src/Symfony/Component/Security/Http/Authenticator/X509Authenticator.php:49 | 1 | elseif($request->server->has($this->credentialsKey) && preg_match('#' . preg_quote($this->credentialUserIdentifier, '#') . '=([^,/]++)#', $request->server->get($this->credentialsKey), $matches)) { /**/ } |
/src/Symfony/Component/EventDispatcher/DependencyInjection/RegisterListenersPass.php:172 | 1 | if(null === ($class = $container->getDefinition($id)->getClass( )) || !($r = $container->getReflectionClass($class, false)) || !$r->hasMethod($method) || 1 > ($m = $r->getMethod($method))->getNumberOfParameters( ) || !($type = $m->getParameters( )[0]->getType( )) instanceof \ReflectionNamedType || $type->isBuiltin( ) || Event::class === ($name = $type->getName( ))) { /**/ } |
/src/Symfony/Component/EventDispatcher/DependencyInjection/RegisterListenersPass.php:89 | 1 | if(null !== ($class = $container->getDefinition($id)->getClass( )) && ($r = $container->getReflectionClass($class, false)) && !$r->hasMethod($event['method'])) { /**/ } |
/src/Symfony/Component/CssSelector/Parser/Parser.php:197 | 1 | if(!(2 === $used || 3 === $used && $stream->getUsed( )[0]->isWhiteSpace( ) || $used >= 3 && $stream->getUsed( )[$used - 3]->isDelimiter([',']) || $used >= 4 && $stream->getUsed( )[$used - 3]->isWhiteSpace( ) && $stream->getUsed( )[$used - 4]->isDelimiter([',']))) { /**/ } |
/src/Symfony/Bundle/FrameworkBundle/Command/BuildDebugContainerTrait.php:42 | 1 | if(!$kernel->isDebug( ) || !$kernel->getContainer( )->getParameter('debug.container.dump') || !(new ConfigCache($kernel->getContainer( )->getParameter('debug.container.dump'), true))->isFresh( )) { /**/ } else { /**/ } |
/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php:352 | 1 | if(1 === \count($workflows) && isset($workflows['workflows']) && !array_is_list($workflows['workflows']) && array_diff(array_keys($workflows['workflows']), ['audit_trail', 'type', 'marking_store', 'supports', 'support_strategy', 'initial_marking', 'places', 'transitions'])) { /**/ } |
/src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php:196 | 1 | if(!$input->getArgument('name') && !$input->getOption('tag') && !$input->getOption('parameter') && !$input->getOption('env-vars') && !$input->getOption('env-var') && $input->isInteractive( )) { /**/ } |
/src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php:220 | 1 | if($input->mustSuggestArgumentValuesFor('name') && !$input->getOption('tag') && !$input->getOption('tags') && !$input->getOption('parameter') && !$input->getOption('parameters') && !$input->getOption('env-var') && !$input->getOption('env-vars') && !$input->getOption('types') && !$input->getOption('deprecations')) { /**/ } |
/src/Symfony/Component/Console/Command/CompleteCommand.php:112 | 1 | elseif($completionInput->mustSuggestArgumentValuesFor('command') && $command->getName( ) !== $completionInput->getCompletionValue( ) && !\in_array($completionInput->getCompletionValue( ), $command->getAliases( ), true)) { /**/ } else { /**/ } |
/src/Symfony/Component/Console/Helper/Table.php:724 | 1 | if(isset($rows[$unmergedRowKey]) && \is_array($rows[$unmergedRowKey]) && ($this->getNumberOfColumns($rows[$unmergedRowKey]) + $this->getNumberOfColumns($unmergedRows[$unmergedRowKey]) <= $this->numberOfColumns)) { /**/ } else { /**/ } |
/src/Symfony/Component/Console/Input/ArgvInput.php:277 | 1 | elseif((isset($this->options[$name]) || isset($this->options[$name = $this->definition->shortcutToName($name)])) && $this->tokens[$i + 1] === $this->options[$name]) { /**/ } |
/src/Symfony/Component/Console/Descriptor/TextDescriptor.php:53 | 1 | if($option->acceptValue( ) && null !== $option->getDefault( ) && (!\is_array($option->getDefault( )) || \count($option->getDefault( )))) { /**/ } else { /**/ } |
/src/Symfony/Component/HttpFoundation/Response.php:1278 | 1 | while ($level-- > $targetLevel && ($s = $status[$level]) && (!isset($s['del']) ? !isset($s['flags']) || ($s['flags'] & $flags) === $flags : $s['del'])) { /**/ } |
/src/Symfony/Component/HttpFoundation/Response.php:1312 | 1 | if(false !== stripos($this->headers->get('Content-Disposition') ?? '', 'attachment') && 1 == preg_match('/MSIE (.*?);/i', $request->server->get('HTTP_USER_AGENT') ?? '', $match) && true === $request->isSecure( )) { /**/ } |
/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:1193 | 1 | if(['...'] === $arguments && ($definition->isLazy( ) || 'Closure' !== ($definition->getClass( ) ?? 'Closure')) && ($callable[0] instanceof Reference || ($callable[0] instanceof Definition && !$this->definitionVariables->contains($callable[0])))) { /**/ } |
/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:1281 | 1 | if(null !== $r && (null !== $constructor = $r->getConstructor( )) && 0 === $constructor->getNumberOfRequiredParameters( ) && Container::class !== $constructor->getDeclaringClass( )->name) { /**/ } |
/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:1044 | 1 | if($byConstructor && isset($this->circularReferences[$id][$targetId]) && !$this->circularReferences[$id][$targetId] && !($this->hasProxyDumper && $definition->isLazy( ))) { /**/ } |
/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:1134 | 1 | if(([$file, $code] = $services[$id]) && null !== $file && ($definition->isPublic( ) || !$this->isTrivialInstance($definition) || isset($this->locatedIds[$id]))) { /**/ } |
/src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php:699 | 1 | if(null !== $target && str_starts_with($target, '.' . $type . ' $') && (new Target($target = substr($target, \strlen($type) + 3)))->getParsedName( ) === $name) { /**/ } |
/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:641 | 1 | if('service_container' !== $id && $id !== $cId && ContainerInterface::IGNORE_ON_UNINITIALIZED_REFERENCE !== $behavior && $this->container->has($id) && $this->isTrivialInstance($def = $this->container->findDefinition($id))) { /**/ } |
/src/Symfony/Bundle/WebProfilerBundle/EventListener/WebDebugToolbarListener.php:121 | 1 | if(self::DISABLED === $this->mode || !$response->headers->has('X-Debug-Token') || $response->isRedirection( ) || ($response->headers->has('Content-Type') && !str_contains($response->headers->get('Content-Type') ?? '', 'html')) || 'html' !== $request->getRequestFormat( ) || false !== stripos($response->headers->get('Content-Disposition', ''), 'attachment;')) { /**/ } |
/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php:136 | 1 | if(!$request->attributes->getBoolean('_stateless') && $request->hasSession( ) && ($session = $request->getSession( ))->isStarted( ) && $session->getFlashBag( ) instanceof AutoExpireFlashBag) { /**/ } |
/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/TestServiceContainerWeakRefPass.php:34 | 1 | if($id && '.' !== $id[0] && (!$definition->isPublic( ) || $definition->isPrivate( ) || $definition->hasTag('container.private')) && !$definition->hasErrors( ) && !$definition->isAbstract( )) { /**/ } |
/src/Symfony/Component/OptionsResolver/OptionsResolver.php:235 | 1 | if(isset($params[0]) && null !== ($type = $params[0]->getType( )) && self::class === $type->getName( ) && (!isset($params[1]) || (($type = $params[1]->getType( )) instanceof \ReflectionNamedType && Options::class === $type->getName( )))) { /**/ } |
/src/Symfony/Component/OptionsResolver/OptionsResolver.php:1088 | 1 | if($triggerDeprecation && isset($this->deprecated[$option]) && (isset($this->given[$option]) || ($this->calling && \is_string($this->deprecated[$option]['message'])))) { /**/ } |
/src/Symfony/Component/String/AbstractUnicodeString.php:531 | 1 | if(0 === $codePoint || 0x034F === $codePoint || (0x200B <= $codePoint && 0x200F >= $codePoint) || 0x2028 === $codePoint || 0x2029 === $codePoint || (0x202A <= $codePoint && 0x202E >= $codePoint) || (0x2060 <= $codePoint && 0x2063 >= $codePoint)) { /**/ } |
/src/Symfony/Component/Routing/Router.php:296 | 2 | if([ ] === self::$cache && \function_exists('opcache_invalidate') && filter_var(\ini_get('opcache.enable'), \FILTER_VALIDATE_BOOL) && (!\in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true) || filter_var(\ini_get('opcache.enable_cli'), \FILTER_VALIDATE_BOOL))) { /**/ } |
/src/Symfony/Component/Routing/Matcher/UrlMatcher.php:144 | 2 | if($hasTrailingVar && ($hasTrailingSlash || (null === $m = $matches[\count($compiledRoute->getPathVariables( ))] ?? null) || '/' !== ($m[-1] ?? '/')) && preg_match($regex, $trimmedPathinfo, $m)) { /**/ } |
/src/Symfony/Component/Routing/Matcher/UrlMatcher.php:215 | 1 | if($route->getCondition( ) && !$this->getExpressionLanguage( )->evaluate($route->getCondition( ), ['context' => $this->context, 'request' => $this->request ?: $this->createRequest($pathinfo), 'params' => $routeParameters, ])) { /**/ } |
/src/Symfony/Component/Routing/Matcher/TraceableUrlMatcher.php:104 | 2 | if($hasTrailingVar && ($hasTrailingSlash || (null === $m = $matches[\count($compiledRoute->getPathVariables( ))] ?? null) || '/' !== ($m[-1] ?? '/')) && preg_match($regex, $trimmedPathinfo, $m)) { /**/ } |
/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherDumper.php:187 | 1 | if(('' === $prefix || str_starts_with($url, $prefix)) && (preg_match($rx, $url) || preg_match($rx, $url . '/')) && (!$host || !$hostRx || preg_match($hostRx, $host))) { /**/ } |
/src/Symfony/Component/Yaml/Parser.php:296 | 1 | elseif(!isset($values['value']) || '' === $values['value'] || str_starts_with($values['value'], '#') || (null !== $subTag = $this->getLineTag($values['value'], $flags)) || '<<' === $key) { /**/ } else { /**/ } |
/src/Symfony/Component/Yaml/Parser.php:787 | 1 | if('mapping' === $context && \is_string($parsedValue) && '"' !== $value[0] && "'" !== $value[0] && '[' !== $value[0] && '{' !== $value[0] && '!' !== $value[0] && str_contains($parsedValue, ': ')) { /**/ } |
/src/Symfony/Component/Yaml/Dumper.php:100 | 2 | if(Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK & $flags && \is_string($value->getValue( )) && str_contains($value->getValue( ), "\n") && !str_contains($value->getValue( ), "\r\n")) { /**/ } |
/src/Symfony/Component/Yaml/Dumper.php:145 | 2 | if(Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK & $flags && \is_string($value->getValue( )) && str_contains($value->getValue( ), "\n") && !str_contains($value->getValue( ), "\r\n")) { /**/ } |
/src/Symfony/Component/Yaml/Inline.php:307 | 1 | if($output && ('@' === $output[0] || '`' === $output[0] || '|' === $output[0] || '>' === $output[0] || '%' === $output[0])) { /**/ } |
/src/Symfony/Component/Yaml/Inline.php:530 | 1 | if(!$isValueQuoted && \is_string($value) && '' !== $value && '&' === $value[0] && !self::isBinaryString($value) && Parser::preg_match(Parser::REFERENCE_PATTERN, $value, $matches)) { /**/ } |
/src/Symfony/Component/Yaml/Inline.php:755 | 1 | if('' !== $tag && (!isset($value[$nextOffset]) || !\in_array($value[$nextOffset], ['[', '{'], true)) && ('!' === $tag[0] || \in_array($tag, ['str', 'php/const', 'php/enum', 'php/object'], true))) { /**/ } |
/src/Symfony/Component/Mime/MessageConverter.php:82 | 1 | if(2 === \count($parts) && $parts[0] instanceof TextPart && 'text' === $parts[0]->getMediaType( ) && 'plain' === $parts[0]->getMediaSubtype( ) && $parts[1] instanceof TextPart && 'text' === $parts[1]->getMediaType( ) && 'html' === $parts[1]->getMediaSubtype( )) { /**/ } |
/src/Symfony/Component/DependencyInjection/ContainerBuilder.php:1048 | 1 | if(true === $tryProxy && $definition->isLazy( ) && ['Closure', 'fromCallable'] !== $definition->getFactory( ) && !$tryProxy = !($proxy = $this->proxyInstantiator ??= new LazyServiceInstantiator( )) || $proxy instanceof RealServiceInstantiator) { /**/ } |
/src/Symfony/Component/DependencyInjection/EnvVarProcessor.php:166 | 1 | elseif('' === ($env = $_ENV[$name] ?? (str_starts_with($name, 'HTTP_') ? null : ($_SERVER[$name] ?? null))) || (false !== $env && false === $env ??= getenv($name) ?? false)) { /**/ } |
/src/Symfony/Component/DependencyInjection/Compiler/CheckDefinitionValidityPass.php:47 | 1 | if(!$definition->isAbstract( ) && !$definition->isSynthetic( ) && !$definition->getClass( ) && !$definition->hasTag('container.service_locator') && (!$definition->getFactory( ) || !preg_match(FileLoader::ANONYMOUS_ID_REGEXP, $id))) { /**/ } |
/src/Symfony/Component/DependencyInjection/ContainerBuilder.php:1084 | 1 | if(null !== $id && $definition->isShared( ) && (isset($this->services[$id]) || isset($this->privates[$id])) && (true === $tryProxy || !$definition->isLazy( ))) { /**/ } |
/src/Symfony/Component/DependencyInjection/Compiler/AttributeAutoconfigurationPass.php:85 | 1 | if(!$value instanceof Definition || !$value->isAutoconfigured( ) || $value->isAbstract( ) || $value->hasTag('container.ignore_attributes') || !($classReflector = $this->container->getReflectionClass($value->getClass( ), false))) { /**/ } |
/src/Symfony/Component/DependencyInjection/Compiler/CheckTypeDeclarationsPass.php:288 | 1 | if('callable' === $type && \is_array($value) && isset($value[0]) && ($value[0] instanceof Reference || $value[0] instanceof Definition || \is_string($value[0]))) { /**/ } |
/src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php:465 | 1 | if(($this->container->has($n = $name) && !$this->container->findDefinition($n)->isAbstract( )) || ($this->container->has($n = $parsedName) && !$this->container->findDefinition($n)->isAbstract( ))) { /**/ } |
/src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php:193 | 1 | if($isRoot && ($definition = $this->container->getDefinition($this->currentId)) && null !== ($this->decoratedId = $definition->innerServiceId) && $this->container->has($this->decoratedId)) { /**/ } |
/src/Symfony/Component/Routing/Matcher/Dumper/StaticPrefixCollection.php:172 | 1 | if(('?' === ($prefix[$j] ?? '') || '?' === ($anotherPrefix[$j] ?? '')) && ($prefix[$j] ?? '') !== ($anotherPrefix[$j] ?? '')) { /**/ } |
/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:137 | 1 | if($hasTrailingVar && ($hasTrailingSlash || (null === $n = $matches[\count($vars)] ?? null) || '/' !== ($n[-1] ?? '/')) && preg_match($regex, $this->matchHost ? $host . '.' . $trimmedPathinfo : $trimmedPathinfo, $n) && $m === (int) $n['MARK']) { /**/ } |
/src/Symfony/Component/Routing/Generator/UrlGenerator.php:222 | 1 | if(null !== $this->strictRequirements && !preg_match('#^' . preg_replace('/\(\?(?:=|<=|!|<!)((?:[^()\\\\]+|\\\\.|\((?1)\))*)\)/', '', $token[2]) . '$#i' . (empty($token[4]) ? '' : 'u'), $mergedParams[$token[3]])) { /**/ } |
/src/Symfony/Component/Routing/Generator/UrlGenerator.php:169 | 1 | if(null !== $this->strictRequirements && !preg_match('#^' . preg_replace('/\(\?(?:=|<=|!|<!)((?:[^()\\\\]+|\\\\.|\((?1)\))*)\)/', '', $token[2]) . '$#i' . (empty($token[4]) ? '' : 'u'), $mergedParams[$token[3]] ?? '')) { /**/ } |
/src/Symfony/Component/CssSelector/Parser/Parser.php:154 | 1 | if($peek->isWhitespace( ) || $peek->isFileEnd( ) || $peek->isDelimiter([',', '+', '>', '~']) || ($insideNegation && $peek->isDelimiter([')']))) { /**/ } |
/src/Symfony/Component/Routing/Loader/Psr4DirectoryLoader.php:82 | 1 | if('php' !== $file->getExtension( ) || !class_exists($className = $psr4Prefix . '\\' . $file->getBasename('.php')) || (new \ReflectionClass($className))->isAbstract( )) { /**/ } |
/src/Symfony/Component/AssetMapper/ImportMap/RemotePackageDownloader.php:51 | 1 | if(isset($installed[$entry->importName]) && $installed[$entry->importName]['version'] === $entry->version && $this->remotePackageStorage->isDownloaded($entry) && $this->areAllExtraFilesDownloaded($entry, $installed[$entry->importName]['extraFiles'])) { /**/ } |