1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-26 20:04:48 +01:00

Combine issets (#460)

This commit is contained in:
Gabriel Caruso 2018-01-04 10:36:01 -02:00 committed by Nikita Popov
parent 92b39e3d1f
commit 3bc31488ce

View File

@ -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']);
}
/**