Merge pull request #10786 from michalkleiner/tweak-deprecation-suggestion

FIX Provide correct replacement suggestion in deprecation message
This commit is contained in:
Guy Sartorelli 2023-05-22 12:26:40 +12:00 committed by GitHub
commit ffd0916922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}