156 Commits

Author SHA1 Message Date
Nicolas Grekas
b236e0e25e Merge branch '8.0' into 8.1
* 8.0:
  Fix merge
  [VarDumper] Wrong dumper output for Accept: aplication/json requests
  [HttpKernel] Reset router locale to default when finishing main request
  Only decrement pendingRequests when it's more than zero
  [Dotenv] Fix self-referencing variables with defaults and env key resolution during deferred expansion
  Improve Bulgarian translations in validators.bg.xlf
  [Cache] Fix ChainAdapter ignoring item expiry when propagating to earlier adapters
  [Form] Fix typed property initialization in ValidatorExtension
  [Messenger] Fix duplicate pending messages in Redis transport with batch handlers
  Fix deprecation notices for "@method" annotations when implementing interfaces directly
2026-03-17 16:35:01 +01:00
Nicolas Grekas
5aa15c64e2 Merge branch '7.4' into 8.0
* 7.4:
  [VarDumper] Wrong dumper output for Accept: aplication/json requests
  [HttpKernel] Reset router locale to default when finishing main request
  Only decrement pendingRequests when it's more than zero
  [Dotenv] Fix self-referencing variables with defaults and env key resolution during deferred expansion
  Improve Bulgarian translations in validators.bg.xlf
  [Cache] Fix ChainAdapter ignoring item expiry when propagating to earlier adapters
  [Form] Fix typed property initialization in ValidatorExtension
  [Messenger] Fix duplicate pending messages in Redis transport with batch handlers
  Fix deprecation notices for "@method" annotations when implementing interfaces directly
2026-03-17 15:00:10 +01:00
Nicolas Grekas
b4e474183f Merge branch '6.4' into 7.4
* 6.4:
  [HttpKernel] Reset router locale to default when finishing main request
  Only decrement pendingRequests when it's more than zero
  [Dotenv] Fix self-referencing variables with defaults and env key resolution during deferred expansion
  Improve Bulgarian translations in validators.bg.xlf
  [Cache] Fix ChainAdapter ignoring item expiry when propagating to earlier adapters
  [Form] Fix typed property initialization in ValidatorExtension
  [Messenger] Fix duplicate pending messages in Redis transport with batch handlers
  Fix deprecation notices for "@method" annotations when implementing interfaces directly
2026-03-17 14:25:29 +01:00
Nicolas Grekas
aac6b79e6a Merge branch '8.0' into 8.1
* 8.0:
  Fix merge
  Fix merge
  [Serializer] Fix self type resolution on promoted constructor parameters
  [VarExporter] Skip rewriting initialized readonly properties during hydration
  [ErrorHandler] Fix deprecation notices for "@method" annotations and classes with __call
  Add a test for `self` constructor promoted parameter
2026-03-10 18:24:19 +01:00
Matthias Pigulla
2ea68f0e18 Fix deprecation notices for "@method" annotations when implementing interfaces directly 2026-03-10 16:56:14 +01:00
Nicolas Grekas
839f640cce Merge branch '7.4' into 8.0
* 7.4:
  Fix merge
  Fix merge
  [Serializer] Fix self type resolution on promoted constructor parameters
  [VarExporter] Skip rewriting initialized readonly properties during hydration
  [ErrorHandler] Fix deprecation notices for "@method" annotations and classes with __call
  Add a test for `self` constructor promoted parameter
2026-03-10 16:55:10 +01:00
Nicolas Grekas
32b4dbc1e4 Merge branch '6.4' into 7.4
* 6.4:
  [VarExporter] Skip rewriting initialized readonly properties during hydration
  [ErrorHandler] Fix deprecation notices for "@method" annotations and classes with __call
2026-03-10 16:16:03 +01:00
Matthias Pigulla
f871949078 [ErrorHandler] Fix deprecation notices for "@method" annotations and classes with __call 2026-03-10 15:41:39 +01:00
Matthias Pigulla
81c7c035a2 [ErrorHandler] Allow namespace remapping in DebugClassLoader to relax the "same vendor" constraint 2026-03-03 17:55:36 +01:00
Nicolas Grekas
7620b97ec0 * 7.4: (27 commits) [JsonStreamer] Fix exponential resource class memory growth [Cache] Fix DSN auth not passed to clusters in RedisTrait do not parse "scalar" as an object [Form] Fix OrderedHashMap auto-increment logic with mixed keys [HttpClient] Skip HTTP/3 when using a proxy don't skip custom view transformers while normalizing submitted newlines [Serializer] Fix is/has/can accessor naming regression while preserving collision detection fix exception "Symfony\Component\TypeInfo\Exception\InvalidArgumentException: "Symfony\Component\TypeInfo\Type\UnionType" expects at least 2 types." when property phpdoc is "value-of<Enum>|null" [DoctrineBridge] Fix custom type based on Uid on entity loader let tests fail on PHPUnit notices [PropertyInfo] Throw when phpdocumentor/reflection-docblock v6 is in use (branch 6.4 only) do not use PHPUnit mock objects without configured expectations [Form] Fix ICU 72+ whitespace handling in DateTimeToLocalizedStringTransformer [ErrorHandler] fix parsing of complexe type do not use PHPUnit mock objects without configured expectations [Process] Adjust Process mustRun method phpdoc do not use PHPUnit mock objects without configured expectations do not use PHPUnit mock objects without configured expectations do not use PHPUnit mock objects without configured expectations do not use PHPUnit mock objects without configured expectations ... 2026-01-23 12:07:10 +01:00
Nicolas Grekas
8da531f364 Merge branch '7.3' into 7.4
* 7.3:
  fix exception "Symfony\Component\TypeInfo\Exception\InvalidArgumentException: "Symfony\Component\TypeInfo\Type\UnionType" expects at least 2 types." when property phpdoc is "value-of<Enum>|null"
  [DoctrineBridge] Fix custom type based on Uid on entity loader
  [PropertyInfo] Throw when phpdocumentor/reflection-docblock v6 is in use (branch 6.4 only)
  [ErrorHandler] fix parsing of complexe type
2026-01-20 17:42:42 +01:00
Nicolas Grekas
c2ee39c0f4 Merge branch '6.4' into 7.3
* 6.4:
  [DoctrineBridge] Fix custom type based on Uid on entity loader
  [PropertyInfo] Throw when phpdocumentor/reflection-docblock v6 is in use (branch 6.4 only)
  [ErrorHandler] fix parsing of complexe type
2026-01-20 17:37:04 +01:00
Jérémy Derussé
8c18400784 [ErrorHandler] fix parsing of complexe type 2026-01-19 20:28:19 +01:00
Nicolas Grekas
7fec7756fd Merge branch '7.4' into 8.0
* 7.4:
  skip legacy extractor test with symfony/property-info 8.0+
  chore: heredoc indentation as of PHP 7.3
  [Actions] remove dead code from integration-test We can always revisit later if needed.From 2021 its there and not in use
2025-08-12 14:49:34 +02:00
Dariusz Ruminski
eaf56e6d2e chore: heredoc indentation as of PHP 7.3
https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc
2025-08-10 00:28:14 +02:00
Nicolas Grekas
b1996c2533 Merge branch '7.4' into 8.0
* 7.4:
  Use phpunit attribute
  Remove some implicit bool type juggling
  [Scheduler] Fix `scheduler.task` tag arguments optionality
  use false instead of null to hide the currency symbol
  [FrameworkBundle] Fix block type from `OK` to `ERROR` when local vault is disabled in `SecretsRemoveCommand`
  run tests with PHPUnit 12.1 on PHP >= 8.3
  Fix wrong boolean values
  minor #61328 [FrameworkBundle] Decouple ControllerResolverTest from HttpKernel (nicolas-grekas)
  [Messenger] Fix NoAutoAckStamp handling in Worker::flush()
  [DependencyInjection] Dump XML using plain PHP, no DOM needed
2025-08-05 12:26:20 +02:00
Gina Peter Banyard
fd972442b6 Remove some implicit bool type juggling 2025-08-05 12:19:40 +02:00
Nicolas Grekas
61475f5fc6 Merge branch '7.4' into 8.0
* 7.4:
  CS fixes
2025-08-04 10:14:19 +02:00
Nicolas Grekas
5ad52d82db CS fixes 2025-08-04 10:00:56 +02:00
Nicolas Grekas
c50051820d Merge branch '7.4' into 8.0
* 7.4:
  [HttpKernel][Security] Refactor: use `getAttributes` with argument
  mark getRequiredOptions()/getDefaultOption() of UniqueEntity as deprecated
  do not install ext-zstd on PHP 8.5
  [DoctrineBridge] Prevent idle connection listener from running on subrequests
  optimize `in_array` calls
  [Routing] Add test to validate that default value is allowed to not match requirement
  [DependencyInjection] Fix proxying services defined with an abstract class and a factory
  fix handling required options
  Fix @var phpdoc
  [Lock] [MongoDB] Enforce readPreference=primary and writeConcern=majority
  [FrameworkBundle] fix phpdoc in `MicroKernelTrait`
  Fixed validator translations for Albanian
2025-07-15 13:41:37 +02:00
Gregor Harlan
5ab5a595c1 optimize in_array calls 2025-07-15 11:40:20 +02:00
Nicolas Grekas
f011fa80da CS fixes 2025-07-10 10:14:14 +02:00
Nicolas Grekas
aae9ff4f22 Remove deadcode after the bump to PHP >= 8.4 2025-06-04 12:38:30 +02:00
Christian Flothmann
ab3e42610d Merge branch '7.2' into 7.3
* 7.2:
  Review validator-related japanese translations with ids 114-120
  don't trigger "internal" deprecations for PHPUnit Stub objects
  drop comments while lexing unquoted strings
2025-03-03 08:13:19 +01:00
Christian Flothmann
102be5e6a8 Merge branch '6.4' into 7.2
* 6.4:
  Review validator-related japanese translations with ids 114-120
  don't trigger "internal" deprecations for PHPUnit Stub objects
  drop comments while lexing unquoted strings
2025-03-03 08:12:39 +01:00
Christian Flothmann
aa3bcf4f76 don't trigger "internal" deprecations for PHPUnit Stub objects 2025-03-01 14:00:38 +01:00
Christian Flothmann
8390131a15 Merge branch '7.2' into 7.3
* 7.2: (47 commits)
  Remove comment about AppVeyor in `phpunit`
  [Webhook][RemoteEvent] fix SendgridPayloadConverter category support
  Update old Appveyor skip conditions
  sync the Dutch translation file with changes from the 7.2 branch
  [Yaml] fix inline notation with inline comment
  clean up code for doctrine/persistence 2.x
  Generate missing translations using Gemini
  fix(property-info): make sure that SerializerExtractor returns null for invalid class metadata
  add translations for the Slug constraint
  [RemoteEvent][Webhook] fix SendgridRequestParser & SendgridPayloadConverter in case of missing sg_message_id
  [Messenger] Fix `TransportMessageIdStamp` not always added
  [DoctrineBridge] Fix compatibility to Doctrine persistence 2.5 in Doctrine Bridge 6.4 to avoid Projects stuck on 6.3
  [PropertyInfo] Fix add missing composer conflict
  [ErrorHandler] Don't trigger "internal" deprecations for anonymous LazyClosure instances
  [VarDumper] Fix displaying closure's "this" from anonymous classes
  [Doctrine][Messenger] Prevents multiple TransportMessageIdStamp being stored in envelope
  [HttpKernel] Don't override existing LoggerInterface autowiring alias in LoggerPass
  reject inline notations followed by invalid content
  Fix predis command error checking
  [Security] Fix triggering session tracking from ContextListener
  ...
2025-01-07 14:06:36 +01:00
Christian Flothmann
959a74d044 Merge branch '7.1' into 7.2
* 7.1: (27 commits)
  add translations for the Slug constraint
  [Messenger] Fix `TransportMessageIdStamp` not always added
  [DoctrineBridge] Fix compatibility to Doctrine persistence 2.5 in Doctrine Bridge 6.4 to avoid Projects stuck on 6.3
  [PropertyInfo] Fix add missing composer conflict
  [ErrorHandler] Don't trigger "internal" deprecations for anonymous LazyClosure instances
  [VarDumper] Fix displaying closure's "this" from anonymous classes
  [Doctrine][Messenger] Prevents multiple TransportMessageIdStamp being stored in envelope
  [HttpKernel] Don't override existing LoggerInterface autowiring alias in LoggerPass
  reject inline notations followed by invalid content
  [Security] Fix triggering session tracking from ContextListener
  [AssetMapper] add leading slash to public prefix
  fix: modify Exception message parameter order
  [Yaml] Fix parsing of unquoted strings in Parser::lexUnquotedString() to ignore spaces
  Update exception.css
  Remove outdated guard from security xsd schema
  Bump Symfony version to 7.1.11
  Update VERSION for 7.1.10
  Update CHANGELOG for 7.1.10
  Bump Symfony version to 6.4.18
  Update VERSION for 6.4.17
  ...
