From 3bc31488ce1589d80ecd4a439ee6342149b2596b Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Thu, 4 Jan 2018 10:36:01 -0200 Subject: [PATCH] Combine issets (#460) --- lib/PhpParser/Error.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PhpParser/Error.php b/lib/PhpParser/Error.php index ac6e32a..5375553 100644 --- a/lib/PhpParser/Error.php +++ b/lib/PhpParser/Error.php @@ -99,7 +99,7 @@ class Error extends \RuntimeException * @return bool */ public function hasColumnInfo() : bool { - return isset($this->attributes['startFilePos']) && isset($this->attributes['endFilePos']); + return isset($this->attributes['startFilePos'], $this->attributes['endFilePos']); } /**