Skip to content
Snippets Groups Projects
Commit a67a08fa authored by spokje's avatar spokje
Browse files

2

parent 5cf4519d
No related branches found
No related tags found
No related merge requests found
......@@ -64,10 +64,7 @@ public function fieldSettingsForm(array $form, FormStateInterface $form_state) {
* {@inheritdoc}
*/
public function isEmpty() {
if (empty($this->value) && (string) $this->value !== '0') {
return TRUE;
}
return FALSE;
return empty($this->getValue()) && (string) $this->getValue() !== '0';
}
/**
......
......@@ -2,11 +2,18 @@
namespace Drupal\Core\FileTransfer;
use FTP\Connection;
/**
* Defines a file transfer class using the PHP FTP extension.
*/
class FTPExtension extends FTP implements ChmodInterface {
/**
* The FTP connection.
*/
protected Connection|false $connection;
/**
* {@inheritdoc}
*/
......
......@@ -62,6 +62,11 @@ abstract class FileTransfer {
*/
private $connectionHandle;
/**
* The connection chroot.
*/
private string|bool $chroot;
/**
* Constructs a Drupal\Core\FileTransfer\FileTransfer object.
*
......
......@@ -7,6 +7,13 @@
*/
class SSH extends FileTransfer implements ChmodInterface {
/**
* The connection.
*
* @var resource|false
*/
protected $connection;
/**
* {@inheritdoc}
*/
......
......@@ -738,31 +738,11 @@ parameters:
count: 1
path: lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php
-
message: "#^Access to an undefined property Drupal\\\\Core\\\\Field\\\\Plugin\\\\Field\\\\FieldType\\\\NumericItemBase\\:\\:\\$value\\.$#"
count: 1
path: lib/Drupal/Core/Field/Plugin/Field/FieldType/NumericItemBase.php
-
message: "#^Access to an undefined property Drupal\\\\Core\\\\FileTransfer\\\\FTPExtension\\:\\:\\$connection\\.$#"
count: 19
path: lib/Drupal/Core/FileTransfer/FTPExtension.php
-
message: "#^Access to an undefined property Drupal\\\\Core\\\\FileTransfer\\\\FileTransfer\\:\\:\\$chroot\\.$#"
count: 3
path: lib/Drupal/Core/FileTransfer/FileTransfer.php
-
message: "#^Method Drupal\\\\Core\\\\FileTransfer\\\\FileTransfer\\:\\:__get\\(\\) should return bool\\|string but return statement is missing\\.$#"
count: 1
path: lib/Drupal/Core/FileTransfer/FileTransfer.php
-
message: "#^Access to an undefined property Drupal\\\\Core\\\\FileTransfer\\\\SSH\\:\\:\\$connection\\.$#"
count: 9
path: lib/Drupal/Core/FileTransfer/SSH.php
-
message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#"
count: 4
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment