The $field_label
param for \Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait::createEntityReferenceField
expects a string, but many times jsonapi (and once in views) we pass null. With strict types this is not allowed.
This also results in invalid schema:
field.field.*.*.*
type is field_config_base
The label
property type for field_config_base
is required_label
The required_label
has the NotBlank
constraint.
Add checkFunctionArgumentTypes: true
to phpstan parameters
Run phpstan and grep for this function:
./vendor/bin/phpstan analyse -c core/phpstan.neon.dist --error-format=raw | grep createEntityReferenceField
Pass a string based on the field name instead
Active
11.0 🔥
jsonapi.module
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.