Skip to content

Instantly share code, notes, and snippets.

View SammyK's full-sized avatar
🍄
Grinding that mossy cobble

SammyK SammyK

🍄
Grinding that mossy cobble
View GitHub Profile
@SammyK
SammyK / README.md
Last active August 1, 2018 16:54 — forked from nikic/varVar.php
Script for finding variable-variable usages potentially affected by uniform variable syntax

Find Bugs Related To Uniform Variable Syntax

When upgrading to PHP 7, you might run into really hard-to-debug error messages which might be a result of the uniform variable syntax RFC.

This script (forked from Nikita Popov's gist) will scan a PHP 5 codebase and call out the file and line number of an indirect expression with an offset. The evaluation of these expressions has changed in PHP 7.

Installation

To run this script against a PHP 5 codebase, make sure you have PHP and Composer installed. Then create a directory somewhere and install nikic/php-parser with Composer.