comparison vendor/nikic/php-parser/doc/component/Error_handling.markdown @ 13:5fb285c0d0e3

Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've been lucky to get away with this so far, as we don't support self-registration which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5 was vulnerable to.
author Chris Cannam
date Mon, 23 Apr 2018 09:33:26 +0100
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
12:7a779792577d 13:5fb285c0d0e3
25 } catch (PhpParser\Error $e) { 25 } catch (PhpParser\Error $e) {
26 // ... 26 // ...
27 } 27 }
28 ``` 28 ```
29 29
30 Before using column information its availability needs to be checked with `$e->hasColumnInfo()`, as the precise 30 Before using column information, its availability needs to be checked with `$e->hasColumnInfo()`, as the precise
31 location of an error cannot always be determined. The methods for retrieving column information also have to be passed 31 location of an error cannot always be determined. The methods for retrieving column information also have to be passed
32 the source code of the parsed file. An example for printing an error: 32 the source code of the parsed file. An example for printing an error:
33 33
34 ```php 34 ```php
35 if ($e->hasColumnInfo()) { 35 if ($e->hasColumnInfo()) {