diff --git a/inc/class-phpcs.php b/inc/class-phpcs.php index 9d97e2c25..85638ac18 100644 --- a/inc/class-phpcs.php +++ b/inc/class-phpcs.php @@ -120,7 +120,7 @@ public function clear_cache() { * @return string|WP_Error|null */ public function run( $path, array $args = array() ) { - if ( ! is_executable( $this->phpcs ) ) { + if ( ! file_exists( $this->phpcs ) ) { return new \WP_Error( 'missing_dependency', 'PHP Code Sniffer is not available. Try running composer install first.'