class TestServiceNullableTypeHintSelf

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php \Drupal\Tests\Component\ProxyBuilder\TestServiceNullableTypehintSelf
  2. 10 core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php \Drupal\Tests\Component\ProxyBuilder\TestServiceNullableTypeHintSelf

Test service with a nullable self parameter.

Hierarchy

Expanded class hierarchy of TestServiceNullableTypeHintSelf

File

core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php, line 456

Namespace

Drupal\Tests\Component\ProxyBuilder
View source
class TestServiceNullableTypeHintSelf {
    public function typeHintSelf(?self $parameter) : ?self {
        return NULL;
    }

}

Members

Title Sort descending Modifiers Object type Summary
TestServiceNullableTypeHintSelf::typeHintSelf public function

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.