Skip to content
This repository has been archived by the owner on Jan 1, 2018. It is now read-only.

Commit

Permalink
addConfig: use better deprecated message
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnzlml committed Dec 17, 2016
1 parent 72ef1d2 commit f3f929a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CompilerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function provideConfig()
*/
protected function addConfig($configFile)
{
trigger_error(__METHOD__ . ' is deprecated');
trigger_error(__METHOD__ . ' is deprecated. Use ' . \Adeira\ConfigurableExtensionsExtension::class . ' instead.');
return $this->loadFromFile($configFile);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/src/DeprecatedAddConfig.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class DeprecatedAddConfig extends \Tester\TestCase
//empty mock
}, 'compiler');
$extension->loadConfiguration();
}, E_USER_NOTICE);
}, E_USER_NOTICE, 'Adeira\CompilerExtension::addConfig is deprecated. Use Adeira\ConfigurableExtensionsExtension instead.');
}

}
Expand Down

0 comments on commit f3f929a

Please sign in to comment.