diff -u b/core/modules/book/tests/src/Functional/BookTest.php b/core/modules/book/tests/src/Functional/BookTest.php --- b/core/modules/book/tests/src/Functional/BookTest.php +++ b/core/modules/book/tests/src/Functional/BookTest.php @@ -741,7 +741,7 @@ $this->drupalPlaceBlock('book_navigation', ['block_mode' => 'book pages']); // Unpublish book node. - $edit = array('status[value]' => FALSE); + $edit = ['status[value]' => FALSE]; $this->drupalPostForm('node/' . $this->book->id() . '/edit', $edit, t('Save')); // Test node page. diff -u b/core/modules/file/src/Tests/FileFieldWidgetTest.php b/core/modules/file/src/Tests/FileFieldWidgetTest.php --- b/core/modules/file/src/Tests/FileFieldWidgetTest.php +++ b/core/modules/file/src/Tests/FileFieldWidgetTest.php @@ -122,7 +122,7 @@ // Save the node and ensure it does not have the file. $this->drupalPostForm(NULL, [], t('Save')); - $node_storage->resetCache(array($nid)); + $node_storage->resetCache([$nid]); $node = $node_storage->load($nid); $this->assertTrue(empty($node->{$field_name}->target_id), 'File was successfully removed from the node.'); } diff -u b/core/modules/node/src/Entity/Node.php b/core/modules/node/src/Entity/Node.php --- b/core/modules/node/src/Entity/Node.php +++ b/core/modules/node/src/Entity/Node.php @@ -406,13 +406,13 @@ ->setDisplayConfigurable('form', TRUE); $fields['status'] - ->setDisplayOptions('form', array( + ->setDisplayOptions('form', [ 'type' => 'boolean_checkbox', - 'settings' => array( + 'settings' => [ 'display_label' => TRUE, - ), + ], 'weight' => 120, - )) + ]) ->setDisplayConfigurable('form', TRUE); $fields['created'] = BaseFieldDefinition::create('created') diff -u b/core/modules/node/src/Tests/NodeEditFormTest.php b/core/modules/node/src/Tests/NodeEditFormTest.php --- b/core/modules/node/src/Tests/NodeEditFormTest.php +++ b/core/modules/node/src/Tests/NodeEditFormTest.php @@ -134,9 +134,9 @@ // Edit the same node, save it and verify it's unpublished after unchecking // the 'Published' boolean_checkbox and clicking 'Save'. $this->drupalGet("node/" . $node->id() . "/edit"); - $edit = array('status[value]' => FALSE); + $edit = ['status[value]' => FALSE]; $this->drupalPostForm(NULL, $edit, t('Save')); - $this->nodeStorage->resetCache(array($node->id())); + $this->nodeStorage->resetCache([$node->id()]); $node = $this->nodeStorage->load($node->id()); $this->assertFalse($node->isPublished(), 'Node is unpublished'); }