Skip to content

fix: add PHP 8.2 compatibility attributes and signature fixes#4

Merged
paddatrapper merged 1 commit intolibretime:mainfrom
k054:fix/php82-compat
Apr 17, 2026
Merged

fix: add PHP 8.2 compatibility attributes and signature fixes#4
paddatrapper merged 1 commit intolibretime:mainfrom
k054:fix/php82-compat

Conversation

@k054
Copy link
Copy Markdown

@k054 k054 commented Apr 17, 2026

Adds PHP 8.2 compatibility fixes to Propel1:

Add #[\ReturnTypeWillChange] to all methods overriding PHP built-in interfaces (Iterator, Countable, ArrayAccess, IteratorAggregate, RecursiveIterator)
Add #[\AllowDynamicProperties] to classes with dynamic properties
Fix PropelPDO::query() signature to match PHP 8's PDO interface
Replace deprecated call_user_func_array('parent::query', $args) with parent::query(...$args)

- Add #[\ReturnTypeWillChange] to interface method overrides across 14 files
- Add #[\AllowDynamicProperties] to classes with dynamic properties
- Fix PropelPDO::query() signature for PHP 8 PDO compatibility
- Replace call_user_func_array('parent::query') with parent::query(...\$args)"
@paddatrapper paddatrapper merged commit 4261914 into libretime:main Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants