Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installationsassistent, Syntaxfehler-Segment erweitern um PHP-deprecated-functions #303

Open
tilluhlig opened this issue Apr 22, 2017 · 0 comments

Comments

@tilluhlig
Copy link
Member

tilluhlig commented Apr 22, 2017

Dazu kann https://github.com/squizlabs/PHP_CodeSniffer mittels pear install PHP_CodeSniffer genutzt werden. Zusätzlich muss https://github.com/wimg/PHPCompatibility heruntergeladen werden. Der Regelsatz von PHPCompatibility wird mit phpcs verknüpft, indem phpcs --config-set installed_paths /pfadZuPHPCompatiblityElternordner ausgeführt wird.

Quelltextbeispiel zum Testen auf PHP-7.1 (testet den Ordner "uebungsplattform")

set_time_limit(0);
$output = null;
$result = null;
exec('(phpcs --extensions=php --standard=PHPCompatibility --runtime-set testVersion -7.1 uebungsplattform/)', $output, $result);
file_put_contents("deprecated.dat",implode("\n",$output));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant