mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #10786 from michalkleiner/tweak-deprecation-suggestion
FIX Provide correct replacement suggestion in deprecation message
This commit is contained in:
commit
ffd0916922
@ -31,7 +31,7 @@ trait Configurable
|
||||
*/
|
||||
public function stat($name)
|
||||
{
|
||||
Deprecation::notice('5.0', 'Use ->get');
|
||||
Deprecation::notice('5.0', 'Use ->config()->get()');
|
||||
return $this->config()->get($name);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user