2025-01-07 10:39:55 +01:00
Christian Flothmann
f4d1fd1bcb Merge branch '6.4' into 7.1
* 6.4: (23 commits)
  add translations for the Slug constraint
  [Messenger] Fix `TransportMessageIdStamp` not always added
  [DoctrineBridge] Fix compatibility to Doctrine persistence 2.5 in Doctrine Bridge 6.4 to avoid Projects stuck on 6.3
  [PropertyInfo] Fix add missing composer conflict
  [ErrorHandler] Don't trigger "internal" deprecations for anonymous LazyClosure instances
  [VarDumper] Fix displaying closure's "this" from anonymous classes
  [Doctrine][Messenger] Prevents multiple TransportMessageIdStamp being stored in envelope
  [HttpKernel] Don't override existing LoggerInterface autowiring alias in LoggerPass
  reject inline notations followed by invalid content
  [Security] Fix triggering session tracking from ContextListener
  [AssetMapper] add leading slash to public prefix
  fix: modify Exception message parameter order
  [Yaml] Fix parsing of unquoted strings in Parser::lexUnquotedString() to ignore spaces
  Update exception.css
  Bump Symfony version to 6.4.18
  Update VERSION for 6.4.17
  Update CONTRIBUTORS for 6.4.17
  Update CHANGELOG for 6.4.17
  Fix exception thrown by YamlEncoder
  [AssetMapper] Fix JavaScript compiler create self-referencing imports
  ...
2025-01-07 10:23:14 +01:00
Nicolas Grekas
87d26c219e [ErrorHandler] Don't trigger "internal" deprecations for anonymous LazyClosure instances 2025-01-05 21:34:05 +01:00
Christian Flothmann
e0a44070e6 support non-empty-string/non-empty-list when patching return types 2024-12-07 09:53:13 +01:00
Christian Flothmann
ad57ca0486 resolve class constant types when patching return types 2024-10-14 10:54:27 +02:00
Dariusz Ruminski
9faaecf000 chore: CS fixes 2024-06-24 18:01:36 +02:00
Alexander M. Turek
64908ae925 Prefix all sprintf() calls 2024-06-20 17:52:34 +02:00
Nicolas Grekas
07a7ca2489 Merge branch '7.0' into 7.1
* 7.0:
  [DependencyInjection] Fix computing error messages involving service locators
  [Serializer] Fix unknown types normalization type when know type
  [ErrorHandler] Fix parsing messages that contain anonymous classes on PHP >= 8.3.3
  [AssetMapper] Fix enquoted string pattern
  [Validator] Review Romanian (ro) translations
  [Console] Fix display of Table on Windows OS
  [FrameworkBundle] Fix config builder with extensions extended in `build()`
  [Translation] Fix extracting qualified t() function calls
  Fix vertical table on windows
  Fix the `command -v` exception when the command option with a dash prefix
  Fix a minor design issue in the Welcome Page
  [WebProfilerBundle] disable turbo in web profiler toolbar to avoid link prefetching
  explicitly cast boolean SSL stream options
  return the unchanged text if preg_replace_callback() fails
  the 'use_notify' option is on the factory, not on the postgres connection class
  review translations
2024-02-22 15:28:06 -05:00
Nicolas Grekas
677b24759d Merge branch '6.4' into 7.0
* 6.4:
  [DependencyInjection] Fix computing error messages involving service locators
  [Serializer] Fix unknown types normalization type when know type
  [ErrorHandler] Fix parsing messages that contain anonymous classes on PHP >= 8.3.3
  [AssetMapper] Fix enquoted string pattern
  [Validator] Review Romanian (ro) translations
  [Console] Fix display of Table on Windows OS
  [FrameworkBundle] Fix config builder with extensions extended in `build()`
  [Translation] Fix extracting qualified t() function calls
  Fix vertical table on windows
  Fix the `command -v` exception when the command option with a dash prefix
  [WebProfilerBundle] disable turbo in web profiler toolbar to avoid link prefetching
  explicitly cast boolean SSL stream options
  return the unchanged text if preg_replace_callback() fails
  the 'use_notify' option is on the factory, not on the postgres connection class
  review translations
2024-02-22 15:27:20 -05:00
Nicolas Grekas
c725219bdf Merge branch '5.4' into 6.4
* 5.4:
  [DependencyInjection] Fix computing error messages involving service locators
  [Serializer] Fix unknown types normalization type when know type
  [ErrorHandler] Fix parsing messages that contain anonymous classes on PHP >= 8.3.3
  [Validator] Review Romanian (ro) translations
  [Console] Fix display of Table on Windows OS
  [FrameworkBundle] Fix config builder with extensions extended in `build()`
  [WebProfilerBundle] disable turbo in web profiler toolbar to avoid link prefetching
  explicitly cast boolean SSL stream options
  return the unchanged text if preg_replace_callback() fails
  the 'use_notify' option is on the factory, not on the postgres connection class
  review translations
