From dfcad4524db603bd20bdec3aab1a31c5f5128ea3 Mon Sep 17 00:00:00 2001 From: Ivan Fedorov Date: Thu, 2 Jan 2025 14:51:30 +0100 Subject: [PATCH] [phpstorm-stubs] WI-80152 update PHPDoc for ValueError class --- Core/Core_c.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Core/Core_c.php b/Core/Core_c.php index 59ab3bb15..3af33afb6 100644 --- a/Core/Core_c.php +++ b/Core/Core_c.php @@ -526,6 +526,12 @@ private function __clone(): void {} public function __wakeup(): void {} } +/** + * Is thrown when the type of an argument is correct but the value of it is incorrect. For example, passing a negative + * integer when the function expects a positive one, or passing an empty string/array when the function expects it to not be empty. + * @link https://www.php.net/manual/en/class.valueerror.php + * @since 8.0 + */ class ValueError extends Error {} /**