146 Commits

Author SHA1 Message Date
Dariusz Ruminski b3cce3b066 PHP CS Fixer: enable static_lambda 2025-12-19 09:33:17 +01:00
Nicolas Grekas ec71460b36 Merge branch '7.1' into 7.2
* 7.1:
  fix detecting anonymous exception classes on Windows and PHP 7
  skip tests requiring the intl extension if it's not installed
  [RateLimiter] Fix DateInterval normalization
  re-add missing profiler shortcuts on profiler homepage
  Fix support for \SplTempFileObject in BinaryFileResponse
  [Security] Store original token in token storage when implicitly exiting impersonation
  [Cache] Fix clear() when using Predis
2024-11-05 16:35:02 +01:00
Nicolas Grekas ac0e49d1b5 Merge branch '6.4' into 7.1
* 6.4:
  fix detecting anonymous exception classes on Windows and PHP 7
  skip tests requiring the intl extension if it's not installed
  [RateLimiter] Fix DateInterval normalization
  [Security] Store original token in token storage when implicitly exiting impersonation
  [Cache] Fix clear() when using Predis
2024-11-05 16:34:55 +01:00
Nicolas Grekas b843b0acf9 Merge branch '5.4' into 6.4
* 5.4:
  fix detecting anonymous exception classes on Windows and PHP 7
  skip tests requiring the intl extension if it's not installed
  [RateLimiter] Fix DateInterval normalization
  [Security] Store original token in token storage when implicitly exiting impersonation
  [Cache] Fix clear() when using Predis
2024-11-05 16:34:40 +01:00
Alexander M. Turek c307b0c1b7 Prefix all sprintf() calls 2024-06-20 17:52:34 +02:00
Nicolas Grekas 499264c567 Merge branch '5.4' into 6.4
* 5.4:
  Fix CI
  Bump ext-redis in CI on PHP >= 8.4
  Adjust pretty name of closures on PHP 8.4
  implement NodeVisitorInterface instead of extending AbstractNodeVisitor
2024-04-16 18:25:57 +02:00
Alexander M. Turek a88994416a [HttpKernel] Use CPP 2024-02-06 10:15:06 +01:00
Nicolas Grekas 3934259de2 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 24671ba111 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 8efa2cfdfe Merge branch '6.3' into 6.4
* 6.3:
  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
2024-01-23 15:51:35 +01:00
Nicolas Grekas ab69bdd211 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 c31bb9215c Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value 2024-01-23 14:51:25 +01:00
Nicolas Grekas a09b8f2a70 Leverage ReflectionFunction::isAnonymous() 2023-12-30 20:21:21 +01:00
Alexander M. Turek 76aea56c1b Remove obsolete PHP version checks 2023-11-25 21:15:12 +01:00
Nicolas Grekas 67792242da Merge branch '6.4' into 7.0
* 6.4:
  [Config] Prefixing FileExistenceResource::__toString() to avoid conflict with FileResource
  [String] Method toByteString conversion using iconv is unreachable
  [HttpKernel] Check controllers are allowed when using the fallback surrogate strategy
  [HttpKernel] Fix DebugLoggerConfigurator
  Set exception code to ldap error number
  Accept mixed key on DsPairStub
  check that the secret passed to RequestParser is not empty
  [HttpKernel] Fix PHP deprecation
2023-11-09 09:30:23 +01:00
Nicolas Grekas de00a52bf3 [HttpKernel] Add ControllerResolver::allowControllers() to define which callables are legit controllers when the _check_controller_is_allowed request attribute is set 2023-11-06 18:13:54 +01:00
tigitz 6ab7936910 Leverage arrow function syntax for closure 2023-01-13 10:22:59 +01:00
Grégoire Pineau 3b05051d9e [CS] Remove @inheritdoc PHPDoc 2022-08-25 17:27:04 +02:00
Thomas Calvet 91976060f6 Leverage non-capturing catches 2022-04-01 09:15:35 +02:00
Nicolas Grekas 39bbf2ed06 Merge branch '6.0' into 6.1
* 6.0:
  [6.0] cs fixes
  [5.4] cs fixes
  [5.3] cs fixes
  [Cache] Fix saving items with no expiration through ProxyAdapter
  CS fixes
  fix merge
  Remove pointless assignment
  [HttpClient] Fix tracing requests made after calling withOptions()
  [Cache] disable lock on CLI
  Revert "feature #41989 [Cache] make `LockRegistry` use semaphores when possible (nicolas-grekas)"
  [HttpKernel] fix how configuring log-level and status-code by exception works
  [VarDumper] add more "transient-on-macos" groups
