Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"phpstan/phpstan": "^1.11",

Choose a reason for hiding this comment

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

What: Ensure the new dependency is compatible with existing packages and does not introduce conflicts.

Why: Compatibility is critical for maintaining project stability, and conflicts in package versions can lead to issues that negatively impact your application's functionality or security.

How: Consider running composer update after adding the new dependency to check for conflicts and use composer why-not <package> to identify any dependencies that are not compatible.

"php-stubs/generator": "^0.8.4",

Choose a reason for hiding this comment

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

What: Consider validating that the added dependency does not introduce vulnerabilities.

Why: It's essential to ensure that any new dependencies are not only necessary but also safe and secure as they can lead to security issues in the project if they have known vulnerabilities.

How: Check the security advisories for pheromone/phpcs-security-audit on platforms like Packagist or GitHub, and ensure that it adheres to best practices for security. Also, consider implementing lock files in Composer to protect against unexpected updates.

"php-stubs/wordpress-stubs": "^6.5",
"szepeviktor/phpstan-wordpress": "^1.3"
"szepeviktor/phpstan-wordpress": "^1.3",
"pheromone/phpcs-security-audit": "^2.0"
},
"scripts": {
"format": "phpcbf",
Expand Down
Loading