Skip to content

[Uid] Add the UidValueResolver argument value resolver #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 120 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
6918a21
Make RateLimiter resilient to timeShifting
jderusse Nov 30, 2021
432b1a1
Fix aliased namespaces matching
Korbeil Dec 2, 2021
ca38501
[Workflow] Fix eventsToDispatch parameter setup for StateMachine
goodjinny Dec 8, 2021
bbfe9d8
[HttpClient] Allow yielding Exception from MockResponse's $body to mo…
fancyweb Dec 11, 2021
8f3bdeb
[HttpClient] Don't reset timeout counter when initializing requests
nicolas-grekas Dec 11, 2021
843c9d7
bug #44571 [HttpClient] Don't reset timeout counter when initializing…
nicolas-grekas Dec 11, 2021
d413baa
Merge branch '4.4' into 5.3
nicolas-grekas Dec 11, 2021
b7a2ae6
Make enable_authenticator_manager true as there is no other way in Sy…
alexander-schranz Dec 10, 2021
348f252
bug #44554 Make enable_authenticator_manager true as there is no othe…
wouterj Dec 12, 2021
30c3913
[Config] In XmlUtils, avoid converting from octal every string starti…
alexandre-daubois Dec 9, 2021
b7644bd
fix: lowest version of psr container supported
Nek- Dec 13, 2021
669b75f
[Uid] Add ulid keyword in composer.json
fancyweb Dec 13, 2021
4e04bc5
minor #44587 [Uid] Add ulid keyword in composer.json (fancyweb)
nicolas-grekas Dec 13, 2021
2523001
minor #44586 [DependencyInjection] PSR Container dependency version f…
derrabus Dec 13, 2021
f5c2f53
[Form] Improve Persian (Farsi) Translation For Forms
mostafazs Dec 8, 2021
9e3696f
minor #44591 [Form] Improve Persian (Farsi) Translation For Forms (mo…
wouterj Dec 13, 2021
2f3ddb6
[PropertyInfo] fix precedence of __get() vs properties
nicolas-grekas Dec 13, 2021
ba9e002
[Serializer] Fix denormalizing custom class in UidNormalizer
fancyweb Dec 13, 2021
c0602fd
[HttpClient] Fix closing curl-multi handle too early on destruct
nicolas-grekas Dec 13, 2021
1e3d60b
bug #44601 [HttpClient] Fix closing curl-multi handle too early on de…
nicolas-grekas Dec 13, 2021
d40f98d
Merge branch '4.4' into 5.3
nicolas-grekas Dec 13, 2021
446686a
Merge branch '5.3' into 5.4
nicolas-grekas Dec 13, 2021
b7a02a0
Merge branch '5.4' into 6.0
nicolas-grekas Dec 13, 2021
3f45596
Merge branch '6.0' into 6.1
nicolas-grekas Dec 13, 2021
7f6cfc0
[DI] fix merge
nicolas-grekas Dec 13, 2021
d4a74f5
Merge branch '6.0' into 6.1
nicolas-grekas Dec 13, 2021
157c8c0
[Console] Issue 43602 : Add fish completion
guillaume-a Oct 21, 2021
64a4f02
feature #43641 [Console] Issue 43602 : Add fish completion (guillaume-a)
fabpot Dec 13, 2021
4d4f8b4
[Framework] Env var SYMFONY_IDE to set framework.ide
GromNaN Dec 11, 2021
23f374b
feature #44575 [Framework] Read env var SYMFONY_IDE by default for fr…
GromNaN Dec 13, 2021
d58449d
Make use of the nullsafe operator
derrabus Dec 13, 2021
ff4af00
minor #44597 Make use of the nullsafe operator (derrabus)
fabpot Dec 13, 2021
4d9f1aa
bug #44430 [PropertyInfo] Fix aliased namespace matching (Korbeil)
nicolas-grekas Dec 14, 2021
276ef95
[HttpClient] minor change
nicolas-grekas Dec 14, 2021
d793d03
[HttpClient] Fix dealing with "HTTP/1.1 000 " responses
nicolas-grekas Dec 14, 2021
54efeab
[Cache] workaround transient test on M1
nicolas-grekas Dec 14, 2021
575ebf2
[Intl] Leverage array_is_list
fancyweb Dec 14, 2021
cfe16dc
minor #44624 [HttpClient] workaround transient test on M1 (nicolas-gr…
nicolas-grekas Dec 14, 2021
2dc418b
bug #44623 [HttpClient] Fix dealing with "HTTP/1.1 000 " responses (n…
nicolas-grekas Dec 14, 2021
6e52960
[HttpClient] fix monitoring responses issued before reset()
nicolas-grekas Dec 14, 2021
068674b
bug #44625 [HttpClient] fix monitoring responses issued before reset(…
nicolas-grekas Dec 14, 2021
be279d5
Merge branch '4.4' into 5.3
nicolas-grekas Dec 14, 2021
1e968b4
Merge branch '5.3' into 5.4
nicolas-grekas Dec 14, 2021
8e32728
Merge branch '5.4' into 6.0
nicolas-grekas Dec 14, 2021
3a1f34a
Merge branch '6.0' into 6.1
nicolas-grekas Dec 14, 2021
ccc9186
[Workflow] Add return type annotations to the Event class
derrabus Dec 14, 2021
d8fd632
minor #44626 [Intl] Leverage array_is_list (fancyweb)
fabpot Dec 15, 2021
5e954d6
bug #44510 [Workflow] Fix eventsToDispatch parameter setup for StateM…
fabpot Dec 15, 2021
ab1e9b9
bug #44537 [Config] In XmlUtils, avoid converting from octal every st…
fabpot Dec 15, 2021
4014ce9
[HttpClient] fix segfault when canary is triggered after the curl han…
nicolas-grekas Dec 15, 2021
74a6936
Merge branch '5.3' into 5.4
nicolas-grekas Dec 15, 2021
89bd236
Merge branch '5.4' into 6.0
nicolas-grekas Dec 15, 2021
bf0091e
Merge branch '6.0' into 6.1
nicolas-grekas Dec 15, 2021
26d51e8
Fix CI on macos-11
nicolas-grekas Dec 15, 2021
41c52bd
Merge branch '4.4' into 5.3
nicolas-grekas Dec 15, 2021
b1426b4
Try making tests a bit less transient
nicolas-grekas Dec 15, 2021
366f40a
minor #44636 Try making tests a bit less transient (nicolas-grekas)
nicolas-grekas Dec 15, 2021
f5235a9
Merge branch '4.4' into 5.3
nicolas-grekas Dec 15, 2021
fdc61b4
bug #44600 [Serializer] Fix denormalizing custom class in UidNormaliz…
nicolas-grekas Dec 15, 2021
9b1dcc5
bug #44354 [RateLimiter] Make RateLimiter resilient to timeShifting (…
nicolas-grekas Dec 15, 2021
d5d0cec
Merge branch '5.3' into 5.4
nicolas-grekas Dec 15, 2021
8c1e746
[Validator] Allow Sequence constraint to be applied onto class as an …
sidz Dec 3, 2021
8f591c3
bug #44448 [Validator] Allow Sequence constraint to be applied onto c…
nicolas-grekas Dec 15, 2021
d3a33b9
Merge branch '5.4' into 6.0
derrabus Dec 15, 2021
6be4729
Merge branch '6.0' into 6.1
derrabus Dec 15, 2021
6a0fd54
[Serializer] Fix symfony/uid requirement
fancyweb Dec 15, 2021
8b18a27
[Translation] Handle the blank-translation in Loco Adapter
kgonella Dec 13, 2021
acc1cdb
[Workflow] Fix Event constructor requirements
lyrixx Dec 15, 2021
880988c
Skip transient tests on macos
nicolas-grekas Dec 15, 2021
d6710c1
minor #44643 Skip transient tests on macos (nicolas-grekas)
nicolas-grekas Dec 15, 2021
fc2fffd
Merge branch '4.4' into 5.3
nicolas-grekas Dec 15, 2021
3ecb7e7
minor #44641 [Serializer] Fix symfony/uid requirement (fancyweb)
nicolas-grekas Dec 15, 2021
e5d3dea
bug #44598 [Translation] Handle the blank-translation in Loco Adapter…
nicolas-grekas Dec 15, 2021
18c7edd
minor #44642 [Workflow] Fix Event constructor requirements (lyrixx)
nicolas-grekas Dec 15, 2021
60b1672
[Workflow] Remove redundant type check
derrabus Dec 15, 2021
98e0fa4
Revert "minor #44642 [Workflow] Fix Event constructor requirements (l…
nicolas-grekas Dec 15, 2021
f3d3690
minor #44638 [Workflow] Remove redundant type check (derrabus)
nicolas-grekas Dec 15, 2021
9870e7e
Merge branch '5.3' into 5.4
nicolas-grekas Dec 15, 2021
ba7d70f
Merge branch '5.4' into 6.0
nicolas-grekas Dec 15, 2021
b2e7fcd
Merge branch '6.0' into 6.1
nicolas-grekas Dec 15, 2021
ee211c4
[VarDumper] add more "transient-on-macos" groups
nicolas-grekas Dec 15, 2021
6617be4
[HttpKernel] fix how configuring log-level and status-code by excepti…
nicolas-grekas Dec 15, 2021
bbdc403
[Messenger] Added generic template for `Envelope::last()` method
fractalzombie Dec 12, 2021
6bcc3cb
Revert "feature #41989 [Cache] make `LockRegistry` use semaphores whe…
nicolas-grekas Dec 16, 2021
b968514
[Cache] disable lock on CLI
nicolas-grekas Dec 16, 2021
06b25c7
[HttpClient] Fix tracing requests made after calling withOptions()
nicolas-grekas Dec 16, 2021
981cb0c
Remove pointless assignment
derrabus Dec 16, 2021
6312ef2
minor #44674 [Messenger] Remove pointless assignment (derrabus)
nicolas-grekas Dec 16, 2021
d737dab
fix merge
nicolas-grekas Dec 16, 2021
6e3b711
CS fixes
nicolas-grekas Dec 16, 2021
f1914c0
minor #44679 CS fixes (nicolas-grekas)
nicolas-grekas Dec 16, 2021
311dc83
bug #44669 [Cache] disable lock on CLI (nicolas-grekas)
nicolas-grekas Dec 16, 2021
0812726
[Cache] Fix saving items with no expiration through ProxyAdapter
sbelyshkin Dec 12, 2021
aaa18df
bug #44577 [Cache] Fix proxy no expiration to the Redis (Sergey Belys…
nicolas-grekas Dec 16, 2021
7e26952
Merge branch '4.4' into 5.3
nicolas-grekas Dec 16, 2021
ad3010b
[5.3] cs fixes
nicolas-grekas Dec 16, 2021
f190e9e
bug #44671 [HttpClient] Fix tracing requests made after calling withO…
nicolas-grekas Dec 16, 2021
61be138
Merge branch '5.3' into 5.4
nicolas-grekas Dec 16, 2021
b6d4480
[5.4] cs fixes
nicolas-grekas Dec 16, 2021
eb60956
bug #44667 [Cache] Revert "feature #41989 make `LockRegistry` use se…
nicolas-grekas Dec 16, 2021
646c33f
bug #44649 [HttpKernel] fix how configuring log-level and status-code…
nicolas-grekas Dec 16, 2021
eb749ec
Merge branch '5.4' into 6.0
nicolas-grekas Dec 16, 2021
d5534b0
[6.0] cs fixes
nicolas-grekas Dec 16, 2021
5eb8777
Merge branch '6.0' into 6.1
nicolas-grekas Dec 16, 2021
56f908a
Add more nullsafe operators
nicolas-grekas Dec 16, 2021
279bccb
minor #44659 Add more nullsafe operators (nicolas-grekas)
nicolas-grekas Dec 16, 2021
680eb90
[6.1] cs fixes
nicolas-grekas Dec 16, 2021
a976d27
minor #44583 [Messenger] Added generic template for `Envelope::last()…
nicolas-grekas Dec 17, 2021
3e49b0f
[PropertyInfo] Add support for phpDocumentor and PHPStan pseudo-types
Dec 3, 2021
53e49a8
feature #44451 [PropertyInfo] Add support for phpDocumentor and PHPSt…
nicolas-grekas Dec 17, 2021
5beaee8
[Translation] Translatable parameters
sylfabre Dec 16, 2021
ad391c5
Sync expected missing return types
nicolas-grekas Dec 17, 2021
932e846
Skip patching Envelope's return type
nicolas-grekas Dec 17, 2021
1dad23b
Fix patching return type of Envelope
nicolas-grekas Dec 17, 2021
e5ea631
feature #44672 [Translation] Translatable parameters (sylfabre)
fabpot Dec 17, 2021
3fb7af0
minor #44631 [Workflow] Add return type annotations to the Event clas…
fabpot Dec 17, 2021
812619c
[FrameworkBundle] Add @return TestContainer to KernelTestCase::getCon…
fancyweb Dec 17, 2021
e458492
minor #44695 [FrameworkBundle] Add `@return` TestContainer to KernelT…
fancyweb Dec 18, 2021
0f03f94
feature #44568 [HttpClient] Allow yielding Exception from MockRespons…
fancyweb Dec 18, 2021
4b61f8e
[Uid] Add the UidValueResolver argument value resolver
fancyweb Nov 22, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ test_script:
- copy /Y c:\php\php.ini-min c:\php\php.ini
- IF %APPVEYOR_REPO_BRANCH:~-2% neq .x (rm -Rf src\Symfony\Bridge\PhpUnit)
- mv src\Symfony\Component\HttpClient\phpunit.xml.dist src\Symfony\Component\HttpClient\phpunit.xml
- php phpunit src\Symfony --exclude-group tty,benchmark,intl-data || SET X=!errorlevel!
- php phpunit src\Symfony --exclude-group tty,benchmark,intl-data,network,transient-on-windows || SET X=!errorlevel!
- php phpunit src\Symfony\Component\HttpClient || SET X=!errorlevel!
- copy /Y c:\php\php.ini-max c:\php\php.ini
- php phpunit src\Symfony --exclude-group tty,benchmark,intl-data || SET X=!errorlevel!
- php phpunit src\Symfony --exclude-group tty,benchmark,intl-data,network,transient-on-windows || SET X=!errorlevel!
- php phpunit src\Symfony\Component\HttpClient || SET X=!errorlevel!
- exit %X%
84 changes: 72 additions & 12 deletions .github/expected-missing-return-types.diff
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ head=$(sed '/^diff /Q' .github/expected-missing-return-types.diff)
(echo "$head" && echo && git diff -U2 composer.json src/) > .github/expected-missing-return-types.diff

