53 Commits

Author SHA1 Message Date
Dariusz Ruminski
06f6812282 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
Fabien Potencier
8c1030ce93 Unify how --format is handle by commands 2024-06-26 08:46:14 +02:00
Alexander M. Turek
0981f0b095 Prefix all sprintf() calls 2024-06-20 17:52:34 +02:00
Oskar Stark
8a2b584b1c [Filesystem][Finder][Form] Use CPP 2024-01-16 22:21:05 +01:00
Nicolas Grekas
0d6848800d Merge branch '6.4' into 7.0
* 6.4: (33 commits)
  [Console][FrameworkBundle][HttpKernel][WebProfilerBundle] Enable profiling commands
  [AssetMapper] Disable profiler when the "dev server" respond
  Adds translations for Portuguese (pt)
  [AssetMapper] Link needs as="style"
  Allow Symfony 7.0 on Phrase translation provider
  [Mime] Throw InvalidArgumentException on invalid form field type inside array
  [Mailer][Bridges] Allow Symfony 7
  [Tests] Use `JsonMockResponse` where applicable
  [FrameworkBundle][HttpKernel] Introduce `$buildDir` argument to `WarmableInterface::warmup` to warm read-only artefacts in `build_dir`
  [ErrorHandler] Fix expected missing return types
  [Form] Fix merging params & files when "multiple" is enabled
  [HttpFoundation] Do not swallow trailing `=` in cookie value
  Fix markdown in README files
  Handle Sendinblue error responses without a message key
  Handle Brevo error responses without a message key
  [Scheduler] Add failureEvent
  [Notifier][Bridges] Allow Symfony 7
  [Mailer][Brevo][Sendinblue] Fix typo
  [Serializer] Fix collecting only first missing constructor argument
  [ErrorHandler] Fix file link format call in trace view
  ...
2023-10-17 15:48:31 +02:00
Nicolas Lemoine
caebc8874c [ErrorHandler] Improve fileLinkFormat handling
- Avoid repeating file link format guessing (logic is already in FileLinkFormatter class)
- Always set a fileLinkFormat to a FileLinkFormatter object to handle path mappings properly
2023-10-16 22:01:45 +02:00
Wouter de Jong
8266c81fce [Components] Convert to native return types 2023-07-05 15:06:06 +02:00
Antoine Lamirault
f60e331c6f Harmonize command formats and ensure autocompletion is same 2023-04-08 09:25:02 +02:00
Nicolas Grekas
3963819dd0 [Form] Use static closures when possible 2023-03-28 11:09:35 +02:00
Wouter de Jong
f94d6c607d Add void return types 2023-02-13 14:18:23 +01:00
tigitz
f82bfb8b6f Leverage arrow function syntax for closure 2023-01-13 10:22:59 +01:00
tigitz
3e1fac2b7a Leverage class name literal on object 2022-11-30 20:10:54 +01:00
François-Xavier de Guillebon
6c27f0a63a Replace get_class() calls by ::class 2022-09-01 04:03:18 +02:00
Grégoire Pineau
7dddf80606 [CS] Remove @inheritdoc PHPDoc 2022-08-25 17:27:04 +02:00
Nicolas Grekas
c57c2ebc21 Bump minimum version of PHP to 8.1 2022-02-25 12:15:52 +01:00
Nicolas Grekas
07b48a580e 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
8a4f8ff2cd 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
20dbf63207 [5.4] cs fixes 2021-12-16 22:58:21 +01:00
Fabien Potencier
ff3f9fdbfb Remove FQCN type hints on properties 2021-12-08 16:13:44 +01:00
Alexander M. Turek
3cbe9f1b85 Merge branch '5.4' into 6.0
* 5.4:
  [FrameworkBundle][HttpKernel] Add the ability to enable the profiler using a parameter
  [FrameworkBundle] Trigger deprecations on stderr instead of using trigger_deprecation call
  Add PhpStanExtractor
  [Messenger] allow processing messages in batches
  [Console] Fix backslash escaping in bash completion
  Add missing validators translation
  add suggestions for debug:firewall, debug:form, debug:messenger, debug:router
  [SecurityBundle] Deprecate not configuring explicitly a provider for custom_authenticators when there is more than one registered provider
  [Inflector] Fix inflector for "zombies"
  [Config] Add some cache on SelfCheckingResourceChecker
  fix AJAX request unit spacing
  fix ErrorExcception in CacheWarmerAggregate
  Prevent FormLoginAuthenticator from responding to requests that should be handled by JsonLoginAuthenticator
  Fix wait duration for fixed window policy
  Add exact command used to trigger invocation to the completion debug log
  [Translation] correctly handle intl domains with TargetOperation
  Allow using param as connection atribute in `*.event_subscriber` and `*.event_listener` tags
2021-10-30 15:06:51 +02:00
Ion Bazan
dd6f2c3e69 add suggestions for debug:firewall, debug:form, debug:messenger, debug:router 2021-10-30 10:22:48 +02:00
Nicolas Grekas
d8292573be Use #[AsCommand] to describe commands 2021-09-30 17:28:07 +02:00
Nicolas Grekas
00aeda6dd3 Add return types - batch 6/n 2021-08-16 17:45:02 +02:00
Alexander M. Turek
58332ad385 [Form] Add types to private properties
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-27 21:25:40 +02:00
Nicolas Grekas
70c5483b30 Merge branch '5.2' into 5.3
* 5.2:
  Leverage str_contains/str_starts_with
  Leverage str_ends_with
2021-07-21 14:40:44 +02:00
Alexander M. Turek
4a241eb80a Leverage str_contains/str_starts_with
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-21 14:19:41 +02:00
Tobias Schultze
4fd31dd107 Leverage str_ends_with
added the php80 polyfill to requirements when necessary
2021-07-21 13:57:04 +02:00
Fabien Potencier
c3853ece91 Merge branch '5.2' into 5.x
* 5.2:
  Fix #36973: Command description consistency
  Render email once
2021-03-06 09:05:19 +01:00
Dane Powell
92f40d3863 Fix #36973: Command description consistency 2021-03-05 09:58:50 -08:00
Nicolas Grekas
066c95a540 [Console] enable describing commands in ways that make the list command lazy 2021-01-20 12:45:16 +01:00
Nicolas Grekas
82e315e931 Merge branch '3.4' into 4.4
* 3.4:
  Enable "native_constant_invocation" CS rule
  Make AbstractPhpFileCacheWarmer public
2020-09-02 18:08:58 +02:00
Nicolas Grekas
0781446513 Enable "native_constant_invocation" CS rule 2020-09-02 18:06:40 +02:00
Fabien Potencier
e41d6cee8e Fix CS 2020-08-17 09:39:58 +02:00
Fabien Potencier
15d100a0f9 Merge branch '3.4' into 4.4
* 3.4:
  Add missing dots at the end of exception messages
2020-03-15 11:05:03 +01:00
Fabien Potencier
90ce15bdf0 Add missing dots at the end of exception messages 2020-03-15 10:38:08 +01:00
Tobias Schultze
e46b26d628 minor #33709 Add types to constructors and private/final/internal methods (Batch II) (derrabus)
This PR was squashed before being merged into the 4.4 branch (closes #33709).

Discussion
----------

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

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | #32179, #33228
| License       | MIT
| Doc PR        | N/A

Followup to #33519, this time with:
* Form
* HttpClient
* HttpKernel
* intl
* Ldap
* Ldap
* Lock
* Messenger
* Processor
* PropertyInfo
* Routing
* Security
* Serializer
* Stopwatch
* Translation

Commits
-------

9378eb4858 Add types to constructors and private/final/internal methods (Batch II)
2019-10-03 13:24:15 +02:00
Alexander M. Turek
5795ef493c Add types to constructors and private/final/internal methods (Batch II) 2019-10-03 13:24:03 +02:00
Jan Schädlich
c214ac6c36 [Console] Command::execute() should always return int - deprecate returning null
- added deprecation message for non-int return value in Command::execute()
- fixed all core commands to return proper int values
- added proper return type-hint to Command::execute() method in all core Commands
2019-10-02 16:44:58 +02:00
Christian Flothmann
39e04e963c add parameter type declarations to private methods 2019-07-31 20:51:46 +02:00
Yonel Ceruto
1da29c58f7 Add file links for described classes 2019-04-01 16:27:30 -04:00
Yonel Ceruto
0787a30d52 Fix debug:form dateTime 2019-03-10 14:20:19 -04:00
Fabien Potencier
8254f72245 Merge branch '4.2' into short-array-master
* 4.2:
  fixed CS
  fixed CS
  fixed tests
  fixed CS
  fixed CS
  fixed CS
  fixed short array CS in comments
  fixed CS in ExpressionLanguage fixtures
  fixed CS in generated files
  fixed CS on generated container files
  fixed CS on Form PHP templates
  fixed CS on YAML fixtures
  fixed fixtures
  switched array() to []
2019-01-16 22:53:39 +01:00
Fabien Potencier
4078ad39a7 fixed CS 2019-01-16 21:35:37 +01:00
Fabien Potencier
9f97ec0c4d Merge branch '4.1' into 4.2
* 4.1:
  fixed tests
  fixed CS
  fixed CS
  fixed CS
  fixed short array CS in comments
  fixed CS in ExpressionLanguage fixtures
  fixed CS in generated files
  fixed CS on generated container files
  fixed CS on Form PHP templates
  fixed CS on YAML fixtures
  fixed fixtures
  switched array() to []
2019-01-16 21:31:39 +01:00
Fabien Potencier
9e00d61b06 switched array() to [] 2019-01-16 10:39:14 +01:00
Roland Franssen
ac90a2696b [Form] Shortcut debug:form for partial type name 2018-12-08 16:57:44 +01:00
Yonel Ceruto
30df18a03b Show deprecated options definition on debug:form command 2018-09-04 09:37:57 -04:00
Nicolas Grekas
f5033153e3 Merge branch '2.8' into 3.4
* 2.8:
  Fix Clidumper tests
  Enable the fixer enforcing fully-qualified calls for compiler-optimized functions
  Apply fixers
  Disable the native_constant_invocation fixer until it can be scoped
  Update the list of excluded files for the CS fixer
2018-07-26 10:45:46 +02:00
Yonel Ceruto
ef009d5519 Add debug:form type option 2017-10-03 06:15:18 -04:00
Maxime Steinhausser
bd954a638a [Form] Add ambiguous & exception debug:form tests 2017-09-23 00:36:11 +02:00