{"action":"closed","issue":{"url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/1967","labels_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/1967/labels{/name}","comments_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/1967/comments","events_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/1967/events","html_url":"https://github.com/Yoast/wordpress-seo/issues/1967","id":56501007,"number":1967,"title":"Travis intends to remove PHP 5.2","user":{"login":"Rarst","id":737584,"avatar_url":"https://avatars.githubusercontent.com/u/737584?v=3","gravatar_id":"","url":"https://api.github.com/users/Rarst","html_url":"https://github.com/Rarst","followers_url":"https://api.github.com/users/Rarst/followers","following_url":"https://api.github.com/users/Rarst/following{/other_user}","gists_url":"https://api.github.com/users/Rarst/gists{/gist_id}","starred_url":"https://api.github.com/users/Rarst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rarst/subscriptions","organizations_url":"https://api.github.com/users/Rarst/orgs","repos_url":"https://api.github.com/users/Rarst/repos","events_url":"https://api.github.com/users/Rarst/events{/privacy}","received_events_url":"https://api.github.com/users/Rarst/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-02-04T09:23:17Z","updated_at":"2015-02-23T07:59:57Z","closed_at":"2015-02-23T07:59:57Z","body":"It seems that next update of Travis environment will remove PHP 5.2 complete, see [Build Environment Update History 2015-02-03](http://docs.travis-ci.com/user/build-environment-updates/2015-02-03/). \r\n\r\n> PHP VM\r\n> PHP updates: 5.4.35 → 5.4.37, 5.5.19 → 5.5.21, 5.6.3 → 5.6.5\r\n> HHVM 3.4.0 → 3.5.0\r\n> xdebug 2.2.5 → 2.2.7\r\n> **PHP 5.2.17 is removed**\r\n\r\nThey had already briefly deployed this yesterday, but rolled back for a reason unrelated to this.\r\n\r\nThis makes 5.2 target in tests fail completely.\r\n\r\nSo effectively:\r\n\r\n1. It won't be possible to run tests in PHP 5.2\r\n2. It won't be possible to lint code with PHP 5.2\r\n\r\nI think tests part is less sensitive (they still run on different versions), but lint hurts because it's very easy to slip in newer code by accident. I cannot even set PHP 5.2 as a target level in PhpStorm, the lowest level it has is 5.3.\r\n\r\nThe possible options to explore I could think of:\r\n\r\n1. [PHP CompatInfo](http://php5.laurent-laville.org/compatinfo/). I've used it before and it's insanely detailed and thorough, but pretty heavy to run. On other hand I used it on larger code bases than single plugin. It might be configured down to reasonable performance.\r\n2. [PHPCompatibility](https://github.com/wimg/PHPCompatibility) is CodeSniffer standard, which is already used for coding style checks. Hadn't tried this one in practice yet."}}