• Resolved Martin Stehle

    (@hinjiriyo)


    Great idea! Unfortunately these lines appear when the plugin is activated:

    PHP Strict Standards: WP_Image_Editor and SmartCrop_WP_Image_Editor_Common define the same property ($size) in the composition of SmartCrop_WP_Image_Editor_Imagick. This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed in smartcrop/includes/class-smartcrop-wp-image-editor-imagick.php on line 92

    PHP Strict Standards: WP_Image_Editor and SmartCrop_WP_Image_Editor_Common define the same property ($size) in the composition of SmartCrop_WP_Image_Editor_GD. This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed in smartcrop/includes/class-smartcrop-wp-image-editor-gd.php on line 94

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor viper007bond

    (@viper007bond)

    What version of PHP are you running?

    Thread Starter Martin Stehle

    (@hinjiriyo)

    It is still PHP 5.6.15. I will upgrade.

    Thread Starter Martin Stehle

    (@hinjiriyo)

    With PHP version 7.2.3 the notices disappeared.

    Plugin Contributor viper007bond

    (@viper007bond)

    Thanks. I develop using PHP 7.2.x so I didn’t catch this.

    However as it’s only a strict standards warning in earlier versions of PHP and 99.9999% of people have those off in production, I’m not going to worry about it. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP warnings’ is closed to new replies.