commit f551d1c75630c77c1968820300c0c4076408b1c3
Author: Wim Leers <wim.leers@acquia.com>
Date:   Thu Dec 1 18:20:13 2016 +0100

    s1

diff --git a/core/modules/rest/src/RestResourceConfigInterface.php b/core/modules/rest/src/RestResourceConfigInterface.php
index 601bb0e..a2660f0 100644
--- a/core/modules/rest/src/RestResourceConfigInterface.php
+++ b/core/modules/rest/src/RestResourceConfigInterface.php
@@ -42,8 +42,8 @@ public function getMethods();
    * @param string $method
    *   The request method e.g GET or POST.
    *
-   * @return string[]
-   *   A list of supported authentication provider IDs.
+   * @return string[]|null
+   *   A list of supported authentication provider IDs, or NULL if
    */
   public function getAuthenticationProviders($method);
 
diff --git a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php
index 973f5b9..7c8bd48 100644
--- a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php
+++ b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php
@@ -143,7 +143,7 @@
   protected function provisionEntityResource() {
     // It's possible to not have any authentication providers enabled, when
     // testing public (anonymous) usage of a REST resource.
-    $auth = isset(static::$auth) ? [static::$auth] : [];
+    $auth = static::$auth !== FALSE ? [static::$auth] : NULL;
     $this->provisionResource('entity.' . static::$entityTypeId, [static::$format], $auth);
   }
 
diff --git a/core/modules/rest/tests/src/Functional/ResourceTestBase.php b/core/modules/rest/tests/src/Functional/ResourceTestBase.php
index f1f0458..974ec30 100644
--- a/core/modules/rest/tests/src/Functional/ResourceTestBase.php
+++ b/core/modules/rest/tests/src/Functional/ResourceTestBase.php
@@ -139,10 +139,10 @@ public function setUp() {
    *   The resource type (REST resource plugin ID).
    * @param string[] $formats
    *   The allowed formats for this resource.
-   * @param string[] $authentication
+   * @param string[]|null $authentication
    *   The allowed authentication providers for this resource.
    */
-  protected function provisionResource($resource_type, $formats = [], $authentication = []) {
+  protected function provisionResource($resource_type, array $formats = [], $authentication) {
     $this->resourceConfigStorage->create([
       'id' => $resource_type,
       'granularity' => RestResourceConfigInterface::RESOURCE_GRANULARITY,
