Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PHPLIB-1726: Add copilot instructions for reviews #1782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
alcaeus wants to merge 1 commit into mongodb:v1.21
base: v1.21
Choose a base branch
Loading
from alcaeus:add-copilot-instructions

Conversation

Copy link
Member

@alcaeus alcaeus commented Sep 26, 2025

PHPLIB-1726

This is a first draft of instructions for Copilot, aiming to improve the quality of reviews. The file itself was generated by Copilot itself and reviewed for completeness.

- Focus on code quality, potential issues, and improvements not mentioned in the PR

### PHP Version and Type Requirements
- Code must support **PHP 8.1 and newer**
Copy link
Member

Choose a reason for hiding this comment

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

Can we ask it to check the PHP constraints in composer.json so that we don't have to maintain the version number here?

Suggested change
- Code must support **PHP 8.1 and newer**
- The minimum PHP version supported is in the `./composer.json`. Code must support **this version and newer**

- Private/protected methods should also be fully typed
- Use strict scalar type declarations (`declare(strict_types=1)`)
- Prefer constructor property promotion when applicable
- Use named arguments for better readability in complex method calls
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- Use named arguments for better readability in complex method calls
- Use named arguments for better readability in complex method calls to functions inside this package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@GromNaN GromNaN GromNaN left review comments

Copilot code review Copilot Awaiting requested review from Copilot Copilot will automatically review once the pull request is marked ready for review

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /