Skip to content

Commit

Permalink
PHP 8.4 compatibility patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maikuolan committed May 29, 2024
1 parent b0032f6 commit 30e7184
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ found at:
- [2024.03.21; Maikuolan]: Slightly improved guards for the IPHeader class
trySource method.

- [2024.05.30; Maikuolan]: PHP 8.4 compatibility patch.

=== Version/Release 2.12.0 ===
MINOR RELEASE.

Expand Down
4 changes: 2 additions & 2 deletions src/Cache.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* A simple, unified cache handler (last modified: 2023.12.01).
* A simple, unified cache handler (last modified: 2024.05.30).
*
* This file is a part of the "common classes package", utilised by a number of
* packages and projects, including CIDRAM and phpMussel.
Expand Down Expand Up @@ -187,7 +187,7 @@ class Cache extends CommonAbstract
* @param array|null $WorkingData An optional array of default cache data.
* @return void
*/
public function __construct(array $WorkingData = null)
public function __construct(?array $WorkingData = null)
{
if (is_array($WorkingData)) {
$this->WorkingData = $WorkingData;
Expand Down

0 comments on commit 30e7184

Please sign in to comment.