Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf50d39e

Browse files
authored
fix: Run CI on PHP 8.3 and fix deprecation notices (#211)
* fix: Deprecation noticesRemoved deprecation notices for dynamic properties and implicit int conversions.* chore(ci): Run CI tests on 8.3.CI tests now run on 8.3 too, also readme now reflects support for 8.3.
1 parentbf0a110 commitf50d39e

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

‎.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
runs-on:ubuntu-latest
4444
strategy:
4545
matrix:
46-
php-versions:['7.3', '7.4', '8.0', '8.1', '8.2']
46+
php-versions:['7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
4747
steps:
4848
-uses:actions/checkout@v3
4949

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Contributions are very welcome. [Find out how to contribute](#contributing).
2828

2929
PHP-SVG is free of dependencies. All it needs is a PHP installation satisfying the following requirements:
3030

31-
* PHP version 7.3 or newer. This library is tested against all versions up to (and including) PHP 8.2.
31+
* PHP version 7.3 or newer. This library is tested against all versions up to (and including) PHP 8.3.
3232
* If you wish to load SVG files, or strings containing SVG code, you need to have the
3333
['simplexml' PHP extension](https://www.php.net/manual/en/book.simplexml.php).
3434
* If you wish to use the rasterization feature for converting SVGs to raster images (PNGs, JPEGs, ...), you need to

‎src/Rasterization/Renderers/MultiPassRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ private static function prepareColor(?string $color, SVGNode $context, float $sp
164164
$opacity =self::calculateTotalOpacity($context) *$specificOpacity;
165165
$a =127 -$opacity * (int) ($color[3] *127 /255);
166166

167-
return$rgb | ($a <<24);
167+
return$rgb | ((int)$a <<24);
168168
}
169169

170170
/**

‎tests/Rasterization/Path/ArcApproximatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public function testApproximateRadiusScaling()
143143
$this->assertEqualsWithDelta(20,$result[$n -1][0],0.1);
144144
$this->assertEqualsWithDelta(10,$result[$n -1][1],0.1);
145145
// test some point roughly in the middle
146-
$this->assertEqualsWithDelta(15,$result[$n /2][0],1);
147-
$this->assertEqualsWithDelta(15,$result[$n /2][1],1);
146+
$this->assertEqualsWithDelta(15,$result[(int)($n /2)][0],1);
147+
$this->assertEqualsWithDelta(15,$result[(int)($n /2)][1],1);
148148
}
149149
}

‎tests/Reading/SVGReaderTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ class SVGReaderTest extends \PHPUnit\Framework\TestCase
1717
private$xmlUnknown;
1818
private$xmlValue;
1919
private$xmlEntities;
20+
private$xmlNoXmlns;
21+
private$xmlOnlyOtherXmlns;
2022

2123
publicfunctionsetUp():void
2224
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp