Skip to content

Conversation

alcaeus
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants