We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57523c1 commit e719127Copy full SHA for e719127
src/Utils/BeanDescriptor.php
@@ -201,7 +201,7 @@ public function getBeanPropertyDescriptors(): array
201
public function getConstructorProperties(): array
202
{
203
$constructorProperties = array_filter($this->beanPropertyDescriptors, function (AbstractBeanPropertyDescriptor $property) {
204
- return $property->isCompulsory();
+ return !$property instanceof ScalarReferencePropertyDescriptor && $property->isCompulsory();
205
});
206
207
return $constructorProperties;
0 commit comments