diff --git a/composer.json b/composer.json
index 1bc576b112..589ef8c260 100644
index 1750d55ee2..c18494167a 100644
--- a/composer.json
+++ b/composer.json
@@ -175,5 +175,5 @@
Expand All @@ -16,8 +16,19 @@ index 1bc576b112..589ef8c260 100644
+
]
},
diff --git a/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php b/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php
index d68ae4c8b3..8e980a9e70 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php
@@ -88,5 +88,5 @@ abstract class KernelTestCase extends TestCase
* @return TestContainer
*/
- protected static function getContainer(): ContainerInterface
+ protected static function getContainer(): TestContainer
{
if (!static::$booted) {
diff --git a/src/Symfony/Component/BrowserKit/AbstractBrowser.php b/src/Symfony/Component/BrowserKit/AbstractBrowser.php
index 152050159b..e2ec1aeea2 100644
index 697e34cb77..9a1e4c5618 100644
--- a/src/Symfony/Component/BrowserKit/AbstractBrowser.php
+++ b/src/Symfony/Component/BrowserKit/AbstractBrowser.php
@@ -408,5 +408,5 @@ abstract class AbstractBrowser
Expand Down Expand Up @@ -144,7 +155,7 @@ index 6b1c6c5fbe..bb80ed461e 100644
+ public function isFresh(ResourceInterface $resource, int $timestamp): bool;
}
diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php
index b582435f7d..3d5f064773 100644
index 0ed5649b8a..6c814bf82c 100644
--- a/src/Symfony/Component/Console/Application.php
+++ b/src/Symfony/Component/Console/Application.php
@@ -218,5 +218,5 @@ class Application implements ResetInterface
Expand Down Expand Up @@ -197,7 +208,7 @@ index b582435f7d..3d5f064773 100644
{
foreach ($command->getHelperSet() as $helper) {
diff --git a/src/Symfony/Component/Console/Command/Command.php b/src/Symfony/Component/Console/Command/Command.php
index d6354b4ab1..b267917312 100644
index 0bd3426c07..b38caf989e 100644
--- a/src/Symfony/Component/Console/Command/Command.php
+++ b/src/Symfony/Component/Console/Command/Command.php
@@ -171,5 +171,5 @@ class Command
Expand Down Expand Up @@ -250,18 +261,18 @@ index 024da1884e..943790e875 100644

/**
diff --git a/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php b/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php
index 1acec50de5..904e67a47b 100644
index 326d8d4f5f..e62124c7af 100644
--- a/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php
+++ b/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php
@@ -70,5 +70,5 @@ abstract class AbstractRecursivePass implements CompilerPassInterface
@@ -71,5 +71,5 @@ abstract class AbstractRecursivePass implements CompilerPassInterface
* @return mixed
*/
- protected function processValue(mixed $value, bool $isRoot = false)
+ protected function processValue(mixed $value, bool $isRoot = false): mixed
{
if (\is_array($value)) {
diff --git a/src/Symfony/Component/DependencyInjection/Container.php b/src/Symfony/Component/DependencyInjection/Container.php
index 0532120adf..78fba5ef79 100644
index b9dd838898..3a8cb63eac 100644
--- a/src/Symfony/Component/DependencyInjection/Container.php
+++ b/src/Symfony/Component/DependencyInjection/Container.php
@@ -108,5 +108,5 @@ class Container implements ContainerInterface, ResetInterface
Expand Down Expand Up @@ -535,7 +546,7 @@ index 1cb865fd66..f6f4efe7a7 100644
+ public function getName(): string;
}
diff --git a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
index 8e7b80a909..d757429d36 100644
index cf0e243c6b..292b907ea8 100644
--- a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
+++ b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
@@ -448,5 +448,5 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
Expand All @@ -544,9 +555,9 @@ index 8e7b80a909..d757429d36 100644
- protected function forward(Request $request, bool $catch = false, Response $entry = null)
+ protected function forward(Request $request, bool $catch = false, Response $entry = null): Response
{
if ($this->surrogate) {
$this->surrogate?->addSurrogateCapability($request);
diff --git a/src/Symfony/Component/HttpKernel/HttpKernelBrowser.php b/src/Symfony/Component/HttpKernel/HttpKernelBrowser.php
index f4773eb62a..0ba648b57f 100644
index 3ecc2c739c..d50834b6d9 100644
--- a/src/Symfony/Component/HttpKernel/HttpKernelBrowser.php
+++ b/src/Symfony/Component/HttpKernel/HttpKernelBrowser.php
@@ -61,5 +61,5 @@ class HttpKernelBrowser extends AbstractBrowser
Expand Down Expand Up @@ -581,8 +592,25 @@ index 19ff0db181..f0f4a5829f 100644
+ public function countErrors(Request $request = null): int;

/**
diff --git a/src/Symfony/Component/Messenger/Envelope.php b/src/Symfony/Component/Messenger/Envelope.php
index bb1194ad1b..bd7fc440ff 100644
--- a/src/Symfony/Component/Messenger/Envelope.php
+++ b/src/Symfony/Component/Messenger/Envelope.php
@@ -13,4 +13,5 @@ namespace Symfony\Component\Messenger;

use Symfony\Component\Messenger\Stamp\StampInterface;
+use Symfony\Component\Messenger\Stamp\StampInterface as TStamp;

/**
@@ -101,5 +102,5 @@ final class Envelope
* @return TStamp|null
*/
- public function last(string $stampFqcn): ?StampInterface
+ public function last(string $stampFqcn): ?TStamp
{
return isset($this->stamps[$stampFqcn]) ? end($this->stamps[$stampFqcn]) : null;
diff --git a/src/Symfony/Component/OptionsResolver/OptionsResolver.php b/src/Symfony/Component/OptionsResolver/OptionsResolver.php
index fe77644762..09dcfe166b 100644
index 205c15b4cd..e93e460ed1 100644
--- a/src/Symfony/Component/OptionsResolver/OptionsResolver.php
+++ b/src/Symfony/Component/OptionsResolver/OptionsResolver.php
@@ -486,5 +486,5 @@ class OptionsResolver implements Options
Expand Down Expand Up @@ -858,7 +886,7 @@ index b0a1f3218b..893fe59e2f 100644
{
if (null !== $object = $this->extractObjectToPopulate($class, $context, self::OBJECT_TO_POPULATE)) {
diff --git a/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
index a241215133..2ed1af7a02 100644
index 3e1e7edc8e..e025b2bc4a 100644
--- a/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
+++ b/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
@@ -136,5 +136,5 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
Expand Down Expand Up @@ -1002,3 +1030,35 @@ index d6dcdf178f..0ab8d9c10e 100644
+ public function getTargets(): string|array
{
return self::PROPERTY_CONSTRAINT;
diff --git a/src/Symfony/Component/Workflow/Event/Event.php b/src/Symfony/Component/Workflow/Event/Event.php
index cd7fab7896..b340eba38e 100644
--- a/src/Symfony/Component/Workflow/Event/Event.php
+++ b/src/Symfony/Component/Workflow/Event/Event.php
@@ -42,5 +42,5 @@ class Event extends BaseEvent
* @return Marking
*/
- public function getMarking()
+ public function getMarking(): Marking
{
return $this->marking;
@@ -50,5 +50,5 @@ class Event extends BaseEvent
* @return object
*/
- public function getSubject()
+ public function getSubject(): object
{
return $this->subject;
@@ -58,5 +58,5 @@ class Event extends BaseEvent
* @return Transition|null
*/
- public function getTransition()
+ public function getTransition(): ?Transition
{
return $this->transition;
@@ -71,5 +71,5 @@ class Event extends BaseEvent
* @return string
*/
- public function getWorkflowName()
+ public function getWorkflowName(): string
{
return $this->workflow->getName();
6 changes: 3 additions & 3 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
([ -d "$COMPOSER_HOME" ] || mkdir "$COMPOSER_HOME") && cp .github/composer-config.json "$COMPOSER_HOME/config.json"

echo COLUMNS=120 >> $GITHUB_ENV
echo PHPUNIT="$(pwd)/phpunit --exclude-group tty,benchmark,intl-data" >> $GITHUB_ENV
echo PHPUNIT="$(pwd)/phpunit --exclude-group tty,benchmark,intl-data$([[ ${{ matrix.os }} = macos* ]] && echo ',transient-on-macos')" >> $GITHUB_ENV
echo COMPOSER_UP='composer update --no-progress --ansi' >> $GITHUB_ENV

SYMFONY_VERSIONS=$(git ls-remote -q --heads | cut -f2 | grep -o '/[1-9][0-9]*\.[0-9].*' | sort -V)
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
echo "::endgroup::"

- name: Patch return types
if: "matrix.php == '8.1' && ! matrix.mode && matrix.os == 'ubuntu-20.04'"
if: "matrix.php == '8.1' && ! matrix.mode && matrix.os != 'macos-11'"
run: |
patch -sp1 < .github/expected-missing-return-types.diff
git add .
Expand Down Expand Up @@ -224,7 +224,7 @@ jobs:
[[ ! $X ]] || (exit 1)

- name: Run tests with SIGCHLD enabled PHP
if: "matrix.php == '8.0' && ! matrix.mode"
if: "matrix.php == '8.0' && ! matrix.mode && matrix.os != 'macos-11'"
run: |
mkdir build
cd build
Expand Down
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'@Symfony' => true,
'@Symfony:risky' => true,
'protected_to_private' => false,
'native_constant_invocation' => ['strict' => false],
'nullable_type_declaration_for_default_null_value' => ['use_nullable_type_declaration' => false],
'modernize_strpos' => true,
])
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
"egulias/email-validator": "~3.0.0",
"masterminds/html5": "<2.6",
"phpdocumentor/reflection-docblock": "<5.2",
"phpdocumentor/type-resolver": "<1.4.0",
"phpdocumentor/type-resolver": "<1.5.1",
"ocramius/proxy-manager": "<2.1",
"phpunit/phpunit": "<5.4.3"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function dispatchEvent($eventName, EventArgs $eventArgs = null): void
return;
}

$eventArgs = $eventArgs ?? EventArgs::getEmptyInstance();
$eventArgs ??= EventArgs::getEmptyInstance();

if (!isset($this->initialized[$eventName])) {
$this->initializeListeners($eventName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ protected function setMappingDriverConfig(array $mappingConfig, string $mappingN
* If this is a bundle controlled mapping all the missing information can be autodetected by this method.
*
* Returns false when autodetection failed, an array of the completed information otherwise.
*
* @return array|false
*/
protected function getMappingDriverBundleConfigDefaults(array $bundleConfig, \ReflectionClass $bundle, ContainerBuilder $container, string $bundleDir = null): array|false
{
Expand Down
8 changes: 2 additions & 6 deletions src/Symfony/Bridge/Doctrine/Logger/DbalLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ public function __construct(LoggerInterface $logger = null, Stopwatch $stopwatch
*/
public function startQuery($sql, array $params = null, array $types = null): void
{
if (null !== $this->stopwatch) {
$this->stopwatch->start('doctrine', 'doctrine');
}
$this->stopwatch?->start('doctrine', 'doctrine');

if (null !== $this->logger) {
$this->log($sql, null === $params ? [] : $this->normalizeParams($params));
Expand All @@ -51,9 +49,7 @@ public function startQuery($sql, array $params = null, array $types = null): voi
*/
public function stopQuery(): void
{
if (null !== $this->stopwatch) {
$this->stopwatch->stop('doctrine');
}
$this->stopwatch?->stop('doctrine');
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ public function __construct(ManagerRegistry $registry)

public function initialize(object $object)
{
$manager = $this->registry->getManagerForClass(\get_class($object));
if (null !== $manager) {
$manager->initializeObject($object);
}
$this->registry->getManagerForClass(\get_class($object))?->initializeObject($object);
}
}
2 changes: 1 addition & 1 deletion src/Symfony/Bridge/Doctrine/Validator/DoctrineLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function loadClassMetadata(ClassMetadata $metadata): bool
$className = $metadata->getClassName();
try {
$doctrineMetadata = $this->entityManager->getClassMetadata($className);
} catch (MappingException | OrmMappingException $exception) {
} catch (MappingException|OrmMappingException $exception) {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Bridge/Twig/AppVariable.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function getSession(): ?Session
}
$request = $this->getRequest();

return $request && $request->hasSession() ? $request->getSession() : null;
return $request?->hasSession() ? $request->getSession() : null;
}

/**
Expand Down
4 changes: 1 addition & 3 deletions src/Symfony/Bridge/Twig/Command/LintCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,7 @@ private function renderException(SymfonyStyle $output, string $template, Error $
{
$line = $exception->getTemplateLine();

if ($githubReporter) {
$githubReporter->error($exception->getRawMessage(), $file, $line <= 0 ? null : $line);
}
$githubReporter?->error($exception->getRawMessage(), $file, $line <= 0 ? null : $line);

if ($file) {
$output->text(sprintf('<error> ERROR </error> in %s (line %s)', $file, $line));
Expand Down
6 changes: 0 additions & 6 deletions src/Symfony/Bridge/Twig/UndefinedCallableHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ class UndefinedCallableHandler
'workflow' => 'enable "framework.workflows"',
];

/**
* @return TwigFilter|false
*/
public static function onUndefinedFilter(string $name): TwigFilter|false
{
if (!isset(self::FILTER_COMPONENTS[$name])) {
Expand All @@ -80,9 +77,6 @@ public static function onUndefinedFilter(string $name): TwigFilter|false
throw new SyntaxError(self::onUndefined($name, 'filter', self::FILTER_COMPONENTS[$name]));
}

/**
* @return TwigFunction|false
*/
public static function onUndefinedFunction(string $name): TwigFunction|false
{
if (!isset(self::FUNCTION_COMPONENTS[$name])) {
Expand Down
5 changes: 5 additions & 0 deletions src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CHANGELOG
=========

6.1
---

* Environment variable `SYMFONY_IDE` is read by default when `framework.ide` config is not set.

6.0
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ public function warmUp(string $cacheDir): array
try {
$this->dumpExtension($extension, $generator);
} catch (\Exception $e) {
if ($this->logger) {
$this->logger->warning('Failed to generate ConfigBuilder for extension {extensionClass}.', ['exception' => $e, 'extensionClass' => \get_class($extension)]);
}
$this->logger?->warning('Failed to generate ConfigBuilder for extension {extensionClass}.', ['exception' => $e, 'extensionClass' => \get_class($extension)]);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}

$secrets = $this->vault->list($reveal);
$localSecrets = null !== $this->localVault ? $this->localVault->list($reveal) : null;
$localSecrets = $this->localVault?->list($reveal);

$rows = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
class WorkflowDumpCommand extends Command
{
/**
* string is the service id
* string is the service id.
*
* @var array<string, Definition>
*/
private array $workflows = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ public function setContainer(ContainerInterface $container): ?ContainerInterface

/**
* Gets a container parameter by its name.
*
* @return array|bool|float|int|string|null
*/
protected function getParameter(string $name): array|bool|float|int|string|null
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function getConfigTreeBuilder(): TreeBuilder
->info("Set true to enable support for the '_method' request parameter to determine the intended HTTP method on POST requests. Note: When using the HttpCache, you need to call the method in your front controller instead")
->defaultTrue()
->end()
->scalarNode('ide')->defaultNull()->end()
->scalarNode('ide')->defaultValue('%env(default::SYMFONY_IDE)%')->end()
->booleanNode('test')->end()
->scalarNode('default_locale')->defaultValue('en')->end()
->booleanNode('set_locale_from_accept_language')
Expand Down Expand Up @@ -2038,6 +2038,9 @@ private function addUidSection(ArrayNodeDefinition $rootNode, callable $enableIf
->scalarNode('time_based_uuid_node')
->cannotBeEmpty()
->end()
->arrayNode('argument_value_resolver')
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: xml config

->canBeEnabled()
->end()
->end()
->end()
->end()
Expand Down
Loading