2021-12-16 23:14:15 +01:00
Nicolas Grekas 6768e8d440 Merge branch '5.4' into 6.0
* 5.4:
  [5.4] cs fixes
  [5.3] cs fixes
  [Cache] Fix saving items with no expiration through ProxyAdapter
  CS fixes
  [HttpClient] Fix tracing requests made after calling withOptions()
  [Cache] disable lock on CLI
  Revert "feature #41989 [Cache] make `LockRegistry` use semaphores when possible (nicolas-grekas)"
  [HttpKernel] fix how configuring log-level and status-code by exception works
  [VarDumper] add more "transient-on-macos" groups
2021-12-16 23:05:41 +01:00
Nicolas Grekas 9733f1cdcc Merge branch '5.3' into 5.4
* 5.3:
  [5.3] cs fixes
  [Cache] Fix saving items with no expiration through ProxyAdapter
  CS fixes
  [HttpClient] Fix tracing requests made after calling withOptions()
  [Cache] disable lock on CLI
  [VarDumper] add more "transient-on-macos" groups
2021-12-16 22:52:00 +01:00
Nicolas Grekas 90de783583 Merge branch '4.4' into 5.3
* 4.4:
  [Cache] Fix saving items with no expiration through ProxyAdapter
  CS fixes
  [Cache] disable lock on CLI
  [VarDumper] add more "transient-on-macos" groups
2021-12-16 22:37:57 +01:00
Nicolas Grekas eed35d5b55 CS fixes 2021-12-16 22:17:20 +01:00
Alexander M. Turek 4c996585cb Make use of the nullsafe operator 2021-12-13 21:40:50 +01:00
Fabien Potencier 9c9c39041c Remove FQCN type hints on properties 2021-12-08 16:13:44 +01:00
Alexander M. Turek 180f95177c [HttpKernel] Add types to private properties
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-09-07 12:43:05 +02:00
Nicolas Grekas 9a4e1c0030 Merge branch '5.4' into 6.0
* 5.4:
  [Serializer] cs fix
  Cleanup more `@return` annotations
  [Form] Fix phpdoc on FormBuilderInterface
2021-08-17 17:35:52 +02:00
Nicolas Grekas 1b8585c7d3 Cleanup more @return annotations 2021-08-17 16:20:01 +02:00
Nicolas Grekas e47a3e656d Add return types - batch 6/n 2021-08-16 17:45:02 +02:00
Nicolas Grekas 5d42a8e2dd Merge branch '5.4' into 6.0
* 5.4:
  Leverage str_contains/str_starts_with
  Leverage str_ends_with
2021-07-21 14:48:45 +02:00
Nicolas Grekas 380b152861 Merge branch '4.4' into 5.2
* 4.4:
  Leverage str_contains/str_starts_with
  Leverage str_ends_with
