mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/12575] Skip sniffer issue triggered by the solution of a php bug
https://bugs.php.net/bug.php?id=66834 https://bugs.php.net/bug.php?id=67067 PHPBB3-12575
This commit is contained in:
@@ -38,6 +38,12 @@ class service_collection extends \ArrayObject
|
|||||||
return new service_collection_iterator($this->container, $this);
|
return new service_collection_iterator($this->container, $this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Because of a PHP issue we have to redefine offsetExists
|
||||||
|
// (even <ith a call to the parent):
|
||||||
|
// https://bugs.php.net/bug.php?id=66834
|
||||||
|
// https://bugs.php.net/bug.php?id=67067
|
||||||
|
// But it triggers a sniffer issue that we have to skip
|
||||||
|
// @codingStandardsIgnoreStart
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
@@ -45,6 +51,7 @@ class service_collection extends \ArrayObject
|
|||||||
{
|
{
|
||||||
return parent::offsetExists($index);
|
return parent::offsetExists($index);
|
||||||
}
|
}
|
||||||
|
// @codingStandardsIgnoreEnd
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
@@ -49,6 +49,12 @@ class service_collection_iterator extends \ArrayIterator
|
|||||||
return $task;
|
return $task;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Because of a PHP issue we have to redefine offsetExists
|
||||||
|
// (even <ith a call to the parent):
|
||||||
|
// https://bugs.php.net/bug.php?id=66834
|
||||||
|
// https://bugs.php.net/bug.php?id=67067
|
||||||
|
// But it triggers a sniffer issue that we have to skip
|
||||||
|
// @codingStandardsIgnoreStart
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
@@ -56,6 +62,7 @@ class service_collection_iterator extends \ArrayIterator
|
|||||||
{
|
{
|
||||||
parent::offsetExists($index);
|
parent::offsetExists($index);
|
||||||
}
|
}
|
||||||
|
// @codingStandardsIgnoreEnd
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
Reference in New Issue
Block a user