wp-includes/class-wp-image-editor.php:208Sets current image size.
$widthint|nulloptionalnull$heightint|nulloptionalnulltrue protected function update_size( $width = null, $height = null ) { $this->size = array( 'width' => (int) $width, 'height' => (int) $height, ); return true; }Introduced in 3.5.0. 2 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$width retyped from int to int|null.verified against source$height retyped from int to int|null.verified against sourcesrc/wp-includes/class-wp-image-editor.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.