fix deprecation notices

This commit is contained in:
Andrew Aitken-Fincham 2020-06-12 01:38:24 +01:00
parent bac826bc06
commit 2e0e04f701

View File

@ -67,12 +67,12 @@ class SSViewer_BasicIteratorSupport implements TemplateIteratorProvider
} }
/** /**
* @deprecated * @deprecated 4.7.0 Use isFirst() to avoid clashes with SS_Lists
* @return bool * @return bool
*/ */
public function First() public function First()
{ {
Deprecation::notice("5.0.0 please use isFirst() to avoid clashes with SS_Lists"); Deprecation::notice('4.7.0', 'Use isFirst() to avoid clashes with SS_Lists');
return $this->isFirst(); return $this->isFirst();
} }
@ -87,12 +87,12 @@ class SSViewer_BasicIteratorSupport implements TemplateIteratorProvider
} }
/** /**
* @deprecated * @deprecated 4.7.0 Use isLast() to avoid clashes with SS_Lists
* @return bool * @return bool
*/ */
public function Last() public function Last()
{ {
Deprecation::notice("5.0.0 please use isLast() to avoid clashes with SS_Lists"); Deprecation::notice('4.7.0', 'Use isLast() to avoid clashes with SS_Lists');
return $this->isLast(); return $this->isLast();
} }