[PropertyAccess] Implement DateTime type conversion in PropertyAccess

by @curry684

Some issues have been detected in this pull request

0
Coding Standard

0
Common Typos

0
License Headers

0
Pull Request Contributor Headers

0
File Permissions

0
Merge Commits

0
Exception Messages Formatting

Issues that can be fixed by applying a patch

Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:

curl https://fabbot.io/patch/symfony/symfony/47776/bef7f66f2356adf74adc749bbf4fb28f10d762d3/void_in_tests.diff | patch -p0
diff -ru src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php
--- src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php	2022-10-03 14:35:16.239950983 +0000
+++ src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php	2022-10-03 14:35:25.802408928 +0000
@@ -921,7 +921,7 @@
         $this->propertyAccessor->setValue($object, 'publicProperty', 'string');
     }
 
-    public function testSetValueConvertDateTimeTypes(): void
+    public function testSetValueConvertDateTimeTypes()
     {
         $fixture = new DateTimeConversion();
         $mutable = new \DateTime($mutableDate = '2021-01-01');

0
Use ::class whenever possible

0
Deprecation Messages