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:
Scott Taylor 2014-11-03 02:37:55 +00:00
parent 204bab92c2
commit 345a63f498
2 changed files with 8 additions and 4 deletions

View File

@ -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 ) {

View File

@ -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 ) {