From cad44f68a871903b1fe5250e3415bc3c91ce7ab2 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Sat, 12 Jul 2025 15:01:01 -0700 Subject: [PATCH] Clarify the minimum required / oldest supported PHP version in the contributing guidelines. --- CONTRIBUTING.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7d6e2f3f..a1ae8f13 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,6 +6,12 @@ Thank you for your interest in contributing to the PHP AI Client package! Here y While this project is stewarded by [WordPress AI Team](https://make.wordpress.org/ai/) members and contributors, it is a WordPress agnostic PHP package that can benefit any project in the PHP ecosystem. As such, all code must follow the [PSR-12 Coding Standards](https://www.php-fig.org/psr/psr-12/). +All parameters, return values, and properties must use explicit type hints, except in cases where providing the correct type hint would be impossible given limitations of the oldest supported PHP version (see below). + +## PHP Compatibility + +All code must be backward compatible with PHP 7.4, which is the minimum required PHP version for this project. + ## Guidelines - As with all WordPress projects, we want to ensure a welcoming environment for everyone. With that in mind, all contributors are expected to follow our [Code of Conduct](https://make.wordpress.org/handbook/community-code-of-conduct/).