Mercurial > hg > isophonics-drupal-site
comparison vendor/psy/psysh/src/CodeCleaner/NamespacePass.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 |
---|---|
51 { | 51 { |
52 if (empty($nodes)) { | 52 if (empty($nodes)) { |
53 return $nodes; | 53 return $nodes; |
54 } | 54 } |
55 | 55 |
56 $last = end($nodes); | 56 $last = \end($nodes); |
57 | 57 |
58 if ($last instanceof Namespace_) { | 58 if ($last instanceof Namespace_) { |
59 $kind = $last->getAttribute('kind'); | 59 $kind = $last->getAttribute('kind'); |
60 | 60 |
61 // Treat all namespace statements pre-PHP-Parser v3.1.2 as "open", | 61 // Treat all namespace statements pre-PHP-Parser v3.1.2 as "open", |