Commit 4e83abc5 authored by Gábor Hojtsy's avatar Gábor Hojtsy

Issue #2911306 by alexpott, roynilanjan, mondrake, quicksketch, quietone:...

Issue #2911306 by alexpott, roynilanjan, mondrake, quicksketch, quietone: Migration module breaks with PHP 7.2 due to inherited method signature differences
parent 7f157925
......@@ -30,7 +30,7 @@ protected function initializeIterator() {
/**
* {@inheritdoc}
*/
public function count() {
public function count($refresh = FALSE) {
return count($this->getCommentVariables());
}
......
......@@ -145,7 +145,7 @@ public function getIds() {
/**
* {@inheritdoc}
*/
public function count() {
public function count($refresh = FALSE) {
return $this->initializeIterator()->count();
}
......
......@@ -78,7 +78,7 @@ public function fields() {
/**
* {@inheritdoc}
*/
public function count() {
public function count($refresh = FALSE) {
return count($this->initializeIterator());
}
......
......@@ -27,7 +27,7 @@ public function query() {
/**
* {@inheritdoc}
*/
public function count() {
public function count($refresh = FALSE) {
return 1;
}
......
......@@ -436,7 +436,10 @@ public function getCurrentIds() {
* Returns -1 if the source is not countable.
*
* @param bool $refresh
* (optional) Whether or not to refresh the count. Defaults to FALSE.
* (optional) Whether or not to refresh the count. Defaults to FALSE. Not
* all implementations support the reset flag. In such instances this
* parameter is ignored and the result of calling the method will always be
* up to date.
*
* @return int
* The count.
......
......@@ -365,7 +365,7 @@ protected function fetchNextBatch() {
/**
* {@inheritdoc}
*/
public function count() {
public function count($refresh = FALSE) {
return $this->query()->countQuery()->execute()->fetchField();
}
......
......@@ -58,7 +58,7 @@ protected function values() {
/**
* {@inheritdoc}
*/
public function count() {
public function count($refresh = FALSE) {
return intval($this->query()->countQuery()->execute()->fetchField() > 0);
}
......
......@@ -68,7 +68,7 @@ protected function values() {
/**
* {@inheritdoc}
*/
public function count() {
public function count($refresh = FALSE) {
return $this->initializeIterator()->count();
}
......
......@@ -12,7 +12,7 @@ abstract class ViewModeBase extends DrupalSqlBase {
/**
* {@inheritdoc}
*/
public function count() {
public function count($refresh = FALSE) {
return count($this->initializeIterator());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment