Level 54
@ebrahemsamer its valid in php7.
what you see there is the short form of the list method. $this->someMethod() returns some variables and the first two are then defined as $variable1 and $variable2.
equivalent to
list($variable1,$variable2) = $this->someMethod()
IIRC that went in to PHP from 7.1. If you are getting an error, you may not have that version.
see https://wiki.php.net/rfc/short_list_syntax
Post the error here if you want help debugging.