Issue #3441386 by quietone: Remove deprecated code in Drupal\Component\PhpStorage

merge-requests/6851/merge
Alex Pott 2024-04-17 17:16:31 +01:00
parent aa25d8ff68
commit 1732b92ceb
No known key found for this signature in database
GPG Key ID: BDA67E7EE836E5CE
5 changed files with 0 additions and 49 deletions

View File

@ -65,14 +65,6 @@ class FileReadOnlyStorage implements PhpStorageInterface {
return $this->directory . '/' . $name;
}
/**
* {@inheritdoc}
*/
public function writeable() {
@trigger_error(__METHOD__ . '() is deprecated in drupal:10.1.0 and will be removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3155413', E_USER_DEPRECATED);
return FALSE;
}
/**
* {@inheritdoc}
*/

View File

@ -144,14 +144,6 @@ class FileStorage implements PhpStorageInterface {
return $this->directory . '/' . $name;
}
/**
* {@inheritdoc}
*/
public function writeable() {
@trigger_error(__METHOD__ . '() is deprecated in drupal:10.1.0 and will be removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3155413', E_USER_DEPRECATED);
return TRUE;
}
/**
* {@inheritdoc}
*/

View File

@ -51,19 +51,6 @@ interface PhpStorageInterface {
*/
public function save($name, $code);
/**
* Whether this is a writable storage.
*
* @return bool
* TRUE if writable, otherwise FALSE.
*
* @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no
* replacement.
*
* @see https://www.drupal.org/node/3155413
*/
public function writeable();
/**
* Deletes PHP code from storage.
*

View File

@ -82,16 +82,6 @@ class FileStorageReadOnlyTest extends PhpStorageTestBase {
unset($GLOBALS[$random]);
}
/**
* @covers ::writeable
* @group legacy
*/
public function testWritable() {
$this->expectDeprecation('Drupal\Component\PhpStorage\FileReadOnlyStorage::writeable() is deprecated in drupal:10.1.0 and will be removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3155413');
$php_read = new FileReadOnlyStorage($this->readonlyStorage);
$this->assertFalse($php_read->writeable());
}
/**
* @covers ::deleteAll
*/

View File

@ -51,16 +51,6 @@ class FileStorageTest extends PhpStorageTestBase {
$this->assertCRUD($php);
}
/**
* @covers ::writeable
* @group legacy
*/
public function testWritable() {
$this->expectDeprecation('Drupal\Component\PhpStorage\FileStorage::writeable() is deprecated in drupal:10.1.0 and will be removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3155413');
$php = new FileStorage($this->standardSettings);
$this->assertTrue($php->writeable());
}
/**
* @covers ::deleteAll
*/