Skip to content

Commit

Permalink
[phpstorm-stubs] WI-80152 update PHPDoc for ValueError class
Browse files Browse the repository at this point in the history
  • Loading branch information
isfedorov committed Jan 2, 2025
1 parent db675e0 commit dfcad45
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Core/Core_c.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

/**
Expand Down

0 comments on commit dfcad45

Please sign in to comment.