2024-02-22 15:27:10 -05:00
Nicolas Grekas
90b1d7799b [ErrorHandler] Fix parsing messages that contain anonymous classes on PHP >= 8.3.3 2024-02-22 06:40:53 -05:00
Nicolas Grekas
135f16be8a Merge branch '7.0' into 7.1
* 7.0:
  List CS fix in .git-blame-ignore-revs
  Fix implicitly-required parameters
  minor #53524 [Messenger] [AmazonSqs] Allow `async-aws/sqs` version 2 (smoench)
  Fix bad merge
  List CS fix in .git-blame-ignore-revs
  Fix implicitly-required parameters
  List CS fix in .git-blame-ignore-revs
  Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
  [Messenger][AmazonSqs] Allow async-aws/sqs version 2
2024-01-23 16:06:13 +01:00
Nicolas Grekas
0437061a19 Merge branch '6.4' into 7.0
* 6.4:
  Fix implicitly-required parameters
  minor #53524 [Messenger] [AmazonSqs] Allow `async-aws/sqs` version 2 (smoench)
  Fix bad merge
  List CS fix in .git-blame-ignore-revs
  Fix implicitly-required parameters
  List CS fix in .git-blame-ignore-revs
  Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
  [Messenger][AmazonSqs] Allow async-aws/sqs version 2
2024-01-23 16:02:46 +01:00
Nicolas Grekas
93a8400a7e Merge branch '5.4' into 6.3
* 5.4:
  Fix implicitly-required parameters
  List CS fix in .git-blame-ignore-revs
  Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
  [Messenger][AmazonSqs] Allow async-aws/sqs version 2
2024-01-23 15:35:58 +01:00
Nicolas Grekas
39225b1e47 Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value 2024-01-23 14:51:25 +01:00
Dariusz Ruminski
03b35b60af DX: re-apply CS 2023-12-30 21:01:23 +01:00
Oskar Stark
d71bd112a1 Fix typo 2023-12-28 10:18:21 +01:00
Wouter de Jong
f1c1d003bd [Components] Convert to native return types 2023-07-05 15:06:06 +02:00
Nicolas Grekas
4f57142300 [HttpClient] Favor php-http/discovery instead of nyholm/psr7 2023-05-03 12:08:08 +02:00
Nicolas Grekas
dfda782a39 Merge branch '6.2' into 6.3
* 6.2:
  [HttpClient] Dev-require php-http/message-factory
  [ErrorHandler] Skip Httplug deprecations for HttplugClient
  [Messenger] Fix registering message handlers
  Bump Symfony version to 5.4.24
  Update VERSION for 5.4.23
  Update CONTRIBUTORS for 5.4.23
  Update CHANGELOG for 5.4.23
2023-05-02 15:05:51 +02:00
Nicolas Grekas
6a5384ba94 Merge branch '5.4' into 6.2
* 5.4:
  [HttpClient] Dev-require php-http/message-factory
  [ErrorHandler] Skip Httplug deprecations for HttplugClient
  [Messenger] Fix registering message handlers
  Bump Symfony version to 5.4.24
  Update VERSION for 5.4.23
  Update CONTRIBUTORS for 5.4.23
  Update CHANGELOG for 5.4.23
2023-05-02 15:05:31 +02:00
Nicolas Grekas
de0d247471 [ErrorHandler] Skip Httplug deprecations for HttplugClient 2023-05-02 12:45:49 +02:00
Nicolas Grekas
2c1caf08bc Merge branch '6.2' into 6.3
* 6.2: (21 commits)
  Fix tests
  CS fix
  [HttpKernel] Tests for DataCollector
  for #49320
  [Console] Fix computing column width containing multibyte chars
  [Messenger] Fix deprecation layer of RedeliveryStamp
  [Mime] Form field values with integer keys not resolved correctly
  [Messenger] [Redis] Fixed problem where worker stops handling messages on first empty message
  [PHPUnitBridge] Fix PHPUnit 10.1 compatibility
  [VarDumper] Make the server TCP connection sync
  [Messenger] Fix warning message on failed messenger show command
  [Mailer] [Mailjet] Use body MessageID instead of X-MJ-Request-GUID
  [HttpFoundation] Fix BinaryFileResponse
  [Form] fix merge
  [HttpFoundation] Fix memory limit problems in BinaryFileResponse
  [PropertyAccess] Readonly properties must have no PropertyWriteInfo
  [Form] Cast choices value callback result to string
  [Serializer] Unexpected value should throw UnexpectedValueException
  [ErrorHandler] Don't throw deprecations for HttplugClient
  [Serializer] Fix denormalization of object with typed constructor arg (not castable) and with COLLECT_DENORMALIZATION_ERRORS
  ...
2023-04-18 15:59:59 +02:00