Skip to content

Conversation

@mambax7
Copy link
Contributor

@mambax7 mambax7 commented Dec 19, 2025

the explicit nullable type must be used instead

the explicit nullable type must be used instead
Copilot AI review requested due to automatic review settings December 19, 2025 05:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a PHP deprecation warning by adding explicit nullable type declarations to parameters with default null values in the checkVerXoops method. PHP now requires that parameters with a default value of null must be explicitly declared as nullable using the ? syntax.

Key Changes

  • Added explicit nullable type hints (?\XoopsModule and ?string) to the checkVerXoops method parameters

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

* @static
* @param \XoopsModule|null $module
*
* @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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant