Skip to content

Commit

Permalink
Type-hint patch.
Browse files Browse the repository at this point in the history
No type-hint exists for "resource".
  • Loading branch information
Maikuolan committed Jan 4, 2025
1 parent c855c7a commit 5f15359
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* License: GNU/GPLv2
* @see LICENSE.txt
*
* This file: The loader (last modified: 2024.12.26).
* This file: The loader (last modified: 2025.01.04).
*/

namespace phpMussel\Core;
Expand Down Expand Up @@ -948,7 +948,7 @@ public function readFileGZ(string $File): string
* @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, ?resource $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)) {
Expand Down

0 comments on commit 5f15359

Please sign in to comment.