Skip to content
Snippets Groups Projects
Unverified Commit 46b8ef41 authored by Mateu Aguiló Bosch's avatar Mateu Aguiló Bosch
Browse files

Issue #3274105 by e0ipso: Modernize codebase to leverage better typing

parent 1f118529
Branches
Tags 4.0.8
No related merge requests found
......@@ -8,9 +8,6 @@ grumphp:
composer: ~
composer_normalize: ~
jsonlint: ~
git_commit_message:
enforce_capitalized_subject: false
max_subject_width: 50
phpcs:
standard:
- vendor/drupal/coder/coder_sniffer/Drupal
......
......@@ -144,7 +144,7 @@ abstract class WrappedEntityBase implements WrappedEntityInterface {
* @SuppressWarnings(PHPMD.StaticAccess)
*/
protected function viewBuilder(): EntityViewBuilderInterface {
if (!$this->viewBuilder) {
if (!isset($this->viewBuilder)) {
$entity = $this->getEntity()->getEntityTypeId();
$entity_type_manager = \Drupal::entityTypeManager();
$this->viewBuilder = $entity_type_manager->getViewBuilder($entity);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment