comparison vendor/nikic/php-parser/lib/PhpParser/ErrorHandler/Collecting.php @ 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
1 <?php 1 <?php declare(strict_types=1);
2 2
3 namespace PhpParser\ErrorHandler; 3 namespace PhpParser\ErrorHandler;
4 4
5 use PhpParser\Error; 5 use PhpParser\Error;
6 use PhpParser\ErrorHandler; 6 use PhpParser\ErrorHandler;
22 /** 22 /**
23 * Get collected errors. 23 * Get collected errors.
24 * 24 *
25 * @return Error[] 25 * @return Error[]
26 */ 26 */
27 public function getErrors() { 27 public function getErrors() : array {
28 return $this->errors; 28 return $this->errors;
29 } 29 }
30 30
31 /** 31 /**
32 * Check whether there are any errors. 32 * Check whether there are any errors.
33 * 33 *
34 * @return bool 34 * @return bool
35 */ 35 */
36 public function hasErrors() { 36 public function hasErrors() : bool {
37 return !empty($this->errors); 37 return !empty($this->errors);
38 } 38 }
39 39
40 /** 40 /**
41 * Reset/clear collected errors. 41 * Reset/clear collected errors.