mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 10:44:26 +00:00
Use void instead of null where appropriate when pipe-delimiting @return types. If a @return only contains void, remove it.
See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32568 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -144,7 +144,7 @@ class WP_Error {
|
||||
* @since 2.1.0
|
||||
*
|
||||
* @param string|int $code Optional. Error code.
|
||||
* @return mixed Null, if no errors.
|
||||
* @return mixed Error data, if it exists.
|
||||
*/
|
||||
public function get_error_data($code = '') {
|
||||
if ( empty($code) )
|
||||
@@ -152,7 +152,6 @@ class WP_Error {
|
||||
|
||||
if ( isset($this->error_data[$code]) )
|
||||
return $this->error_data[$code];
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user