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.
*/
declare(strict_types=1);
namespace DisqusHelper\Exception;
use RuntimeException;
use DisqusHelper\Widget\WidgetInterface;
class InvalidWidgetException extends RuntimeException implements ExceptionInterface
{
public static function forWidget($widget) : self
$widget
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return new self(sprintf(
"Widget must implement %s interface",
WidgetInterface::class
));
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.