Title: PHP 8 deprecated function/method argument order
Last modified: June 24, 2022

---

# PHP 8 deprecated function/method argument order

 *  [Philip Rosing](https://wordpress.org/support/users/vorodk/)
 * (@vorodk)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/php-8-deprecated-function-method-argument-order/)
 * This plugins uses some function/method declarations which is deprecated with 
   php 8.
 * In init.php:251 the method declaration is `public function get_avatar( $avatar,
   $id_or_email, $size = 96, $default = '', $alt = false, $args )` which causes 
   php 8+ to throw a deprecation notice:
    `Deprecated: Required parameter $args 
   follows optional parameter $size in /Users/username/sites/mytheme/wp-content/
   plugins/basic-user-avatars/init.php on line 251`
 * Could this be fixed?

Viewing 1 replies (of 1 total)

 *  [Andrew Lima](https://wordpress.org/support/users/andrewza/)
 * (@andrewza)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-8-deprecated-function-method-argument-order/#post-15824976)
 * Hi [@vorodk](https://wordpress.org/support/users/vorodk/)
 * Thank you for reaching out to Basic User Avatars, version 1.0.7 was just released
   and addresses this issue.
 * Please update to the latest version and let me know if it doesn’t resolve your
   issue.

Viewing 1 replies (of 1 total)

The topic ‘PHP 8 deprecated function/method argument order’ is closed to new replies.

 * ![](https://ps.w.org/basic-user-avatars/assets/icon-256x256.png?rev=2560641)
 * [Basic User Avatars](https://wordpress.org/plugins/basic-user-avatars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/basic-user-avatars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/basic-user-avatars/)
 * [Active Topics](https://wordpress.org/support/plugin/basic-user-avatars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/basic-user-avatars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/basic-user-avatars/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Andrew Lima](https://wordpress.org/support/users/andrewza/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/php-8-deprecated-function-method-argument-order/#post-15824976)
 * Status: not a support question