File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/PaymentPart/Output/FpdfOutput
tests/PaymentPart/Output/FpdfOutput Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ private function addSwissQrCodeImage(): void
100
100
$ yPosQrCode = 209.5 + $ this ->offsetY ;
101
101
$ xPosQrCode = 67 + $ this ->offsetX ;
102
102
103
- if (" 1 " === ini_get ('allow_url_fopen ' )) {
103
+ if (( bool ) ini_get ('allow_url_fopen ' )) {
104
104
$ this ->fpdf ->Image (
105
105
$ qrCode ->getDataUri ($ this ->getQrCodeImageFormat ()),
106
106
$ xPosQrCode ,
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public function testItThrowsSvgNotSupportedException(): void
80
80
81
81
public function testItThrowsUnsupportedEnvironmentException (): void
82
82
{
83
- if (ini_get ('allow_url_fopen ' ) === " 1 " ) {
83
+ if (( bool ) ini_get ('allow_url_fopen ' )) {
84
84
$ this ->markTestSkipped ("This test only works in hardened environment. " );
85
85
}
86
86
You can’t perform that action at this time.
0 commit comments