Skip to content

Commit

Permalink
Indicate which class/method was actually using.
Browse files Browse the repository at this point in the history
Knowing the method is defined in a trait is not as helpful as knowing
which class has the method called on it.
  • Loading branch information
markstory committed Nov 11, 2017
1 parent 031d991 commit 19ee93f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Core/InstanceConfigTrait.php
Expand Up @@ -176,7 +176,7 @@ public function getConfig($key = null, $default = null)
public function config($key = null, $value = null, $merge = true)
{
deprecationWarning(
'InstanceConfigTrait::config() is deprecated. ' .
get_called_class() . '::config() is deprecated. ' .
'Use setConfig()/getConfig() instead.'
);

Expand Down
2 changes: 1 addition & 1 deletion src/Core/StaticConfigTrait.php
Expand Up @@ -164,7 +164,7 @@ public static function getConfig($key)
public static function config($key, $config = null)
{
deprecationWarning(
'StaticConfigTrait::config() is deprecated. ' .
get_called_class() . '::config() is deprecated. ' .
'Use setConfig()/getConfig() instead.'
);

Expand Down

0 comments on commit 19ee93f

Please sign in to comment.