Title: Class construct method
Last modified: July 2, 2019

---

# Class construct method

 *  Resolved [Ben Huson](https://wordpress.org/support/users/husobj/)
 * (@husobj)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/class-construct-method/)
 * Hi
 * This plugin generates the warning “Methods with the same name as their class 
   will not be constructors in a future version of PHP”.
 * The Browser class constructor should be `__construct` instead of `Browser`.
 * There may be other instances but I just spotted that one.
 * Kind regards
 * Ben

Viewing 1 replies (of 1 total)

 *  Plugin Author [Aftab Ali Muni](https://wordpress.org/support/users/aftabmuni/)
 * (@aftabmuni)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/class-construct-method/#post-12089754)
 * Hello Ben Huson (@husobj)
    Thanks for finding this bug. I had fixed it.
 * Regards,
    Aftab.

Viewing 1 replies (of 1 total)

The topic ‘Class construct method’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/browser-and-operating-system-finder_614d2f.
   svg)
 * [Browser and Operating System Finder](https://wordpress.org/plugins/browser-and-operating-system-finder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/browser-and-operating-system-finder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/browser-and-operating-system-finder/)
 * [Active Topics](https://wordpress.org/support/plugin/browser-and-operating-system-finder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/browser-and-operating-system-finder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/browser-and-operating-system-finder/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Aftab Ali Muni](https://wordpress.org/support/users/aftabmuni/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/class-construct-method/#post-12089754)
 * Status: resolved