diff --git a/Resources/bin/yaml-lint b/Resources/bin/yaml-lint index 0ad73d71..143869e0 100755 --- a/Resources/bin/yaml-lint +++ b/Resources/bin/yaml-lint @@ -10,6 +10,10 @@ * file that was distributed with this source code. */ +if ('cli' !== \PHP_SAPI) { + throw new Exception('This script must be run from the command line.'); +} + /** * Runs the Yaml lint command. *