Deimplement incompatible method

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
Kamil Tekiela 2023-02-20 11:26:58 +00:00
parent db267cfb27
commit b48c445120
2 changed files with 2 additions and 30 deletions

View File

@ -31,10 +31,8 @@ abstract class OptionsPropertyItem extends PropertyItem
private $text;
/**
* What to force
*
* @var string|null
*/
private $force;
private ?string $force = null;
/**
* @param string $name Item name
@ -110,7 +108,7 @@ abstract class OptionsPropertyItem extends PropertyItem
*
* @param string $force force parameter
*/
public function setForce($force): void
public function setForce(string $force): void
{
$this->force = $force;
}

View File

@ -13,12 +13,6 @@ namespace PhpMyAdmin\Properties\Options;
*/
abstract class OptionsPropertyOneItem extends OptionsPropertyItem
{
/**
* Whether to force or not
*
* @var bool|string
*/
private $forceOne;
/**
* Values
*
@ -45,26 +39,6 @@ abstract class OptionsPropertyOneItem extends OptionsPropertyItem
private $size;
/* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */
/**
* Gets the force parameter
*
* @return bool|string
*/
public function getForce()
{
return $this->forceOne;
}
/**
* Sets the force parameter
*
* @param bool|string $force force parameter
*/
public function setForce($force): void
{
$this->forceOne = $force;
}
/**
* Gets the values
*