Skip to content

Commit 06aedf0

Browse files
Merge branch '4.4'
* 4.4: [travis] Fix build-packages script Add types to constructors and private/final/internal methods (Batch III) [HttpClient] Async HTTPlug client [Messenger] Allow to configure the db index on Redis transport [HttpClient] bugfix exploding values of headers [VarDumper] Made all casters final [VarDumper] Added a support for casting Ramsey/Uuid Remove useless testCanCheckIfTerminalIsInteractive test case [Validator] Add the missing translations for the Thai (\"th\") locale [Routing] gracefully handle docref_root ini setting [Validator] Fix ValidValidator group cascading usage
2 parents 6806003 + 768b99d commit 06aedf0

24 files changed

+82
-9
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ CHANGELOG
88
to configure casters & flags to use in tests
99
* added `ImagineCaster` and infrastructure to dump images
1010
* added the stamps of a message after it is dispatched in `TraceableMessageBus` and `MessengerDataCollector` collected data
11+
* added `UuidCaster`
12+
* made all casters final
1113

1214
4.3.0
1315
-----

Caster/AmqpCaster.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* Casts Amqp related classes to array representation.
1818
*
1919
* @author Grégoire Pineau <[email protected]>
20+
*
21+
* @final since Symfony 4.4
2022
*/
2123
class AmqpCaster
2224
{

Caster/DOMCaster.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* Casts DOM related classes to array representation.
1818
*
1919
* @author Nicolas Grekas <[email protected]>
20+
*
21+
* @final since Symfony 4.4
2022
*/
2123
class DOMCaster
2224
{

Caster/DateCaster.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* Casts DateTimeInterface related classes to array representation.
1818
*
1919
* @author Dany Maillard <[email protected]>
20+
*
21+
* @final since Symfony 4.4
2022
*/
2123
class DateCaster
2224
{
@@ -52,7 +54,7 @@ public static function castInterval(\DateInterval $interval, array $a, Stub $stu
5254
return $filter & Caster::EXCLUDE_VERBOSE ? $i : $i + $a;
5355
}
5456

55-
private static function formatInterval(\DateInterval $i)
57+
private static function formatInterval(\DateInterval $i): string
5658
{
5759
$format = '%R ';
5860

Caster/DoctrineCaster.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* Casts Doctrine related classes to array representation.
2121
*
2222
* @author Nicolas Grekas <[email protected]>
23+
*
24+
* @final since Symfony 4.4
2325
*/
2426
class DoctrineCaster
2527
{

Caster/DsCaster.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* Casts Ds extension classes to array representation.
2121
*
2222
* @author Jáchym Toušek <[email protected]>
23+
*
24+
* @final since Symfony 4.4
2325
*/
2426
class DsCaster
2527
{

Caster/ExceptionCaster.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* Casts common Exception classes to array representation.
2020
*
2121
* @author Nicolas Grekas <[email protected]>
22+
*
23+
* @final since Symfony 4.4
2224
*/
2325
class ExceptionCaster
2426
{

Caster/GmpCaster.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
*
1919
* @author Hamza Amrouche <[email protected]>
2020
* @author Nicolas Grekas <[email protected]>
21+
*
22+
* @final since Symfony 4.4
2123
*/
2224
class GmpCaster
2325
{

Caster/ImagineCaster.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
/**
1818
* @author Grégoire Pineau <[email protected]>
1919
*/
20-
class ImagineCaster
20+
final class ImagineCaster
2121
{
22-
public static function castImage(ImageInterface $c, array $a, Stub $stub, bool $isNested)
22+
public static function castImage(ImageInterface $c, array $a, Stub $stub, bool $isNested): array
2323
{
2424
$imgData = $c->get('png');
2525
if (\strlen($imgData) > 1 * 1000 * 1000) {

Caster/IntlCaster.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
/**
1717
* @author Nicolas Grekas <[email protected]>
1818
* @author Jan Schädlich <[email protected]>
19+
*
20+
* @final since Symfony 4.4
1921
*/
2022
class IntlCaster
2123
{

0 commit comments

Comments
 (0)