50 Commits

Author SHA1 Message Date
Dariusz Ruminski
be639dea57 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
Gina Peter Banyard
8f2e1890c4 Remove some implicit bool type juggling 2025-08-05 12:19:40 +02:00
Nicolas Grekas
5b22ac9de8 Various CS fixes 2025-07-08 11:31:55 +02:00
Nicolas Grekas
fc250ed3fb [DependencyInjection] Add argument $target to ContainerBuilder::registerAliasForArgument() 2025-06-27 16:33:29 +02:00
Alexander M. Turek
4875a8487f Prefix all sprintf() calls 2024-06-20 17:52:34 +02:00
Alexander M. Turek
427ab31004 [FrameworkBundle] Use CPP 2024-02-09 15:31:28 +01:00
Nicolas Grekas
e526d81040 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
3d2ae12694 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
9f39bd6765 Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value 2024-01-23 14:51:25 +01:00
Nicolas Lemoine
2a7613bf8d [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
Antoine Lamirault
2dc9281611 [VarDumper][FrameworkBundle] Remove checking if OutputFormatterStyle setHref method exist 2023-09-09 16:24:00 +02:00
Nicolas Grekas
4f80df7cf3 [DependencyInjection] Improve reporting named autowiring aliases 2023-07-13 14:12:19 +02:00
Nicolas Grekas
ac90b6babe Consistently use var $container to reference the container builder+configurator 2023-05-10 11:01:24 +02:00
Nicolas Grekas
4132c01f9f Merge branch '6.2' into 6.3
* 6.2:
  [Serializer] Fix serializedpath for non scalar types
  [Serializer] Preserve array keys while denormalize variadic parameters
  [FrameworkBundle] enable metadata cache when annotation is disabled
  [DependencyInjection] Fix setting the class of auto-discovery services
  [FrameworkBundle] Fix auto-discovering validator constraints
  TranslatorBag::diff now iterates over catalogue domains instead of operation domains
  [HttpClient] Fix not calling the on progress callback when canceling a MockResponse
  [TwigBridge] Fix raw content rendering in HTML notification emails
2023-03-31 11:18:46 +02:00
Nicolas Grekas
f16fbf3e48 [FrameworkBundle] Fix auto-discovering validator constraints 2023-03-30 15:14:22 +02:00
Nicolas Grekas
080b9740bb [DependencyInjection] Keep track of decorated ids 2023-03-07 09:10:56 +01:00
Wouter de Jong
34bd487d2e Add void return types 2023-02-13 14:18:23 +01:00
tigitz
b46d202008 Leverage arrow function syntax for closure 2023-01-13 10:22:59 +01:00
Fabien Potencier
57ef7d396c minor #47390 [CS] Remove @inheritdoc PHPDoc (lyrixx)
This PR was merged into the 6.2 branch.

Discussion
----------

[CS] Remove `@inheritdoc` PHPDoc

| Q             | A
| ------------- | ---
| Branch?       | 6.2
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

---

It looks like this PHP Doc is useless. IDEs are able to inherit the doc (at least VS Code
and PHP Storm). And tools like PHP Stan are able to too https://phpstan.org/r/74a2c008-ff2b-42c0-8edf-8da87c1a7b5f

I could have open an RFC before doing the PR, but it was easy :) So let's discuss here

Commits
-------

015d5015e3 [CS] Remove `@inheritdoc` PHPDoc
2022-08-26 07:51:22 +02:00
Antoine Lamirault
4cf2940719 Remove usage of empty function when possible 2022-08-26 07:47:51 +02:00
Grégoire Pineau
fb7ade8fab [CS] Remove @inheritdoc PHPDoc 2022-08-25 17:27:04 +02:00
Nicolas Grekas
2f3f5384cd Bump minimum version of PHP to 8.1 2022-02-25 12:15:52 +01:00
Fabien Potencier
dd3bf10773 Revert "bug #44494 Remove FQCN type hints on properties (fabpot)"
This reverts commit 0a13eba7037c6636be7a35c194d7d2e86d6ea6ba, reversing
changes made to e4cfa82c31ffda491b73e181c8d3d4e0a307eee8.
2021-12-09 13:46:12 +01:00
Fabien Potencier
a871a08baa Remove FQCN type hints on properties 2021-12-08 16:13:44 +01:00
Alexander M. Turek
7a215eb23c Merge branch '5.4' into 6.0
* 5.4: (27 commits)
  feat: add completion for DebugAutowiring search argument
  [Routing] Add support for aliasing routes
  [DependencyInjection] only allow `ReflectionNamedType` for `ServiceSubscriberTrait`
  Fix CS
  [Console] Open CompleteCommand for custom outputs
  [Intl] Update the ICU data to 70.1
  [Messenger] Add completion for failed messages commands.
  Fix tests
  Fixing missing full_stack variable that's needed by toolbar.html.twig
  [PropertyInfo] Bump phpstan/phpdoc-parser
  [Security] Backport type fixes
  [VarExporter] escape unicode chars involved in directionality
  [Framework] Add completion to debug:container
  [Messenger] Add completion to command messenger:consume
  [Intl] Update the ICU data to 70.1
  Fix more generic types
  Default access_decision_manager.strategy option with merge.
  Fix typos
  Update validators.ca.xlf
  Add missing Validator translations for Estonian
  ...

Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-11-04 18:14:40 +01:00
Adrien Jourdier
672647a144 feat: add completion for DebugAutowiring search argument 2021-11-04 15:48:52 +01:00
Alexander M. Turek
bf9d0d4969 [FrameworkBundle] Add types to private properties 2021-11-02 11:55:16 +01:00
Nicolas Grekas
54788c67a5 Use #[AsCommand] to describe commands 2021-09-30 17:28:07 +02:00
Nicolas Grekas
4a8f8840cc 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
d6e4f596a5 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
34640eed1c [DependencyInjection] Add #[Target] to tell how a dependency is used and hint named autowiring aliases 2021-04-19 14:53:54 +02:00
Nyholm
0700ad9e52 [FrameworkBundle] Add argument KernelInterface to BuildDebugContainerTrait::getContainerBuilder() 2021-04-14 10:59:53 +02:00
Fabien Potencier
3f8b570669 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
1d7c9a5590 Fix #36973: Command description consistency 2021-03-05 09:58:50 -08:00
Nicolas Grekas
e08672dde2 [Console] add option --short to the list command 2021-01-20 14:27:30 +01:00
Nicolas Grekas
a2ab2c0854 [Console] enable describing commands in ways that make the list command lazy 2021-01-20 12:45:16 +01:00
Ryan Weaver
774be36b9d Fixing a bug where class_alias would cause incorrect items in debug:autowiring 2020-04-21 14:42:49 -04:00
Nicolas Grekas
2d0aa18c81 Add more return types after fixing a typo in my script 2019-08-23 14:16:45 +02:00
Alexander M. Turek
3cbe1918a5 Fix inconsistent return points. 2019-08-20 16:27:59 +02:00
sez-open
9f024f40ed fix debug:autowiringcommand 2019-04-07 09:27:26 +02:00
Serkan Yildiz
6862026370 Create a hyperlink to interfaces/classes that can be autowired 2019-03-15 13:59:00 +01:00
Anthony MARTIN
4dc1adb5b0 [DependencyInjection] Added information about deprecated aliases in debug:autowiring
| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | none
| License       | MIT
| Doc PR        | n/a

Fix and improves a bit PR #29968 and #29995
2019-02-07 13:21:48 +01:00
Fabien Potencier
b36a29eff2 fixed CS 2019-01-16 21:35:37 +01:00
Jan Schädlich
3564ec86db Remove unused variable 2018-11-03 08:39:20 +01:00
Nicolas Grekas
57144f3e44 [FrameworkBundle] make debug:autowiring list useful services and their description 2018-10-28 22:46:57 +01:00
Nicolas Grekas
8e84115d95 Merge branch '4.1'
* 4.1:
  [Finder] fixed root directory access for ftp/sftp wrapper
  [Console] Fix clearing sections containing questions
  [FrameworkBundle] dont suggest hidden services in debug:container and debug:autow commands
  [FWBundle] Throw if PropertyInfo is enabled, but the component isn't installed
  Remove redundant path check
2018-10-03 10:52:36 +02:00
Nicolas Grekas
97fc7cf40c [FrameworkBundle] dont suggest hidden services in debug:container and debug:autow commands 2018-10-02 21:29:19 +02:00
Roberto Espinoza
cca5a0d69e [FrameworkBundle] Ignore backslashes in service ids when using debug:container and debug:autowiring 2018-09-19 16:42:41 +02:00
Nicolas Grekas
848845a1b3 [FrameworkBundle] debug:autowiring: don't list FQCN when they are aliased 2017-12-03 17:25:13 +01:00
Ryan Weaver
e8e0646deb Adding a new debug:autowiring command 2017-10-16 20:35:11 -04:00