2021-07-21 14:38:00 +02:00
Alexander M. Turek 882946ca24 Leverage str_contains/str_starts_with
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-21 14:19:41 +02:00
Nicolas Grekas 22ebd0adf8 [HttpKernel] remove deprecated features 2021-07-04 12:33:14 +02:00
Nicolas Grekas 574d651f55 Add union types 2021-06-29 11:21:24 +02:00
Alexander M. Turek d612d53a77 Merge branch '4.4' into 5.1 2020-10-28 22:31:18 +01:00
Alexander M. Turek c77a268008 Use short array deconstruction syntax. 2020-10-28 21:42:29 +01:00
Nicolas Grekas c32dbd4ce6 Merge branch '5.0' into 5.1
* 5.0:
  Fix abstract method name in PHP doc block
  Various cleanups
  [HttpClient] fix issues in tests
  Fixes sprintf(): Too few arguments in form transformer
  [Console] Fix QuestionHelper::disableStty()
  [Validator] Use Mime component to determine mime type for file validator
  validate subforms in all validation groups
  Update Hungarian translations
  Add meaningful message when Process is not installed (ProcessHelper)
  [PropertyAccess] Fix TypeError parsing again.
  [TwigBridge] fix fallback html-to-txt body converter
  [Security/Http] fix merge
  [ErrorHandler] fix setting $trace to null in FatalError
  [Form] add missing Czech validators translation
  [Validator] add missing Czech translations
  never directly validate Existence (Required/Optional) constraints
2020-05-30 22:35:19 +02:00
Nicolas Grekas abfecf1c9b Merge branch '4.4' into 5.0
* 4.4:
  Fix abstract method name in PHP doc block
  Various cleanups
  [HttpClient] fix issues in tests
  Fixes sprintf(): Too few arguments in form transformer
  [Console] Fix QuestionHelper::disableStty()
  [Validator] Use Mime component to determine mime type for file validator
  validate subforms in all validation groups
  Update Hungarian translations
  Add meaningful message when Process is not installed (ProcessHelper)
  [PropertyAccess] Fix TypeError parsing again.
  [TwigBridge] fix fallback html-to-txt body converter
  [Form] add missing Czech validators translation
  [Validator] add missing Czech translations
  never directly validate Existence (Required/Optional) constraints
2020-05-30 22:12:43 +02:00
Nicolas Grekas 4c19b5b3c2 Merge branch '3.4' into 4.4
* 3.4:
  Various cleanups
2020-05-30 22:06:45 +02:00
Nicolas Grekas e1253067ee bug #36891 Address deprecation of ReflectionType::getClass() (derrabus)
This PR was merged into the 3.4 branch.

Discussion
----------

Address deprecation of ReflectionType::getClass()

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | #36872
| License       | MIT
| Doc PR        | N/A

Calling `ReflectionType::getClass()` will trigger a deprecation warning on php 8. This PR switches to `getType()` if available.

Commits
-------

53b1677a4e Address deprecation of ReflectionType::getClass().
2020-05-23 09:35:15 +02:00
Alexander M. Turek 5b389af7f4 [HttpKernel] Prevent calling method_exists() with non-string values. 2020-05-22 15:23:31 +02:00
Alexander M. Turek 34db0698fe Address deprecation of ReflectionType::getClass(). 2020-05-21 15:02:25 +02:00
Nicolas Grekas b26383a15a Merge branch '5.0'
* 5.0:
  Use PHP 7.2 minimum in tests run with github actions
  Fix exception messages containing exception messages
2020-05-04 17:54:21 +02:00
Nicolas Grekas 0ebe7bf988 Merge branch '4.4' into 5.0
* 4.4:
  Fix exception messages containing exception messages
2020-05-04 17:34:58 +02:00
Nicolas Grekas 888761a58c Merge branch '3.4' into 4.4
* 3.4:
  Fix exception messages containing exception messages
2020-05-04 17:32:48 +02:00
Nicolas Grekas 7a6e6ca58d Fix exception messages containing exception messages 2020-05-04 17:12:51 +02:00
Fabien Potencier e61bc2c6ce Merge branch '5.0'
* 5.0:
  Fix code
  Tweak the code to avoid fabbot false positives
2020-04-12 18:48:26 +02:00
Fabien Potencier 51c3cf6772 Merge branch '4.4' into 5.0
* 4.4:
  Fix code
  Tweak the code to avoid fabbot false positives
2020-04-12 18:45:47 +02:00
Fabien Potencier 01579a057c Tweak the code to avoid fabbot false positives 2020-04-12 18:14:02 +02:00