*/
-class NullExtractor implements PropertyListExtractorInterface, PropertyDescriptionExtractorInterface, PropertyTypeExtractorInterface, PropertyAccessExtractorInterface
+class NullExtractor implements PropertyListExtractorInterface, PropertyDescriptionExtractorInterface, PropertyTypeExtractorInterface, PropertyAccessExtractorInterface, PropertyInitializableExtractorInterface
{
/**
* {@inheritdoc}
@@ -76,6 +77,14 @@ public function getProperties($class, array $context = array())
$this->assertIsString($class);
}
+ /**
+ * {@inheritdoc}
+ */
+ public function isInitializable(string $class, string $property, array $context = array()): ?bool
+ {
+ return null;
+ }
+
private function assertIsString($string)
{
if (!\is_string($string)) {
diff --git a/src/Symfony/Component/PropertyInfo/Tests/Fixtures/Php71Dummy.php b/src/Symfony/Component/PropertyInfo/Tests/Fixtures/Php71Dummy.php
index e72d376c492fa..80012f968d70f 100644
--- a/src/Symfony/Component/PropertyInfo/Tests/Fixtures/Php71Dummy.php
+++ b/src/Symfony/Component/PropertyInfo/Tests/Fixtures/Php71Dummy.php
@@ -16,6 +16,10 @@
*/
class Php71Dummy
{
+ public function __construct(string $string, int $intPrivate)
+ {
+ }
+
public function getFoo(): ?array
{
}
@@ -32,3 +36,18 @@ public function addBaz(string $baz)
{
}
}
+
+class Php71DummyExtended extends Php71Dummy
+{
+}
+
+class Php71DummyExtended2 extends Php71Dummy
+{
+ public function __construct(int $intWithAccessor)
+ {
+ }
+
+ public function getIntWithAccessor()
+ {
+ }
+}
diff --git a/src/Symfony/Component/PropertyInfo/Tests/PropertyInfoCacheExtractorTest.php b/src/Symfony/Component/PropertyInfo/Tests/PropertyInfoCacheExtractorTest.php
index d31a7bd51ddde..59dc3fb22be4c 100644
--- a/src/Symfony/Component/PropertyInfo/Tests/PropertyInfoCacheExtractorTest.php
+++ b/src/Symfony/Component/PropertyInfo/Tests/PropertyInfoCacheExtractorTest.php
@@ -61,4 +61,10 @@ public function testGetProperties()
parent::testGetProperties();
parent::testGetProperties();
}
+
+ public function testIsInitializable()
+ {
+ parent::testIsInitializable();
+ parent::testIsInitializable();
+ }
}
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy