for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Disqus Helper package.
*
* Copyright (c) Nikola Posa <[email protected]>
* For full copyright and license information, please refer to the LICENSE file,
* located at the package root folder.
*/
namespace DisqusHelper\Exception;
use DisqusHelper\Widget\WidgetInterface;
class InvalidWidgetConfigurationException extends InvalidArgumentException
{
public static function forConfiguration(string $widgetId, $widget) : self
return new self(sprintf(
"Invalid configuration for '%s' widget; widget should be either string, callable or %s instance, %s given",
$widgetId,
WidgetInterface::class,
gettype($widget)
));
}