Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion class/Common/VersionChecks.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ trait VersionChecks
* @param null $requiredVer
Copy link

Copilot AI Dec 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PHPDoc annotation should be updated to match the new type signature. Change from @param null $requiredVer to @param string|null $requiredVer.

Suggested change
* @param null $requiredVer
* @param string|null $requiredVer

Copilot uses AI. Check for mistakes.
* @return bool true if meets requirements, false if not
*/
public static function checkVerXoops(\XoopsModule $module = null, $requiredVer = null): bool
public static function checkVerXoops(?\XoopsModule $module = null, ?string $requiredVer = null): bool
{
$moduleDirName = \basename(\dirname(__DIR__, 2));
$moduleDirNameUpper = \mb_strtoupper($moduleDirName);
Expand Down