Skip to content

Commit

Permalink
Fix PHP 8.2 deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaasuni committed Sep 6, 2023
1 parent 95b8d71 commit aa90f10
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.7
3.1.8
2 changes: 1 addition & 1 deletion resources/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ Vcs-Git: https://github.com/~#VENDOR#~/~#PROJECT#~.git
Package: ~#PKGNAME#~
Provides: php-~#PROJECT#~
Architecture: all
Depends: php (>= 5.4.0), php-date, php-zip, php-tecnickcom-tc-lib-color (<< 2.0.0), php-tecnickcom-tc-lib-color (>= 1.14.25), php-tecnickcom-tc-lib-pdf-encrypt (<< 2.0.0), php-tecnickcom-tc-lib-pdf-encrypt (>= 1.6.21), ${misc:Depends}
Depends: php (>= 5.4.0), php-date, php-zip, php-tecnickcom-tc-lib-color (<< 2.0.0), php-tecnickcom-tc-lib-color (>= 1.14.26), php-tecnickcom-tc-lib-pdf-encrypt (<< 2.0.0), php-tecnickcom-tc-lib-pdf-encrypt (>= 1.6.22), ${misc:Depends}
Description: PHP PDF Page Library
PHP library containing PDF page formats and definitions.
4 changes: 2 additions & 2 deletions resources/rpm/rpm.spec
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ Requires: php(language) >= 5.4.0
Requires: php-date
Requires: php-zlib
Requires: php-composer(%{c_vendor}/tc-lib-color) < 2.0.0
Requires: php-composer(%{c_vendor}/tc-lib-color) >= 1.14.25
Requires: php-composer(%{c_vendor}/tc-lib-color) >= 1.14.26
Requires: php-composer(%{c_vendor}/tc-lib-pdf-encrypt) < 2.0.0
Requires: php-composer(%{c_vendor}/tc-lib-pdf-encrypt) >= 1.6.21
Requires: php-composer(%{c_vendor}/tc-lib-pdf-encrypt) >= 1.6.22

Provides: php-composer(%{c_vendor}/%{gh_project}) = %{version}
Provides: php-%{gh_project} = %{version}
Expand Down
6 changes: 3 additions & 3 deletions test/TestUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,23 @@ class TestUtil extends TestCase
{
public function bcAssertEqualsWithDelta($expected, $actual, $delta = 0.01, $message = '')
{
if (\is_callable(['parent', 'assertEqualsWithDelta'])) {
if (\is_callable([self::class, 'assertEqualsWithDelta'])) {
return parent::assertEqualsWithDelta($expected, $actual, $delta, $message);
}
return $this->assertEquals($expected, $actual, $message, $delta);
}

public function bcExpectException($exception)
{
if (\is_callable(['parent', 'expectException'])) {
if (\is_callable([self::class, 'expectException'])) {
return parent::expectException($exception);
}
return parent::setExpectedException($exception);
}

public function bcAssertStringContainsString($needle, $haystack)
{
if (\is_callable(['parent', 'assertStringContainsString'])) {
if (\is_callable([self::class, 'assertStringContainsString'])) {
return parent::assertStringContainsString($needle, $haystack);
}
return parent::assertContains($needle, $haystack);
Expand Down

0 comments on commit aa90f10

Please sign in to comment.