1
0
mirror of https://github.com/php/phd.git synced 2026-03-24 15:12:18 +01:00

12 Commits

Author SHA1 Message Date
Máté Kocsis
0e43594305 Revert "Add explicit type declarations to class constants (PHP 8.3+) (#215)"
This reverts commit c65199393a.
2026-03-04 08:43:09 +01:00
Louis-Arnaud
c65199393a Add explicit type declarations to class constants (PHP 8.3+) (#215)
### Motivation
- Enhances type safety and static analysis.
- Makes code intent clearer.
- Prepares PhD for PHP 8.4 compatibility and future strictness.

### Scope
- Added types such as `int`, `string`, `bool`, or `array` to class constants.
- Example:
    Before:
        `public const FORMAT_HTML = 1;`
        `public const NAME = 'PhD';`
    After:
        `public const int FORMAT_HTML = 1;`
        `public const string NAME = 'PhD';`

### Impact
-  No runtime behavior change.
-  Fully backward compatible with PHP 8.3+.
- ⚙️ Code clarity and safety improvement only.
- Updated `composer.json` to indicate PHP 8.3 requirement
- Removed 8.1 and 8.2 CI pipelines

### References
- [PHP 8.3: Typed class constants RFC](https://wiki.php.net/rfc/typed_class_constants)
- [PHP manual: Class constants](https://www.php.net/manual/en/language.oop5.constants.php)

---------

Co-authored-by: lacatoire <louis-arnaud.catoire@external.drivalia.com>
2026-02-05 20:45:10 +00:00
Louis-Arnaud
7366bc9f2a refactor: replace trigger_error(E_USER_ERROR) with exceptions (PHP 8.4 compatibility) (#218)
Co-authored-by: lacatoire <louis-arnaud.catoire@external.drivalia.com>
2026-01-09 02:09:58 +00:00
haszi
d611e64fb1 Fix PHPDoc Return types 2025-01-14 12:16:32 +00:00
haszi
e5b8bf35a9 Remove file ending comment blocks (#92)
Co-authored-by: haszi <haszika80@gmail.com>
2024-02-08 12:46:21 +00:00
Sobak
aecae4e2c3 Eliminate $ comments 2015-03-09 06:20:39 +01:00
Hannes Magnusson
37a0e4268d WS :) 2012-06-09 17:33:56 +01:00
Moacir de Oliveira Miranda Júnior
cbe4d05301 Do not add new lines in the elements 2011-06-07 04:09:12 +00:00
Moacir de Oliveira Miranda Júnior
71cad9522d ide-functions -> ide-xml 2011-05-14 22:44:54 +00:00
Hannes Magnusson
29f2ba1fb3 Link to https 2011-04-22 12:43:00 +00:00
Moacir de Oliveira Miranda Júnior
aaf9660593 Changing format name from ide-functions to ide-xml 2010-05-06 02:29:35 +00:00
Moacir de Oliveira Miranda Júnior
c7955cf3f9 Adding the classes of the IDE API 2009-11-23 05:40:35 +00:00