From 6bc9ddd2e7e43315f93750da56fa09404d601750 Mon Sep 17 00:00:00 2001 From: Giuseppe Criscione <18699708+giuscris@users.noreply.github.com> Date: Tue, 10 Dec 2024 23:34:33 +0100 Subject: [PATCH] Fix arguments array type --- formwork/src/Cms/App.php | 2 +- formwork/src/Data/CollectionDataProxy.php | 2 +- formwork/src/Fields/Field.php | 2 +- formwork/src/Traits/Methods.php | 4 ++-- formwork/src/View/View.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/formwork/src/Cms/App.php b/formwork/src/Cms/App.php index ef70c64f..1a857502 100644 --- a/formwork/src/Cms/App.php +++ b/formwork/src/Cms/App.php @@ -65,7 +65,7 @@ final class App } /** - * @param array $arguments + * @param list $arguments */ public function __call(string $name, array $arguments): mixed { diff --git a/formwork/src/Data/CollectionDataProxy.php b/formwork/src/Data/CollectionDataProxy.php index 79bfae92..423b634e 100644 --- a/formwork/src/Data/CollectionDataProxy.php +++ b/formwork/src/Data/CollectionDataProxy.php @@ -28,7 +28,7 @@ class CollectionDataProxy } /** - * @param array $arguments + * @param list $arguments */ public function __call(string $name, array $arguments): Collection { diff --git a/formwork/src/Fields/Field.php b/formwork/src/Fields/Field.php index aaf75292..7096860e 100644 --- a/formwork/src/Fields/Field.php +++ b/formwork/src/Fields/Field.php @@ -363,7 +363,7 @@ class Field implements Arrayable, Stringable } /** - * @param array $arguments + * @param list $arguments */ protected function callMethod(string $method, array $arguments = []): mixed { diff --git a/formwork/src/Traits/Methods.php b/formwork/src/Traits/Methods.php index 4671e65b..bc2fcade 100644 --- a/formwork/src/Traits/Methods.php +++ b/formwork/src/Traits/Methods.php @@ -15,7 +15,7 @@ trait Methods protected array $methods = []; /** - * @param array $arguments + * @param list $arguments */ public function __call(string $name, array $arguments): mixed { @@ -36,7 +36,7 @@ trait Methods /** * Call a method defined in the `$method` property * - * @param array $arguments + * @param list $arguments */ protected function callMethod(string $method, array $arguments) { diff --git a/formwork/src/View/View.php b/formwork/src/View/View.php index ae5acb0d..3c85fa04 100644 --- a/formwork/src/View/View.php +++ b/formwork/src/View/View.php @@ -269,7 +269,7 @@ class View } /** - * @param array $arguments + * @param list $arguments */ protected function callMethod(string $method, array $arguments): mixed {