From b6655e1c234fa18612fdfa5103caf7c6e4d7be69 Mon Sep 17 00:00:00 2001 From: marek657 Date: Fri, 15 Mar 2024 09:17:53 +0100 Subject: [PATCH] add new parameter to searchSchoolByYear (#6) --- src/Client.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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());