diff --git a/src/Client.php b/src/Client.php index 2cfcd9c..2725cae 100644 --- a/src/Client.php +++ b/src/Client.php @@ -354,11 +354,12 @@ public function searchSchool(?string $title = null, ?string $nuts = null, ?strin * @param int $year * @param int $page * @param int $perPage + * @param array $root * @return mixed * @throws \Psr\Cache\InvalidArgumentException * @throws ReflectionException */ - public function searchSchoolByYear(?string $query, ?string $nuts = null, array $type = [], ?int $year = null, $page = 1, $perPage = self::RESULTS_PER_PAGE) + public function searchSchoolByYear(?string $query, ?string $nuts = null, array $type = [], ?int $year = null, $page = 1, $perPage = self::RESULTS_PER_PAGE, array $root = []) { $parameterNames = array_slice($this->methodParameterExtractor->extract(__CLASS__, __FUNCTION__), 0, func_num_args()); $args = array_combine($parameterNames, func_get_args());