From ad5c0219a11a84a5e46690c701d626e9c57da881 Mon Sep 17 00:00:00 2001
From: webchick <webchick@24967.no-reply.drupal.org>
Date: Sat, 9 Feb 2013 03:30:21 -0800
Subject: [PATCH] Issue #1911814 follow-up by alexpott, dawehner, damiankloip:
 Oops. Broken HEAD.

---
 core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php    | 4 ++--
 .../Drupal/Core/Config/Entity/ConfigEntityInterface.php    | 2 +-
 core/modules/views/views_ui/lib/Drupal/views_ui/ViewUI.php | 7 +++++++
 3 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php b/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
index 46f303c184a8..cd62ce604607 100644
--- a/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
+++ b/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
@@ -112,8 +112,8 @@ public function disable() {
   /**
    * Implements \Drupal\Core\Config\Entity\ConfigEntityInterface::setStatus().
    */
-  public function setStatus(bool $status) {
-    $this->status = $status;
+  public function setStatus($status) {
+    $this->status = (bool) $status;
     return $this;
   }
 
diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php b/core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php
index 41c213235a52..f1cf42e3d646 100644
--- a/core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php
+++ b/core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php
@@ -57,7 +57,7 @@ public function disable();
    * @return \Drupal\Core\Config\Entity\ConfigEntityInterface
    *   The class instance that this method is called on.
    */
-  public function setStatus(bool $status);
+  public function setStatus($status);
 
   /**
    * Returns whether the configuration entity is enabled.
diff --git a/core/modules/views/views_ui/lib/Drupal/views_ui/ViewUI.php b/core/modules/views/views_ui/lib/Drupal/views_ui/ViewUI.php
index 8660919c8709..ab5a00fe89e9 100644
--- a/core/modules/views/views_ui/lib/Drupal/views_ui/ViewUI.php
+++ b/core/modules/views/views_ui/lib/Drupal/views_ui/ViewUI.php
@@ -146,6 +146,13 @@ public function get($property_name, $langcode = NULL) {
     return isset($this->{$property_name}) ? $this->{$property_name} : NULL;
   }
 
+  /**
+   * Implements \Drupal\Core\Config\Entity\ConfigEntityInterface::setStatus().
+   */
+  public function setStatus($status) {
+    return $this->storage->setStatus($status);
+  }
+
   /**
    * Overrides \Drupal\Core\Config\Entity\ConfigEntityBase::set().
    */
-- 
GitLab