Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[WIP] [Serializer] Allow deserializingunion types properly#45824

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
T-bond wants to merge9,180 commits intosymfony:4.4fromT-bond:ticket_45818
Closed
Show file tree
Hide file tree
Changes from2 commits
Commits
Show all changes
9180 commits
Select commitHold shift + click to select a range
5760694
[Notifier] Fix encoding of messages with FreeMobileTransport
94noniJan 26, 2022
4565edb
bug #45185 [Notifier] Fix encoding of messages with FreeMobileTranspo…
nicolas-grekasJan 26, 2022
27d9eff
[Serializer] Fix AbstractObjectNormalizer not considering pseudo type…
ThomasNunningerJan 24, 2022
1199672
bug #45154 [Serializer] Fix AbstractObjectNormalizer not considering …
nicolas-grekasJan 26, 2022
e108a7f
Merge branch '4.4' into 5.3
nicolas-grekasJan 26, 2022
1f29087
[Dotenv] Fix bootEnv() override with .env.local.php when the env key …
fancywebJan 26, 2022
3174426
Merge branch '4.4' into 5.3
nicolas-grekasJan 26, 2022
ccd85fe
Fix Choice constraint with associative choices array
derrabusDec 29, 2021
5044a0a
bug #44860 [Validator] Fix Choice constraint with associative choices…
nicolas-grekasJan 26, 2022
06ada78
Merge branch '5.3' into 5.4
nicolas-grekasJan 26, 2022
5cad3b6
bug #44987 [DoctrineBridge] [5.4] Fix automapping (mbabker)
nicolas-grekasJan 26, 2022
4153af6
[Yaml] Improve the deprecation warnings for octal numbers to suggest …
stofJan 20, 2022
34a0893
minor #45085 [Yaml] Improve the deprecation warnings for octal number…
nicolas-grekasJan 26, 2022
d108ac5
[Finder] Fix finding VCS re-included files in excluded directory
julienfalqueJan 20, 2022
79d1101
bug #45095 [Finder] Fix finding VCS re-included files in excluded dir…
nicolas-grekasJan 26, 2022
9b7aac3
bug #45188 [Dotenv] Fix bootEnv() override with .env.local.php when t…
nicolas-grekasJan 26, 2022
d9c291a
Merge branch '5.4' into 6.0
nicolas-grekasJan 26, 2022
cf40864
cs fix
nicolas-grekasJan 26, 2022
0eeb392
Merge branch '5.3' into 5.4
nicolas-grekasJan 26, 2022
af01fde
[Cache] fix merge
nicolas-grekasJan 26, 2022
0460f81
[Runtime] Fix --env and --no-debug with dotenv_overload
fancywebJan 12, 2022
5bb11d5
bug #44997 [Runtime] Fix --env and --no-debug with dotenv_overload (f…
nicolas-grekasJan 26, 2022
2e1defc
Merge branch '5.4' into 6.0
nicolas-grekasJan 26, 2022
1855798
[FrameworkBundle] Fix missing arguments when a serialization default …
ArnoudThibautJan 26, 2022
111459e
bug #45193 [FrameworkBundle] Fix missing arguments when a serializati…
nicolas-grekasJan 26, 2022
b047a2d
[HttpKernel] Fix session test cases for symfony
alexander-schranzJan 26, 2022
bca341f
minor #45192 [HttpKernel] Fix session test cases for symfony (alexand…
nicolas-grekasJan 27, 2022
ab0f31d
[DoctrineBridge] fix tests
nicolas-grekasJan 27, 2022
062868b
Merge branch '5.4' into 6.0
nicolas-grekasJan 27, 2022
28e5b42
[HttpKernel] fix tests
nicolas-grekasJan 27, 2022
df05836
[Lock] fix transient test
nicolas-grekasJan 27, 2022
96215b1
Merge branch '5.4' into 6.0
nicolas-grekasJan 27, 2022
a4af465
[Lock] fix transient test
nicolas-grekasJan 27, 2022
47cd37a
Merge branch '5.4' into 6.0
nicolas-grekasJan 27, 2022
d0be783
Update CHANGELOG for 5.3.14
fabpotJan 28, 2022
094b462
Update VERSION for 5.3.14
fabpotJan 28, 2022
61aa4c2
Merge pull request #45216 from fabpot/release-5.3.14
fabpotJan 28, 2022
224eb7d
Bump Symfony version to 5.3.15
fabpotJan 28, 2022
15c6c16
Update CHANGELOG for 5.4.3
fabpotJan 28, 2022
83c7e70
Update VERSION for 5.4.3
fabpotJan 28, 2022
74f3355
Merge pull request #45217 from fabpot/release-5.4.3
fabpotJan 28, 2022
bba4c8d
Bump Symfony version to 5.4.4
fabpotJan 28, 2022
a0fd3b3
Update CHANGELOG for 6.0.3
fabpotJan 28, 2022
3ddec04
Update VERSION for 6.0.3
fabpotJan 28, 2022
c0f8717
Merge pull request #45220 from fabpot/release-6.0.3
fabpotJan 28, 2022
b2c742d
Bump Symfony version to 6.0.4
fabpotJan 28, 2022
f0ffb77
Enable CSRF in FORM by default
jderusseJan 28, 2022
0c7f80a
Merge branch '5.3' into 5.4
nicolas-grekasJan 29, 2022
288a4b2
Merge branch '5.4' into 6.0
nicolas-grekasJan 29, 2022
dcfb493
security #cve-2022-xxxx [FrameworkBundle] Enable CSRF in FORM by defa…
nicolas-grekasJan 29, 2022
184026d
Merge branch '5.3' into 5.4
nicolas-grekasJan 29, 2022
2015ac8
Merge branch '5.4' into 6.0
nicolas-grekasJan 29, 2022
2798217
Update CHANGELOG for 5.3.15
fabpotJan 29, 2022
053d5bb
Update VERSION for 5.3.15
fabpotJan 29, 2022
9447827
Merge pull request #45237 from fabpot/release-5.3.15
fabpotJan 29, 2022
0ea401c
Update CHANGELOG for 5.4.4
fabpotJan 29, 2022
460e905
Update VERSION for 5.4.4
fabpotJan 29, 2022
d7915d0
Merge pull request #45238 from fabpot/release-5.4.4
fabpotJan 29, 2022
d6cf082
Bump Symfony version to 5.4.5
fabpotJan 29, 2022
2284cc2
Update CHANGELOG for 6.0.4
fabpotJan 29, 2022
22118d2
Update VERSION for 6.0.4
fabpotJan 29, 2022
82e8d23
Merge pull request #45239 from fabpot/release-6.0.4
fabpotJan 29, 2022
39195b7
Bump Symfony version to 6.0.5
fabpotJan 29, 2022
c0eede4
[DoctrineBridge] Fix compatibility with doctrine/orm 3 in Id generators
ostroluckyJan 30, 2022
a02a8e3
bug #45243 [DoctrineBridge] Fix compatibility with doctrine/orm 3 in …
derrabusJan 30, 2022
1fc7a60
Merge branch '4.4' into 5.4
derrabusJan 30, 2022
3f168c7
Merge branch '5.3' into 5.4
derrabusJan 30, 2022
61cf298
Merge branch '5.4' into 6.0
derrabusJan 30, 2022
4335056
Merge branch '4.4' into 5.4
nicolas-grekasJan 31, 2022
4a31c29
Merge branch '5.4' into 6.0
nicolas-grekasJan 31, 2022
ef0efcc
fix merge
nicolas-grekasJan 31, 2022
0771187
Merge branch '5.4' into 6.0
nicolas-grekasJan 31, 2022
6b8839d
[Routing] AnnotationDirectoryLoader::load() may return null
mhujerJan 31, 2022
8588f4b
cs fix
nicolas-grekasJan 31, 2022
9de4c0d
Merge branch '5.4' into 6.0
nicolas-grekasJan 31, 2022
98e6d82
fix merge
nicolas-grekasJan 31, 2022
90e24fb
Merge branch '5.4' into 6.0
nicolas-grekasJan 31, 2022
d54ef8c
bug #45263 [Routing] AnnotationDirectoryLoader::load() may return nul…
derrabusJan 31, 2022
ae62a78
[Mailer] allow Mailchimp to handle multiple TagHeader's
kbondFeb 1, 2022
84b7cb4
[Postmark] ensure only a single tag can be used with Postmark
kbondFeb 1, 2022
6413b64
bug #45275 [Mailer] ensure only a single tag can be used with Postmar…
fabpotFeb 2, 2022
d7da823
bug #45274 [Mailer] allow Mailchimp to handle multiple TagHeader's (k…
fabpotFeb 2, 2022
9f7909b
[Notifier] fix Microsoft Teams webhook url
christophkoenigFeb 2, 2022
b400f80
bug #45290 [Notifier] fix Microsoft Teams webhook url (christophkoenig)
fabpotFeb 2, 2022
96b67b2
[WebProfilerBundle] Fixes weird spacing in log message context/trace …
jennevdmeerJan 28, 2022
56dd927
bug #45219 [WebProfilerBundle] Fixes weird spacing in log message con…
fabpotFeb 2, 2022
1c60a5a
[HttpKernel] Fix FileLinkFormatter with empty xdebug.file_link_format
fancywebFeb 3, 2022
5fbb217
Added `kernel.event_listener` to the default list of behavior describ…
LANGERGabrielleFeb 3, 2022
5e1a2cb
[HttpKernel] Fixed error count by log not displayed in WebProfilerBundle
SVilletteFeb 3, 2022
5cb5880
bug #45302 [HttpKernel][WebProfilerBundle] Fixed error count by log n…
fabpotFeb 4, 2022
45a09a8
bug #45299 [DependencyInjection] Fix AsEventListener not working on d…
fabpotFeb 4, 2022
8db1135
bug #45298 [HttpKernel] Fix FileLinkFormatter with empty xdebug.file_…
fabpotFeb 4, 2022
e0b5ce1
Merge branch '4.4' into 5.4
nicolas-grekasFeb 4, 2022
643fa65
Merge branch '4.4' into 5.4
nicolas-grekasFeb 4, 2022
a6627af
[Semaphore] fix tests
nicolas-grekasFeb 4, 2022
4bcd943
Merge branch '5.4' into 6.0
nicolas-grekasFeb 4, 2022
c1311c6
Fix merge
nicolas-grekasFeb 4, 2022
cf8db14
Fix generic type for FormErrorIterator
akalineskouFeb 4, 2022
2e32f2f
bug #45322 Fix generic type for FormErrorIterator (akalineskou)
fabpotFeb 5, 2022
49352e0
[Security] Fix wrong authenticator class in debug logs
chalasrFeb 7, 2022
0fc8f7a
bug #45331 [Security]  Fix wrong authenticator class in debug logs (c…
fabpotFeb 7, 2022
a44c70e
Merge branch '4.4' into 5.4
derrabusFeb 8, 2022
a53af95
Merge branch '5.4' into 6.0
derrabusFeb 8, 2022
c3b7bf2
[Console] Fix typo in completion command help text
DAcodedBEATFeb 9, 2022
89d04a9
Merge branch '4.4' into 5.4
nicolas-grekasFeb 9, 2022
2626d8b
Merge branch '5.4' into 6.0
nicolas-grekasFeb 9, 2022
163a65c
Merge branch '4.4' into 5.4
nicolas-grekasFeb 9, 2022
a050d32
minor #45362 [Console] Fix typo in completion command help text (DAco…
nicolas-grekasFeb 9, 2022
ccd9916
[Console] fix tests
nicolas-grekasFeb 9, 2022
554980c
Merge branch '5.4' into 6.0
nicolas-grekasFeb 9, 2022
402fdd0
Merge branch '4.4' into 5.4
nicolas-grekasFeb 11, 2022
ba413e1
Merge branch '5.4' into 6.0
nicolas-grekasFeb 11, 2022
e831aa7
[Serializer] Ensuring end of line character apply with constructor se…
Feb 10, 2022
c5be706
bug #45391 [Serializer] Ensuring end of line character apply with con…
nicolas-grekasFeb 11, 2022
1189063
Merge branch '4.4' into 5.4
nicolas-grekasFeb 11, 2022
698019d
Merge branch '4.4' into 5.4
nicolas-grekasFeb 11, 2022
6f81bf8
Merge branch '5.4' into 6.0
nicolas-grekasFeb 11, 2022
3784dbc
Merge branch '4.4' into 5.4
nicolas-grekasFeb 11, 2022
9045ad4
Merge branch '5.4' into 6.0
nicolas-grekasFeb 11, 2022
4075269
[Runtime] Fix dotenv_overload with commands
fancywebFeb 15, 2022
20111d2
bug #45426 [Runtime] Fix dotenv_overload with commands (fancyweb)
nicolas-grekasFeb 15, 2022
5a9399f
[Serializer] Remove unnecessary break
fancywebFeb 15, 2022
376abbe
[Dotenv] Fix reading config for symfony/runtime when running dump com…
nicolas-grekasFeb 15, 2022
adb7a40
minor #45428 [Serializer] Remove unnecessary break (fancyweb)
fancywebFeb 17, 2022
b244a06
[Security/Http] Fix getting password-upgrader when user-loader is a c…
nicolas-grekasFeb 17, 2022
579ed91
bug #45463 [Security/Http] Fix getting password-upgrader when user-lo…
nicolas-grekasFeb 18, 2022
2131224
bug #45430 [Dotenv] Fix reading config for symfony/runtime when runni…
nicolas-grekasFeb 18, 2022
92d183e
Merge branch '4.4' into 5.4
nicolas-grekasFeb 18, 2022
d27eab5
[Filesystem] Update some PHPDoc of the Path class
javiereguiluzFeb 21, 2022
8eb1af3
minor #45497 [Filesystem] Update some PHPDoc of the Path class (javie…
nicolas-grekasFeb 21, 2022
fe6a247
Merge branch '4.4' into 5.4
nicolas-grekasFeb 21, 2022
ccacbf2
[Messenger] Fix dealing with unexpected payload in Redis transport
nicoalonsoFeb 2, 2022
49b6d7f
bug #45279 [Messenger] Fix dealing with unexpected payload in Redis t…
nicolas-grekasFeb 21, 2022
42cef49
Merge branch '5.4' into 6.0
nicolas-grekasFeb 21, 2022
fe1cedf
Merge branch '4.4' into 5.4
nicolas-grekasFeb 24, 2022
32a0f50
[Lock] Release Locks from Internal Store on Postgres waitAndSave*
chrisguitarguyFeb 23, 2022
87a1a34
bug #45526 [Lock] Release Locks from Internal Store on Postgres waitA…
nicolas-grekasFeb 24, 2022
8b623e6
Merge branch '5.4' into 6.0
nicolas-grekasFeb 24, 2022
aaa5237
[Validator] Fix AssertingContextualValidator when there is no expecta…
fancywebFeb 24, 2022
255dacc
minor #45543 [Validator] Fix AssertingContextualValidator when there …
nicolas-grekasFeb 24, 2022
83d6393
Merge branch '5.4' into 6.0
nicolas-grekasFeb 24, 2022
74719e7
[Console] Fix null handling in formatAndWrap()
derrabusFeb 24, 2022
98b46a6
Extend Symfony 6.0 EOL
fabpotFeb 24, 2022
c7daac4
minor #45550 Extend Symfony 6.0 EOL (fabpot)
fabpotFeb 24, 2022
1765f3f
bug #45546 [Console] Fix null handling in formatAndWrap() (derrabus)
fabpotFeb 25, 2022
b6e8cf7
[Validator] Multi decimal to alpha for CssColor validator
Jan 10, 2022
d2ab9cf
bug #44967 [Validator] Multi decimal to alpha for CssColor validator …
fabpotFeb 25, 2022
98a7937
Merge branch '4.4' into 5.4
nicolas-grekasFeb 25, 2022
afa6b85
Merge branch '5.4' into 6.0
nicolas-grekasFeb 25, 2022
12aec87
Fix link not present
94noniFeb 25, 2022
1c3b266
[WebProfilerBundle] Log section minor fixes (missing "notice" filter,…
AmunakFeb 8, 2022
30aeb85
bug #45351 [WebProfilerBundle] Log section minor fixes (missing "noti…
fabpotFeb 25, 2022
9bc4468
minor #45558 [Intl] Fix link not present (94noni)
fabpotFeb 25, 2022
80bd630
Merge branch '4.4' into 5.4
nicolas-grekasFeb 27, 2022
fdfa40e
Merge branch '4.4' into 5.4
nicolas-grekasFeb 27, 2022
b8e310e
Merge branch '5.4' into 6.0
nicolas-grekasFeb 27, 2022
c83febc
[Filesystem] Replace occurrences of `operation system` to `operating …
alexandre-dauboisFeb 27, 2022
45b6020
minor #45568 [Filesystem] Replace occurrences of `operation system` t…
fabpotFeb 28, 2022
dcd4c1b
Merge branch '5.4' into 6.0
fabpotFeb 28, 2022
d330a04
Update CHANGELOG for 5.4.5
fabpotFeb 28, 2022
09e2ee6
Update VERSION for 5.4.5
fabpotFeb 28, 2022
54cd033
Merge pull request #45577 from fabpot/release-5.4.5
fabpotFeb 28, 2022
7338258
Bump Symfony version to 5.4.6
fabpotFeb 28, 2022
b4bba32
Update CHANGELOG for 6.0.5
fabpotFeb 28, 2022
a49d523
Update VERSION for 6.0.5
fabpotFeb 28, 2022
a9c2c8a
Merge pull request #45578 from fabpot/release-6.0.5
fabpotFeb 28, 2022
731a1db
Bump Symfony version to 6.0.6
fabpotFeb 28, 2022
a6cb053
Merge branch '4.4' into 5.4
derrabusFeb 28, 2022
b4b87d2
Merge branch '5.4' into 6.0
derrabusFeb 28, 2022
b5b86dd
[FrameworkBundle] require ext-sodium in tests
nicolas-grekasFeb 28, 2022
6d440d5
Merge branch '4.4' into 5.4
nicolas-grekasFeb 28, 2022
1f68723
minor #45584 [FrameworkBundle] require ext-sodium in tests (nicolas-g…
nicolas-grekasFeb 28, 2022
e978194
[Console] Revert StringInput bc break from #45088
bobthecowJan 29, 2022
84f0d0e
bug #45590 [Console] Revert StringInput bc break from #45088 (bobthecow)
fabpotMar 1, 2022
c337670
Update CHANGELOG for 5.3.16
fabpotMar 1, 2022
0116b3c
Update VERSION for 5.3.16
fabpotMar 1, 2022
a57252f
Merge pull request #45591 from fabpot/release-5.3.16
fabpotMar 1, 2022
5af3392
Merge branch '5.3' into 5.4
derrabusMar 1, 2022
e212fd9
Merge branch '5.4' into 6.0
derrabusMar 1, 2022
6553e07
Merge branch '4.4' into 5.4
nicolas-grekasMar 1, 2022
c028b50
Fix merge
nicolas-grekasMar 1, 2022
8ae5487
Merge branch '5.4' into 6.0
nicolas-grekasMar 1, 2022
64fd29f
Merge branch '4.4' into 5.4
nicolas-grekasMar 2, 2022
83d32b1
Fix merge
nicolas-grekasMar 2, 2022
ad308c1
Merge branch '5.4' into 6.0
nicolas-grekasMar 2, 2022
1f37bb8
Fix merge
nicolas-grekasMar 2, 2022
96c8e7a
-
nicolas-grekasMar 2, 2022
4ae613e
-
nicolas-grekasMar 2, 2022
a7e1a27
Merge branch '5.4' into 6.0
nicolas-grekasMar 2, 2022
3e209c3
[HttpKernel] Fix advertizing deprecations for *TestSessionListener
nicolas-grekasMar 2, 2022
1027465
do not pass DBAL connections to PDO adapters
xabbuhMar 4, 2022
7cecf52
bug #45637 [Cache] do not pass DBAL connections to PDO adapters (xabbuh)
nicolas-grekasMar 4, 2022
758539a
[redis-messenger] remove undefined array key warnings
PhilETaylorMar 2, 2022
e091d74
bug #45619 [redis-messenger] remove undefined array key warnings (Phi…
nicolas-grekasMar 4, 2022
309998b
[FrameworkBundle] Fix compiler passes processing a container twice wh…
LANGERGabrielleMar 4, 2022
924b5ba
Merge branch '4.4' into 5.4
fabpotMar 5, 2022
e7030ad
Merge branch '5.4' into 6.0
fabpotMar 5, 2022
e073bfc
Update CHANGELOG for 5.4.6
fabpotMar 5, 2022
11bb129
Update VERSION for 5.4.6
fabpotMar 5, 2022
9c76074
Merge pull request #45654 from fabpot/release-5.4.6
fabpotMar 5, 2022
ca27974
Bump Symfony version to 5.4.7
fabpotMar 5, 2022
0f25256
Update CHANGELOG for 6.0.6
fabpotMar 5, 2022
07e8500
Update VERSION for 6.0.6
fabpotMar 5, 2022
4d1a5fd
Merge pull request #45655 from fabpot/release-6.0.6
fabpotMar 5, 2022
a14ccba
Bump Symfony version to 6.0.7
fabpotMar 5, 2022
a3730d7
Fix tests
nicolas-grekasMar 6, 2022
30a6a71
Merge branch '4.4' into 5.4
nicolas-grekasMar 6, 2022
e4b3a32
Merge branch '5.4' into 6.0
nicolas-grekasMar 6, 2022
c4d5b04
reflect Cache component version dependent default value in test
xabbuhMar 6, 2022
8a3de22
minor #45659 reflect Cache component version dependent default value …
xabbuhMar 6, 2022
757d62b
Merge branch '5.4' into 6.0
xabbuhMar 6, 2022
2da78ce
minor #45615 [HttpKernel] Fix advertizing deprecations for *TestSessi…
nicolas-grekasMar 7, 2022
448cc3a
[HttpKernel] fix using Target with controller args
kbondFeb 27, 2022
2aa63d1
bug #45572 [HttpKernel] fix using Target attribute with controller ar…
nicolas-grekasMar 7, 2022
a39f4f3
[Runtime] Fix passing $debug parameter to `ErrorHandler`
KocalMar 8, 2022
5f1e0c8
bug #45629 [FrameworkBundle] Fix container:lint and #[Autoconfigure(b…
nicolas-grekasMar 8, 2022
daa8283
bug #45675 [Runtime] Fix passing $debug parameter to `ErrorHandler` (…
nicolas-grekasMar 8, 2022
1a13a57
Merge branch '4.4' into 5.4
fabpotMar 8, 2022
3f2870e
Merge branch '5.4' into 6.0
fabpotMar 8, 2022
b30675a
Revert "Fix colors for 4.4"
fabpotMar 8, 2022
c58b038
Merge branch '5.4' into 6.0
fabpotMar 8, 2022
978d1a0
[Serializer] Fix nested deserialization_path computation when there i…
fancywebMar 9, 2022
d892a51
Fix return value of `NullToken::getUser()`
chalasrMar 10, 2022
1468c5b
typehint of DkimOptions algorithm wrong
markusramsakMar 11, 2022
b51ce8e
bug #45719 typehint of DkimOptions algorithm wrong (markusramsak)
fabpotMar 12, 2022
486a39c
bug #45697 [Security] Fix return value of `NullToken::getUser()` (cha…
fabpotMar 12, 2022
aa1e12c
[symfony/mailjet-mailer] Fix invalid mailjet error managment
alamiraultFeb 26, 2022
b7e878c
bug #45564 [symfony/mailjet-mailer] Fix invalid mailjet error managme…
fabpotMar 12, 2022
08ddac5
Make FormErrorIterator generic
VincentLangletMar 10, 2022
fc4700f
bug #45696 Make FormErrorIterator generic (VincentLanglet)
fabpotMar 12, 2022
d63e0fe
Merge branch '4.4' into 5.4
derrabusMar 13, 2022
480ab47
Merge branch '5.4' into 6.0
derrabusMar 13, 2022
69c1bdb
fix: stringify from address for ses+api transport
everyxMar 10, 2022
ed9f973
bug #45691 [Mailer] fix: stringify from address for ses+api transport…
fabpotMar 14, 2022
5b46cb9
bug #45684 [Serializer] Fix nested deserialization_path computation w…
nicolas-grekasMar 17, 2022
4810066
[RateLimiter] Fix rate serialization for long intervals (monthly and …
smeleshMar 16, 2022
5b56d4e
bug #45764 [RateLimiter] Fix rate serialization for long intervals (m…
fabpotMar 18, 2022
3b87ef9
Merge branch '4.4' into 5.4
nicolas-grekasMar 18, 2022
2ed7d0d
Merge branch '5.4' into 6.0
nicolas-grekasMar 18, 2022
1a2def3
Merge branch '4.4' into 5.4
nicolas-grekasMar 18, 2022
326944d
bug #45043 [ErrorHandler] ignore ``@return`` when there is an ``@temp…
nicolas-grekasJan 17, 2022
5e4151f
Merge branch '5.4' into 6.0
nicolas-grekasMar 18, 2022
1264225
[Config] Fix using null values with config builders
HypeMCMar 19, 2022
183d676
Merge branch '4.4' into 5.4
nicolas-grekasMar 22, 2022
6afaa8c
bug #45789 [Config] Fix using null values with config builders (HypeMC)
nicolas-grekasMar 22, 2022
5439bf2
[FrameworkBundle] Fix exit codes in debug:translation command
gndkMar 18, 2022
21cd0af
bug #45787 [FrameworkBundle] Fix exit codes in debug:translation comm…
nicolas-grekasMar 22, 2022
2de0ebe
Merge branch '4.4' into 5.4
nicolas-grekasMar 22, 2022
ee2c59b
Merge branch '5.4' into 6.0
nicolas-grekasMar 22, 2022
18df2f6
[Serializer] Allow denormalizing `union` types properly
T-bondMar 22, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -133,7 +133,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$locale = $input->getArgument('locale');
$domain = $input->getOption('domain');

$exitCode =0;
$exitCode =self::SUCCESS;

/** @var KernelInterface $kernel */
$kernel = $this->getApplication()->getKernel();
Expand DownExpand Up@@ -219,16 +219,21 @@ protected function execute(InputInterface $input, OutputInterface $output): int
if (!$currentCatalogue->defines($messageId, $domain)) {
$states[] = self::MESSAGE_MISSING;

$exitCode = $exitCode | self::EXIT_CODE_MISSING;
if (!$input->getOption('only-unused')) {
$exitCode = $exitCode | self::EXIT_CODE_MISSING;
}
}
} elseif ($currentCatalogue->defines($messageId, $domain)) {
$states[] = self::MESSAGE_UNUSED;

$exitCode = $exitCode | self::EXIT_CODE_UNUSED;
if (!$input->getOption('only-missing')) {
$exitCode = $exitCode | self::EXIT_CODE_UNUSED;
}
}

if (!\in_array(self::MESSAGE_UNUSED, $states) && true === $input->getOption('only-unused')
|| !\in_array(self::MESSAGE_MISSING, $states) && true === $input->getOption('only-missing')) {
if (!\in_array(self::MESSAGE_UNUSED, $states) && $input->getOption('only-unused')
|| !\in_array(self::MESSAGE_MISSING, $states) && $input->getOption('only-missing')
) {
continue;
}

Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,6 +15,7 @@
use Symfony\Bundle\FrameworkBundle\Command\TranslationDebugCommand;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Bundle\FrameworkBundle\Tests\Functional\Bundle\ExtensionWithoutConfigTestBundle\ExtensionWithoutConfigTestBundle;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Tester\CommandCompletionTester;
use Symfony\Component\Console\Tester\CommandTester;
use Symfony\Component\DependencyInjection\Container;
Expand All@@ -36,7 +37,7 @@ public function testDebugMissingMessages()
$res = $tester->execute(['locale' => 'en', 'bundle' => 'foo']);

$this->assertMatchesRegularExpression('/missing/', $tester->getDisplay());
$this->assertEquals(TranslationDebugCommand::EXIT_CODE_MISSING, $res);
$this->assertSame(TranslationDebugCommand::EXIT_CODE_MISSING, $res);
}

public function testDebugUnusedMessages()
Expand All@@ -45,7 +46,7 @@ public function testDebugUnusedMessages()
$res = $tester->execute(['locale' => 'en', 'bundle' => 'foo']);

$this->assertMatchesRegularExpression('/unused/', $tester->getDisplay());
$this->assertEquals(TranslationDebugCommand::EXIT_CODE_UNUSED, $res);
$this->assertSame(TranslationDebugCommand::EXIT_CODE_UNUSED, $res);
}

public function testDebugFallbackMessages()
Expand All@@ -54,7 +55,7 @@ public function testDebugFallbackMessages()
$res = $tester->execute(['locale' => 'fr', 'bundle' => 'foo']);

$this->assertMatchesRegularExpression('/fallback/', $tester->getDisplay());
$this->assertEquals(TranslationDebugCommand::EXIT_CODE_FALLBACK, $res);
$this->assertSame(TranslationDebugCommand::EXIT_CODE_FALLBACK, $res);
}

public function testNoDefinedMessages()
Expand All@@ -63,7 +64,7 @@ public function testNoDefinedMessages()
$res = $tester->execute(['locale' => 'fr', 'bundle' => 'test']);

$this->assertMatchesRegularExpression('/No defined or extracted messages for locale "fr"/', $tester->getDisplay());
$this->assertEquals(TranslationDebugCommand::EXIT_CODE_GENERAL_ERROR, $res);
$this->assertSame(TranslationDebugCommand::EXIT_CODE_GENERAL_ERROR, $res);
}

public function testDebugDefaultDirectory()
Expand All@@ -74,7 +75,7 @@ public function testDebugDefaultDirectory()

$this->assertMatchesRegularExpression('/missing/', $tester->getDisplay());
$this->assertMatchesRegularExpression('/unused/', $tester->getDisplay());
$this->assertEquals($expectedExitStatus, $res);
$this->assertSame($expectedExitStatus, $res);
}

public function testDebugDefaultRootDirectory()
Expand All@@ -92,7 +93,7 @@ public function testDebugDefaultRootDirectory()

$this->assertMatchesRegularExpression('/missing/', $tester->getDisplay());
$this->assertMatchesRegularExpression('/unused/', $tester->getDisplay());
$this->assertEquals($expectedExitStatus, $res);
$this->assertSame($expectedExitStatus, $res);
}

public function testDebugCustomDirectory()
Expand All@@ -112,7 +113,7 @@ public function testDebugCustomDirectory()

$this->assertMatchesRegularExpression('/missing/', $tester->getDisplay());
$this->assertMatchesRegularExpression('/unused/', $tester->getDisplay());
$this->assertEquals($expectedExitStatus, $res);
$this->assertSame($expectedExitStatus, $res);
}

public function testDebugInvalidDirectory()
Expand All@@ -128,6 +129,22 @@ public function testDebugInvalidDirectory()
$tester->execute(['locale' => 'en', 'bundle' => 'dir']);
}

public function testNoErrorWithOnlyMissingOptionAndNoResults()
{
$tester = $this->createCommandTester([], ['foo' => 'foo']);
$res = $tester->execute(['locale' => 'en', '--only-missing' => true]);

$this->assertSame(Command::SUCCESS, $res);
}

public function testNoErrorWithOnlyUnusedOptionAndNoResults()
{
$tester = $this->createCommandTester(['foo' => 'foo']);
$res = $tester->execute(['locale' => 'en', '--only-unused' => true]);

$this->assertSame(Command::SUCCESS, $res);
}

protected function setUp(): void
{
$this->fs = new Filesystem();
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp