Skip to content

Commit

Permalink
Add support for PHP 8.4 and remove PHP 8.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Pichler authored and lentex committed Dec 5, 2024
1 parent 22773b8 commit 67db966
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [ "8.0", "8.1", "8.2", "8.3" ]
php: [ "8.1", "8.2", "8.3", "8.4" ]

runs-on: ubuntu-latest
name: PHP@${{ matrix.php }}
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.2.0] - 2024-12-05
### Added
- Support for PHP 8.4

### Removed
- Support for PHP 8.0

## [3.1.0] - 2024-02-05
### Added
- Support for PHP 8.3
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
],
"require": {
"php": "8.0.* | 8.1.* | 8.2.* | 8.3.*",
"php": "8.1.* | 8.2.* | 8.3.* | 8.4.*",
"tecnickcom/tcpdf": "^6.3"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion tcpi/tcpdi.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ public function _putformxobjects()
$c = cos($angle);
$s = sin($angle);

switch($tpl['_rotationAngle']) {
switch ($tpl['_rotationAngle']) {
case -90:
$tx = -$tpl['box']['lly'];
$ty = $tpl['box']['urx'];
Expand Down
2 changes: 1 addition & 1 deletion tcpi/tcpdi_parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ protected function decodeXrefStream($startxref, $xref = array())
}
}
} elseif ($filltrailer) {
switch($key) {
switch ($key) {
case '/Size':
case '/Root':
case '/Info':
Expand Down

0 comments on commit 67db966

Please sign in to comment.