|
@@ -94,27 +94,27 @@ class CustomComponent implements CustomComponentInterface, \JsonSerializable, \A
|
|
|
return $this->appendRule + $this->getRule();
|
|
return $this->appendRule + $this->getRule();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function jsonSerialize()
|
|
|
|
|
|
|
+ public function jsonSerialize(): mixed
|
|
|
{
|
|
{
|
|
|
return $this->build();
|
|
return $this->build();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function offsetExists($offset)
|
|
|
|
|
|
|
+ public function offsetExists($offset): bool
|
|
|
{
|
|
{
|
|
|
return isset($this->props[$offset]);
|
|
return isset($this->props[$offset]);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function offsetGet($offset)
|
|
|
|
|
|
|
+ public function offsetGet($offset): mixed
|
|
|
{
|
|
{
|
|
|
return $this->props[$offset];
|
|
return $this->props[$offset];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function offsetSet($offset, $value)
|
|
|
|
|
|
|
+ public function offsetSet($offset, $value): void
|
|
|
{
|
|
{
|
|
|
$this->props[$offset] = $value;
|
|
$this->props[$offset] = $value;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function offsetUnset($offset)
|
|
|
|
|
|
|
+ public function offsetUnset($offset): void
|
|
|
{
|
|
{
|
|
|
unset($this->props[$offset]);
|
|
unset($this->props[$offset]);
|
|
|
}
|
|
}
|