From 399347a4a3d486469a1eacefc586efd81875c214 Mon Sep 17 00:00:00 2001 From: Eric Pfeiffer <63664924+ericp-mrel@users.noreply.github.com> Date: Mon, 28 Feb 2022 14:15:38 -0600 Subject: [PATCH 1/2] Fix docblock typehint (#71) --- src/Auth/Models/Role.php | 2 +- src/Auth/Models/User.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Auth/Models/Role.php b/src/Auth/Models/Role.php index 17fd36b7..c1781326 100644 --- a/src/Auth/Models/Role.php +++ b/src/Auth/Models/Role.php @@ -161,7 +161,7 @@ public function hasAnyAccess(array $permissions) /** * Validate the permissions when set. - * @param array $permissions + * @param string $permissions * @return void */ public function setPermissionsAttribute($permissions) diff --git a/src/Auth/Models/User.php b/src/Auth/Models/User.php index 48aa1ba9..fe22d414 100644 --- a/src/Auth/Models/User.php +++ b/src/Auth/Models/User.php @@ -558,7 +558,7 @@ public function hasAnyAccess(array $permissions) /** * Validate any set permissions. - * @param array $permissions + * @param string $permissions * @return void */ public function setPermissionsAttribute($permissions) From 38db1fc162c1820256ac666c295c1fb4dd050fda Mon Sep 17 00:00:00 2001 From: Marc Jauvin Date: Mon, 25 Apr 2022 21:43:19 -0400 Subject: [PATCH 2/2] remove non-existent argument to Ini::parse() method (#82) --- src/Halcyon/Processors/SectionParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Halcyon/Processors/SectionParser.php b/src/Halcyon/Processors/SectionParser.php index f3dbadcd..a54b6d96 100644 --- a/src/Halcyon/Processors/SectionParser.php +++ b/src/Halcyon/Processors/SectionParser.php @@ -211,7 +211,7 @@ public static function parse(string $content, array $options = []): array } if ($count >= 3) { - $result['settings'] = @$iniParser->parse($sections[0], true) + $result['settings'] = @$iniParser->parse($sections[0]) ?: [self::ERROR_INI => $sections[0]]; $result['code'] = $sections[1];