mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
fix deprecation notices
This commit is contained in:
parent
bac826bc06
commit
2e0e04f701
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user