Skip to content

Commit

Permalink
PHP 8.3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
glo71317 committed Feb 1, 2024
1 parent e9efd8b commit 0e95e6d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapter/Platform/Sql92.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ public function quoteValue($value)
'Attempting to quote a value without specific driver level support'
. ' can introduce security vulnerabilities in a production environment.'
);
return '\'' . addcslashes($value, "\x00\n\r\\'\"\x1a") . '\'';
return '\'' . addcslashes(isset($value) ? $value : '', "\x00\n\r\\'\"\x1a") . '\'';

Check failure on line 27 in src/Adapter/Platform/Sql92.php

View workflow job for this annotation

GitHub Actions / QA Checks (PHPCodeSniffer [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-ac...

Use null coalesce operator instead of ternary operator.
}
}
1 change: 1 addition & 0 deletions test/unit/Adapter/Driver/IbmDb2/StatementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

include __DIR__ . '/TestAsset/Db2Functions.php';

#[\AllowDynamicProperties]

Check failure on line 15 in test/unit/Adapter/Driver/IbmDb2/StatementTest.php

View workflow job for this annotation

GitHub Actions / QA Checks (PHPCodeSniffer [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-ac...

Class \AllowDynamicProperties should not be referenced via a fully qualified name, but via a use statement.
class StatementTest extends TestCase
{
/** @var Statement */
Expand Down
1 change: 1 addition & 0 deletions test/unit/RowGateway/RowGatewayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;

#[\AllowDynamicProperties]

Check failure on line 15 in test/unit/RowGateway/RowGatewayTest.php

View workflow job for this annotation

GitHub Actions / QA Checks (PHPCodeSniffer [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-ac...

Class \AllowDynamicProperties should not be referenced via a fully qualified name, but via a use statement.
class RowGatewayTest extends TestCase
{
/** @var Adapter&MockObject */
Expand Down
1 change: 1 addition & 0 deletions test/unit/Sql/Platform/Mysql/SelectDecoratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use LaminasTest\Db\TestAsset\TrustingMysqlPlatform;
use PHPUnit\Framework\TestCase;

#[\AllowDynamicProperties]

Check failure on line 20 in test/unit/Sql/Platform/Mysql/SelectDecoratorTest.php

View workflow job for this annotation

GitHub Actions / QA Checks (PHPCodeSniffer [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-ac...

Class \AllowDynamicProperties should not be referenced via a fully qualified name, but via a use statement.
class SelectDecoratorTest extends TestCase
{
/**
Expand Down
1 change: 1 addition & 0 deletions test/unit/TableGateway/AbstractTableGatewayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use PHPUnit\Framework\TestCase;
use ReflectionClass;

#[\AllowDynamicProperties]

Check failure on line 22 in test/unit/TableGateway/AbstractTableGatewayTest.php

View workflow job for this annotation

GitHub Actions / QA Checks (PHPCodeSniffer [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-ac...

Class \AllowDynamicProperties should not be referenced via a fully qualified name, but via a use statement.
class AbstractTableGatewayTest extends TestCase
{
/** @var Generator */
Expand Down

0 comments on commit 0e95e6d

Please sign in to comment.