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:
parent
204bab92c2
commit
345a63f498
@ -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 ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user