/**
* @return Notification
*/
+ #[\ReturnTypeWillChange]
public function current()
{
return parent::current();
*
* @return array The array based on the IDs (empty in case there is no list)
*/
- public function expand(string $acl_string = null)
+ public function expand(string $acl_string = null): array
{
// In case there is no ID list, return empty array (=> no ACL set)
if (empty($acl_string)) {
* @param string|null $acl_string
* @return string
*/
- public function sanitize(string $acl_string = null)
+ public function sanitize(string $acl_string = null): string
{
if (empty($acl_string)) {
return '';
*
* @return string
*/
- function toString($permissions) {
+ function toString($permissions): string
+ {
$return = '';
if (is_array($permissions)) {
$item = $permissions;
+ } elseif (empty($permissions)) {
+ return '';
} else {
$item = explode(',', $permissions);
}
*
* @return string|null Depending on data being buffered
*/
- private function _readline()
+ private function _readline(): ?string
{
$buffer = & $this->buffer;
while (true) {
* @see Iterator::next()
* @return void
*/
+ #[\ReturnTypeWillChange]
public function next()
{
++$this->key;
* @see Iterator::rewind()
* @return void
*/
+ #[\ReturnTypeWillChange]
public function rewind()
{
if ($this->filesize > 0) {
public static $cache = '';
/** @noinspection PhpMissingParentCallCommonInspection */
- public function filter($in, $out, &$consumed, $closing)
+ public function filter($in, $out, &$consumed, $closing): int
{
while ($bucket = stream_bucket_make_writeable($in)) {
self::$cache .= $bucket->data;
{
use CreateDatabaseTrait;
+ /**
+ * @var Cache
+ */
+ protected $configCache;
+ /**
+ * @var ConfigFileManager
+ */
+ protected $configFileManager;
+
protected function setUp(): void
{
$this->setUpVfsDir();