58 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
33c64713db Merge branch '8.0' into 8.1
* 8.0: (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:09:22 +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
Dariusz Ruminski
d0014b0ed6 PHP CS Fixer: enable static_lambda 2025-12-19 09:33:17 +01:00
Dariusz Ruminski
c45f4830ce PHP CS Fixer: generic 8.1 cleanup 2025-12-16 07:44:40 +01:00
Nicolas Grekas
ed78f894fd Fix merge 2025-08-04 18:42:14 +02:00
Nicolas Grekas
41626be8fd Fix merge 2025-08-04 18:39:53 +02:00
Christian Flothmann
9131a35664 replace PHPUnit annotations with attributes 2025-08-04 09:05:15 +02:00
Nicolas Grekas
aae9ff4f22 Remove deadcode after the bump to PHP >= 8.4 2025-06-04 12:38:30 +02:00
Christian Flothmann
ad57ca0486 resolve class constant types when patching return types 2024-10-14 10:54:27 +02:00
Dariusz Ruminski
4a831eb994 CS: re-apply trailing_comma_in_multiline 2024-09-01 09:02:27 +02:00
Oskar Stark
d71bd112a1 Fix typo 2023-12-28 10:18:21 +01:00
Nicolas Grekas
3db295622c Use typed properties in tests as much as possible 2023-07-25 10:53:33 +02:00
Nicolas Grekas
599f9df251 Merge branch '6.2' into 6.3
* 6.2:
  Fix merge
  Migrate to `static` data providers using `rector/rector`
2023-02-14 10:04:20 +01:00
Nicolas Grekas
61e90f94eb Merge branch '5.4' into 6.2
* 5.4:
  Migrate to `static` data providers using `rector/rector`
2023-02-14 09:44:56 +01:00
Oskar Stark
56a94aa8cb Migrate to static data providers using rector/rector 2023-02-14 09:03:56 +01:00
tigitz
c7da6f4d10 Leverage arrow function syntax for closure 2023-01-13 10:22:59 +01:00
Nicolas Grekas
6e1416fcb6 Merge branch '6.0' into 6.1
* 6.0:
  [Mailer] Include all transports' debug messages in RoundRobin transport exception
  [FrameworkBundle] fix: fix help message
  Use relative timestamps
  [Cache] Fix dealing with ext-redis' multi/exec returning a bool
  [Messenger][Amqp] Added missing rpc_timeout option
  [Serializer] Prevent GetSetMethodNormalizer from creating invalid magic method call
  [HttpFoundation] Fix dumping array cookies
  [WebProfilerBundle] Fix dump header not being displayed
  TraceableHttpClient: increase decorator's priority
  Use static methods inside data providers
  [FrameworkBundle] Allow configuring `framework.exceptions` with a config builder
  bug #48313 [Mime] Fix MessagePart serialization
  [ErrorHandler][DebugClassLoader] Fix some new return types support
  Fix getting the name of closures on PHP 8.1.11+
  [Translator] Fix typo "internal" / "interval"
  fix dumping top-level tagged values
2022-12-14 17:05:20 +01:00
Nicolas Grekas
1113c4bcf3 Merge branch '5.4' into 6.0
* 5.4:
  [Mailer] Include all transports' debug messages in RoundRobin transport exception
  [FrameworkBundle] fix: fix help message
  Use relative timestamps
  [Cache] Fix dealing with ext-redis' multi/exec returning a bool
  [Messenger][Amqp] Added missing rpc_timeout option
  [Serializer] Prevent GetSetMethodNormalizer from creating invalid magic method call
  [HttpFoundation] Fix dumping array cookies
  [WebProfilerBundle] Fix dump header not being displayed
  TraceableHttpClient: increase decorator's priority
  Use static methods inside data providers
  [FrameworkBundle] Allow configuring `framework.exceptions` with a config builder
  bug #48313 [Mime] Fix MessagePart serialization
  [ErrorHandler][DebugClassLoader] Fix some new return types support
  Fix getting the name of closures on PHP 8.1.11+
  [Translator] Fix typo "internal" / "interval"
  fix dumping top-level tagged values
2022-12-14 16:52:41 +01:00
Thomas Calvet
7305720f24 [ErrorHandler][DebugClassLoader] Fix some new return types support 2022-12-12 19:59:41 +01:00
Nicolas Grekas
f130c1341f Bump minimum version of PHP to 8.1 2022-02-25 12:15:52 +01:00
Thomas Calvet
b4e7913a48 Add more tests 2022-02-10 11:18:35 +01:00
Nicolas Grekas
c657962b86 [ErrorHandler] trigger deprecations for @final properties 2022-02-10 11:18:35 +01:00
Thomas Calvet
855fc71a9e [ErrorHandler] Report overridden @final constants 2022-02-04 18:22:11 +01:00
Thomas Calvet
7eb5d9f4c1 Leverage str_starts_with(), str_ends_with() and str_contains() 2021-12-08 15:00:06 +01:00
Nicolas Grekas
54474c27c7 Merge branch '5.4' into 6.0
* 5.4:
  Fix CI by removing ext-mongodb
  [ErrorHandler] fix parsing `@param` with dollars in the description
  [SecurityBundle] Fix wrong array key
  [SecurityBundle] Fix listing listeners in profiler when authenticator manager is disabled
  Fix FlattenException::setPrevious argument typing
  bug #43941 [FrameworkBundle] Comment design decision
  [DependencyInjection] fix auto-refresh when inline_factories is enabled
2021-11-13 14:45:38 +01:00
Nicolas Grekas
62f86bfbfc [ErrorHandler] fix parsing @param with dollars in the description 2021-11-13 12:08:48 +01:00
Nicolas Grekas
2da1c10280 Merge branch '5.4' into 6.0
* 5.4:
  [PropertyAccess] Fix Regression in PropertyAccessor::isWritable()
  [Mime] Allow array as input for RawMessage
  [Mesenger] Add support for resetting container services after each messenger message.
  [RateLimiter][Runtime][Translation] remove `@experimental` flag
  Reword return type deprecation message
2021-09-10 14:33:20 +02:00
Wouter de Jong
3d543470bf Reword return type deprecation message
It is triggered for all classes (not only Symfony-ones), so we cannot be
precise on when it will be added. However, we must do a "call to action" to
prepare users for Symfony 6 (and potentially other package releases).
2021-09-10 10:09:48 +02:00
Nicolas Grekas
9a510dd82b Merge branch '5.4' into 6.0
* 5.4:
  [ErrorHandler] improve parsing of phpdoc by DebugClassLoader
2021-08-18 11:04:22 +02:00
Nicolas Grekas
102080f255 [ErrorHandler] improve parsing of phpdoc by DebugClassLoader 2021-08-18 10:44:45 +02:00
Jérémy Derussé
2ccdd5ecec Remove constraint for PHP < 8 2021-05-23 11:41:13 +02:00
Oskar Stark
d603654eae Use createMock() and use import instead of FQCN 2021-01-27 10:09:26 +01:00
Fabien Potencier
09690430f1 Use ::class keyword when possible 2021-01-11 09:57:50 +01:00
Thomas Calvet
a09170d780 [ErrorHandler][DebugClassLoader] Add mixed and static return types support 2020-08-11 14:16:16 +02:00
Alessandro Chitolina
89aa4b9ac6 [ErrorHandler] fix parsing static return type on interface method annotation (fix #35836) 2020-02-26 12:45:31 +01:00
Jules Pietri
205384c4a8 [Debug][ErrorHandler] improved deprecation notices for methods new args and return type 2020-02-23 15:41:43 +01:00
Nicolas Grekas
3fe2fa82e7 Merge branch '4.3' into 4.4
* 4.3:
  Use `::class` constants instead of `__NAMESPACE__` when possible
2019-12-16 12:07:37 +01:00
Fabien Potencier
a4db89fa54 minor #33519 Add types to constructors and private/final/internal methods (Batch I) (derrabus)
This PR was squashed before being merged into the 4.4 branch (closes #33519).

Discussion
----------

Add types to constructors and private/final/internal methods (Batch I)

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #32179, #33228
| License       | MIT
| Doc PR        | N/A

As promised, now a larger batch with the following components:
* Asset
* BrowserKit
* Config
* Console
* ~~CssSelector~~
* Debug
* ~~DomCrawler~~
* DotEnv
* ErrorHandler
* ErrorRenderer
* ExpressionLanguage
* ~~Filesystem~~
* ~~Finder~~

Commits
-------

4039b95d22 Add types to constructors and private/final/internal methods (Batch I)
2019-09-27 07:43:13 +02:00