From 41c0f21c4a4af34864b8f15514ec48c75f831a56 Mon Sep 17 00:00:00 2001 From: Caleb Mazalevskis Date: Thu, 26 Dec 2024 13:53:22 +0800 Subject: [PATCH] Code-style patch. --- .github/workflows/php-cs-fixer.yml | 4 ++-- src/Loader.php | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/php-cs-fixer.yml b/.github/workflows/php-cs-fixer.yml index da5db7b..267ca81 100644 --- a/.github/workflows/php-cs-fixer.yml +++ b/.github/workflows/php-cs-fixer.yml @@ -24,5 +24,5 @@ jobs: - name: PHP-CS-Fixer Check run: | - php-cs-fixer fix -v --dry-run ./src --rules=@PSR12 - php-cs-fixer fix -v --dry-run ./tests.php --rules=@PSR12 + php-cs-fixer fix -v --dry-run ./src --rules=@PSR12,-blank_line_after_opening_tag + php-cs-fixer fix -v --dry-run ./tests.php --rules=@PSR12,-blank_line_after_opening_tag diff --git a/src/Loader.php b/src/Loader.php index 4847711..44b657a 100644 --- a/src/Loader.php +++ b/src/Loader.php @@ -8,7 +8,7 @@ * License: GNU/GPLv2 * @see LICENSE.txt * - * This file: The loader (last modified: 2024.08.09). + * This file: The loader (last modified: 2024.12.26). */ namespace phpMussel\Core; @@ -93,7 +93,7 @@ class Loader /** * @var string phpMussel version number (SemVer). */ - public $ScriptVersion = '3.5.2'; + public $ScriptVersion = '3.5.4'; /** * @var string phpMussel version identifier (complete notation). @@ -945,10 +945,10 @@ public function readFileGZ(string $File): string * * @param string $Filename Refer to the description for file(). * @param int $Flags Refer to the description for file(). - * @param resource|null $Context Refer to the description for file(). + * @param ?resource $Context Refer to the description for file(). * @return array The file's contents or an empty array on failure. */ - public function readFileAsArray(string $Filename, int $Flags = 0, $Context = null): array + public function readFileAsArray(string $Filename, int $Flags = 0, ?$Context = null): array { /** Guard. */ if (!is_file($Filename) || !is_readable($Filename) || !$Filesize = filesize($Filename)) {