Upgrade to 3.8.0
This commit is contained in:
@@ -20,6 +20,8 @@ use Kirby\Toolkit\Str;
|
||||
* @link https://getkirby.com
|
||||
* @copyright Bastian Allgeier
|
||||
* @license https://opensource.org/licenses/MIT
|
||||
*
|
||||
* @deprecated 3.8.0 Use `Kirby\Option\OptionsApi` instead
|
||||
*/
|
||||
class OptionsApi
|
||||
{
|
||||
@@ -161,7 +163,7 @@ class OptionsApi
|
||||
* @param string|null $fetch
|
||||
* @return $this
|
||||
*/
|
||||
protected function setFetch(?string $fetch = null)
|
||||
protected function setFetch(string|null $fetch = null)
|
||||
{
|
||||
$this->fetch = $fetch;
|
||||
return $this;
|
||||
@@ -181,7 +183,7 @@ class OptionsApi
|
||||
* @param string $text
|
||||
* @return $this
|
||||
*/
|
||||
protected function setText(?string $text = null)
|
||||
protected function setText(string|null $text = null)
|
||||
{
|
||||
$this->text = $text;
|
||||
return $this;
|
||||
@@ -201,7 +203,7 @@ class OptionsApi
|
||||
* @param string|null $value
|
||||
* @return $this
|
||||
*/
|
||||
protected function setValue(?string $value = null)
|
||||
protected function setValue(string|null $value = null)
|
||||
{
|
||||
$this->value = $value;
|
||||
return $this;
|
||||
|
||||
Reference in New Issue
Block a user