diff --git a/src/Exceptions/ParameterTypeRequiredException.php b/src/Exceptions/ParameterTypeRequiredException.php new file mode 100644 index 0000000..841b554 --- /dev/null +++ b/src/Exceptions/ParameterTypeRequiredException.php @@ -0,0 +1,30 @@ + + * @copyright 2024 CommonPHP.org + * @license http://opensource.org/licenses/MIT MIT License + * @noinspection PhpUnused + */ + +namespace CommonPHP\DependencyInjection\Exceptions; + +use Throwable; + +class ParameterTypeRequiredException extends DependencyInjectionException +{ + public function __construct(string $class, string $method, string $parameter, ?Throwable $previous = null) + { + parent::__construct("Parameters must have a type on parameter $parameter for method $method in class $class.", $previous); + $this->code = 1512; + } +}