-<?php
+<?php declare(strict_types=1);
namespace PhpParser\ErrorHandler;
*
* @return Error[]
*/
- public function getErrors() {
+ public function getErrors() : array {
return $this->errors;
}
*
* @return bool
*/
- public function hasErrors() {
+ public function hasErrors() : bool {
return !empty($this->errors);
}
public function clearErrors() {
$this->errors = [];
}
-}
\ No newline at end of file
+}