mirror of
https://github.com/filp/whoops.git
synced 2026-09-24 09:09:37 +00:00
Fix failing PrettyPageHandler tests
This commit is contained in:
@@ -316,11 +316,11 @@ class PrettyPageHandler extends Handler
|
||||
*/
|
||||
public function getResourcesPath()
|
||||
{
|
||||
trigger_error(__METHOD__ . " is deprecated by PrettyPageHandler::getResourcePaths", E_DEPRECATED);
|
||||
trigger_error(__METHOD__ . " is deprecated by PrettyPageHandler::getResourcePaths", E_USER_NOTICE);
|
||||
|
||||
$allPaths = $this->getResourcePaths();
|
||||
|
||||
// Compat: return only the first path:
|
||||
// Compat: return only the first path
|
||||
return reset($allPaths) ?: null;
|
||||
}
|
||||
|
||||
@@ -331,7 +331,7 @@ class PrettyPageHandler extends Handler
|
||||
*/
|
||||
public function setResourcesPath($resourcesPath)
|
||||
{
|
||||
trigger_error(__METHOD__ . " is deprecated by PrettyPageHandler::addResourcePath", E_DEPRECATED);
|
||||
trigger_error(__METHOD__ . " is deprecated by PrettyPageHandler::addResourcePath", E_USER_NOTICE);
|
||||
$this->addResourcePath($resourcesPath);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user