mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
WP_Image_Editor_GD and WP_Image_Editor_Imagick should specify type in a doc block for the $image property, instead of inferring bool and null.
See #30224. git-svn-id: https://develop.svn.wordpress.org/trunk@30180 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -15,8 +15,10 @@
|
||||
* @uses WP_Image_Editor Extends class
|
||||
*/
|
||||
class WP_Image_Editor_GD extends WP_Image_Editor {
|
||||
|
||||
protected $image = false; // GD Resource
|
||||
/**
|
||||
* @var resource
|
||||
*/
|
||||
protected $image; // GD Resource
|
||||
|
||||
public function __destruct() {
|
||||
if ( $this->image ) {
|
||||
|
||||
@@ -15,8 +15,10 @@
|
||||
* @uses WP_Image_Editor Extends class
|
||||
*/
|
||||
class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
|
||||
protected $image = null; // Imagick Object
|
||||
/**
|
||||
* @var Imagick
|
||||
*/
|
||||
protected $image; // Imagick Object
|
||||
|
||||
public function __destruct() {
|
||||
if ( $this->image instanceof Imagick ) {
|
||||
|
||||
Reference in New Issue
Block a user