Skip to content

Commit 848079d

Browse files
committed
php compatiblilty check
1 parent c1736ae commit 848079d

File tree

7 files changed

+22
-13
lines changed

7 files changed

+22
-13
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
php-version: ["8.1", "8.2", "8.3", "8.4"]
26+
php-version: ["8.1", "8.2", "8.3", "8.4", "8.5"]
2727
experimental: [false]
2828
os: [ubuntu-latest]
2929
coverage-extension: [pcov]

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ COMPOSER=$(PHP) -d "apc.enable_cli=0" $(shell which composer)
8484
PHPDOC=$(shell which phpDocumentor)
8585

8686
# phpstan version
87-
PHPSTANVER=2.1.32
87+
PHPSTANVER=2.1.33
8888

8989
# --- MAKE TARGETS ---
9090

@@ -214,7 +214,7 @@ endif
214214
# Test source code for coding standard violations
215215
.PHONY: lint
216216
lint:
217-
./vendor/bin/phpcs --ignore="\./vendor/" --standard=phpcs.xml src test
217+
./vendor/bin/phpcs --standard=phpcs.xml
218218
./vendor/bin/phpmd src text codesize,unusedcode,naming,design --exclude */vendor/*
219219
./vendor/bin/phpmd test text unusedcode,naming,design --exclude */vendor/*
220220
php -r 'exit((int)version_compare(PHP_MAJOR_VERSION, "7", ">"));' || ./vendor/phpstan.phar analyse

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.1
1+
2.4.2

composer.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,17 @@
2424
"tecnickcom/tc-lib-color": "^2.3",
2525
"tecnickcom/tc-lib-pdf-encrypt": "^2.1"
2626
},
27+
"config": {
28+
"allow-plugins": {
29+
"dealerdirect/phpcodesniffer-composer-installer": true
30+
}
31+
},
2732
"require-dev": {
2833
"pdepend/pdepend": "2.16.2",
2934
"phpmd/phpmd": "2.15.0",
3035
"phpunit/phpunit": "12.4.4 || 11.5.44 || 10.5.58",
31-
"squizlabs/php_codesniffer": "4.0.1"
36+
"squizlabs/php_codesniffer": "4.0.1",
37+
"phpcompatibility/php-compatibility": "^10.0.0@dev"
3238
},
3339
"autoload": {
3440
"psr-4": {

phpcs.xml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<?xml version="1.0"?>
2-
<ruleset name="backward-compatibility">
3-
<description>PSR-12 for PHP less than 7.1</description>
4-
<rule ref="PSR12">
5-
<exclude name="PSR12.Properties.ConstantVisibility"/>
6-
</rule>
2+
<ruleset name="PHP-compatibility">
3+
<description>Test code for compatibility with supported PHP versions</description>
4+
<rule ref="PHPCompatibility"/>
5+
<config name="testVersion" value="8.1-8.5"/>
6+
<file>src</file>
7+
<file>test</file>
8+
<exclude-pattern>./vendor/*</exclude-pattern>
9+
<arg value="ps"/>
710
</ruleset>

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.3), php-tecnickcom-tc-lib-pdf-encrypt (<< 3.0.0), php-tecnickcom-tc-lib-pdf-encrypt (>= 2.1.25), ${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.2), php-tecnickcom-tc-lib-pdf-encrypt (<< 3.0.0), php-tecnickcom-tc-lib-pdf-encrypt (>= 2.1.26), ${misc:Depends}
1414
Description: PHP PDF Graph Library
1515
PHP library containing PDF graphic and geometric methods.

resources/rpm/rpm.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ BuildArch: noarch
1919
Requires: php(language) >= 8.1.0
2020
Requires: php-zlib
2121
Requires: php-composer(%{c_vendor}/tc-lib-color) < 3.0.0
22-
Requires: php-composer(%{c_vendor}/tc-lib-color) >= 2.3.3
22+
Requires: php-composer(%{c_vendor}/tc-lib-color) >= 2.3.2
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.25
24+
Requires: php-composer(%{c_vendor}/tc-lib-pdf-encrypt) >= 2.1.26
2525

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

0 commit comments

Comments
 (0)