Commit 25dba2e
Fix deprecated string increment on non-numeric string in nextHandle() (PHP 8.3+)
On PHP 8.3+ the $char++ operation in nextHandle() triggers
"Increment on non-numeric string is deprecated, use str_increment()
instead". This breaks projects that escalate deprecations to exceptions
when adding files without explicit handles (e.g. new Pdf([$a, $b])).
Use str_increment() on PHP 8.3+ and fall back to $char++ on older
versions, which the library still supports (php >= 8.1). The handle
sequence (A, B, ..., Z, AA, ...) is unchanged.1 parent f934183 commit 25dba2e
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
758 | 758 | | |
759 | 759 | | |
760 | 760 | | |
761 | | - | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
762 | 766 | | |
763 | 767 | | |
764 | 768 | | |
| |||
0 commit comments