| name | typo3-conformance-php84 |
| description | PHP 8.4 coding standards for TYPO3 extension conformance. Property hooks, visibility, and modern patterns. |
| version | 1.0.0 |
| php_compatibility | 8.4+ |
| typo3_compatibility | 13.0 - 14.x |
| related_skills | ["typo3-conformance","php-modernization"] |
| triggers | ["conformance php 8.4","extension standards php84"] |
Extension Conformance with PHP 8.4
Compatibility: PHP 8.4+, TYPO3 v13.x and v14.x
Related Skills:
1. PHP 8.4 Coding Standards
Recommended Patterns
| Pattern | Standard |
|---|
| Property hooks | Use for validation/transformation |
| Asymmetric visibility | Prefer over private + getter |
| New array functions | Use over manual loops |
#[\Deprecated] | Mark legacy code properly |
2. PHP-CS-Fixer Configuration
<?php
$config = new PhpCsFixer\Config();
return $config
->setRules([
'@PER-CS' => true,
'@PER-CS:risky' => true,
'declare_strict_types' => true,
'trailing_comma_in_multiline' => [
'elements' => ['arguments', 'arrays', 'match', 'parameters'],
],
'nullable_type_declaration_for_default_null_value' => true,
])
->setRiskyAllowed(true)
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__ . '/Classes')
->in(__DIR__ . '/Tests')
);
3. PHPStan Level 10
# phpstan.neon
parameters:
phpVersion: 80400
level: 10
paths:
- Classes
treatPhpDocTypesAsCertain: false
4. Conformance Checklist for PHP 8.4
References
Credits & Attribution
This skill is part of the webconsulting.at TYPO3 skills collection.