mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 09:10:06 +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:
@@ -109,7 +109,7 @@ final class WP_Customize_Widgets {
|
||||
* @access protected
|
||||
*
|
||||
* @param $setting_id Setting ID.
|
||||
* @return string|null Setting type. Null otherwise.
|
||||
* @return string|void Setting type.
|
||||
*/
|
||||
protected function get_setting_type( $setting_id ) {
|
||||
static $cache = array();
|
||||
@@ -1136,7 +1136,7 @@ final class WP_Customize_Widgets {
|
||||
* @access public
|
||||
*
|
||||
* @param array $value Widget instance to sanitize.
|
||||
* @return array|null Sanitized widget instance.
|
||||
* @return array|void Sanitized widget instance.
|
||||
*/
|
||||
public function sanitize_widget_instance( $value ) {
|
||||
if ( $value === array() ) {
|
||||
|
||||
Reference in New Issue
Block a user