Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Getting ready for PHP7.2

Jenny Wong
March 08, 2019

Getting ready for PHP7.2

At the State of the Word, it was announced that one of the upcoming focuses of the WordPress project is raising the minimum version requirement of PHP.

WordPress core is already PHP7.2 compatible but are your plugins and themes?

In this talk, Jenny will be looking at the steps needed to check if plugins and themes are compatible, and the lessons learned from doing the steps.

Are you PHPrepared?

Jenny Wong

March 08, 2019

More Decks by Jenny Wong

Other Decks in Technology


  1. • Checks for spelling mistakes • Does not check that

    the sentences make sense Static Analysers @miss_jwo #WCNordic
  2. Scenario #1 • I’m not a developer/ coder but I

    want to check
 • Is there going to be too much to do? @miss_jwo #WCNordic
  3. Working on a project and want to check as you

    work Scenario #2 @miss_jwo #WCNordic
  4. Composer & PHP CompatibilityWP & WordPress Coding Standards Tools for

    your workflow: (Will also install PHP Coding Standards) @miss_jwo #WCNordic
  5. Where in the workflow? • Locally • Before commits are

    accepted into a repo • Before code is push to production @miss_jwo #WCNordic
  6. Composer & PHP Compatibility Number of files checked Warning found

    Skipped file Error found @miss_jwo #WCNordic
  7. • Start at your current PHP version • Use a

    static analyser • Check the migration guide for current PHP Version • Repeat till at desired PHP version. @miss_jwo #WCNordic
  8. If you care about keeping your WordPress up to date,

    you should care about keeping your stack up to date too. @miss_jwo #WCNordic
  9. Set a minimum PHP version requirement in plugin readme file

    https://make.wordpress.org/plugins/2017/08/29/minimum-php-version-requirement/ @miss_jwo #WCNordic
  10. • WordCamp London 2015: Lorna Jane Mitchell: Get Ready for

    PHP 5.4+ (video) • Lorna Jane Mitchell: Get Ready for PHP 5.4+ Slides • Your hosting providers documentation • php.net/manual • https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/#how- to-use • Cloudways How to Upgrade From PHP 5.X to PHP 7 (Cheat Sheet) • Auth0: Migrating a PHP5 app to PHP7 by Prosper Otemuyiwa (PDF) • How to Set up Modern PHP Coding Standards for WordPress | Thorsten Frommen @miss_jwo #WCNordic