Skip to content

Commit 9e844b0

Browse files
committed
update dependencies
1 parent b035957 commit 9e844b0

5 files changed

Lines changed: 9 additions & 8 deletions

File tree

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ clean:
141141
# Fix code style violations
142142
.PHONY: codefix
143143
codefix:
144+
./vendor/bin/phpcbf --config-set ignore_non_auto_fixable_on_exit 1
144145
./vendor/bin/phpcbf --ignore="\./vendor/" --standard=psr12 src test
145146

146147
# Build a DEB package for Debian-like Linux distributions

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.10
1+
2.4.11

resources/debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ Vcs-Git: https://github.com/~#VENDOR#~/~#PROJECT#~.git
1010
Package: ~#PKGNAME#~
1111
Provides: php-~#PROJECT#~
1212
Architecture: all
13-
Depends: php (>= 8.1.0), php-zip, php-tecnickcom-tc-lib-color (<< 3.0.0), php-tecnickcom-tc-lib-color (>= 2.3.9), php-tecnickcom-tc-lib-pdf-encrypt (<< 3.0.0), php-tecnickcom-tc-lib-pdf-encrypt (>= 2.1.33), ${misc:Depends}
13+
Depends: php (>= 8.1.0), php-zip, php-tecnickcom-tc-lib-color (<< 3.0.0), php-tecnickcom-tc-lib-color (>= 2.3.9), php-tecnickcom-tc-lib-pdf-encrypt (<< 3.0.0), php-tecnickcom-tc-lib-pdf-encrypt (>= 2.1.34), ${misc:Depends}
1414
Description: PHP PDF Graph Library
1515
PHP library containing PDF graphic and geometric methods.

resources/rpm/rpm.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Requires: php-zlib
2121
Requires: php-composer(%{c_vendor}/tc-lib-color) < 3.0.0
2222
Requires: php-composer(%{c_vendor}/tc-lib-color) >= 2.3.9
2323
Requires: php-composer(%{c_vendor}/tc-lib-pdf-encrypt) < 3.0.0
24-
Requires: php-composer(%{c_vendor}/tc-lib-pdf-encrypt) >= 2.1.33
24+
Requires: php-composer(%{c_vendor}/tc-lib-pdf-encrypt) >= 2.1.34
2525

2626
Provides: php-composer(%{c_vendor}/%{gh_project}) = %{version}
2727
Provides: php-%{gh_project} = %{version}

src/Gradient.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ public function getCoonsPatchMesh(
638638
$bpcd = 65535; // 16 bits per coordinate
639639

640640
foreach ($patch_array as $par) {
641-
$this->gradients[$ngr]['stream'] .= \chr($par['f']); // start with the edge flag as 8 bit
641+
$this->gradients[$ngr]['stream'] .= \chr($par['f'] & 0xFF); // start with the edge flag as 8 bit
642642
foreach ($par['points'] as $point) {
643643
// each point as 16 bit
644644
$point = \floor(
@@ -650,14 +650,14 @@ public function getCoonsPatchMesh(
650650
)
651651
)
652652
);
653-
$this->gradients[$ngr]['stream'] .= \chr((int) \floor($point / 256)) . \chr((int) \floor($point % 256));
653+
$this->gradients[$ngr]['stream'] .= \chr((int) \floor($point / 256) & 0xFF) . \chr((int) \floor($point % 256) & 0xFF);
654654
}
655655

656656
foreach ($par['colors'] as $color) {
657657
// each color component as 8 bit
658-
$this->gradients[$ngr]['stream'] .= \chr((int) \floor($color['red'] * 255))
659-
. \chr((int) \floor($color['green'] * 255))
660-
. \chr((int) \floor($color['blue'] * 255));
658+
$this->gradients[$ngr]['stream'] .= \chr((int) \floor($color['red'] * 255) & 0xFF)
659+
. \chr((int) \floor($color['green'] * 255) & 0xFF)
660+
. \chr((int) \floor($color['blue'] * 255) & 0xFF);
661661
}
662662
}
663663

0 commit comments

Comments
 (0)