Check PHP Version Compatibility
check_php_compatibilityChecks PHP code for syntax and semantic incompatibilities with a specified PHP version, ensuring forward and backward compatibility.
Instructions
PHPCompatibility standard'ı ile kodu belirli bir PHP sürümü için denetler. Hem PHP hem de sözdizimi/semantik geriye/ileriye uyumsuzlukları yakalar.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filepath": "<filepath>"
},
"name": "check_php_compatibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | Yes | Denetlenecek dosya veya dizin. Örnek: ./src veya ./src/Foo.php | |
| projectPath | No | İsteğe bağlı proje kökü (otomatik tespit edilir). | |
| targetVersion | No | Test edilecek minimum PHP sürümü. Varsayılan: 8.1. | 8.1 |