Skip to content

Instantly share code, notes, and snippets.

@kaleb
Created July 21, 2016 18:40

Revisions

  1. kaleb created this gist Jul 21, 2016.
    3 changes: 3 additions & 0 deletions .vscode\settings.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    {
    "php.validate.executablePath": "scripts/php.sh"
    }
    1 change: 1 addition & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    I am working on a project that is using a very old version of PHP, and I wanted to set up linting for it in the Visual Studio Code editor without having to install PHP 5.3 on my system. This setup seems to work pretty well.
    3 changes: 3 additions & 0 deletions scripts\php.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    #!/bin/sh

    cat $8 | docker run --rm -i php:5.3 php -l -n -d display_errors=On -d log_errors=Off