comparison vendor/psy/psysh/src/CodeCleaner/PassableByReferencePass.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 5fb285c0d0e3
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
54 // Well, we gave it a shot! 54 // Well, we gave it a shot!
55 return; 55 return;
56 } 56 }
57 57
58 foreach ($refl->getParameters() as $key => $param) { 58 foreach ($refl->getParameters() as $key => $param) {
59 if (array_key_exists($key, $node->args)) { 59 if (\array_key_exists($key, $node->args)) {
60 $arg = $node->args[$key]; 60 $arg = $node->args[$key];
61 if ($param->isPassedByReference() && !$this->isPassableByReference($arg)) { 61 if ($param->isPassedByReference() && !$this->isPassableByReference($arg)) {
62 throw new FatalErrorException(self::EXCEPTION_MESSAGE, 0, E_ERROR, null, $node->getLine()); 62 throw new FatalErrorException(self::EXCEPTION_MESSAGE, 0, E_ERROR, null, $node->getLine());
63 } 63 }
64 } 64 }