Skip to content

Commit

Permalink
Fix issues reported by Rector
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo-goncalves-kununu committed Jan 21, 2025
1 parent 0b4b52b commit 2408350
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:

build:
needs: checks
name: Tests
name: PHPUnit
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
4 changes: 2 additions & 2 deletions tests/Executor/ConnectionExecutorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

final class ConnectionExecutorTest extends AbstractExecutorTestCase
{
private const SQL_1 = 'SET FOREIGN_KEY_CHECKS=0';
private const SQL_2 = 'SET FOREIGN_KEY_CHECKS=1';
private const string SQL_1 = 'SET FOREIGN_KEY_CHECKS=0';
private const string SQL_2 = 'SET FOREIGN_KEY_CHECKS=1';

private MockObject&Connection $connection;

Expand Down
2 changes: 1 addition & 1 deletion tests/Executor/ElasticsearchExecutorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

final class ElasticsearchExecutorTest extends AbstractExecutorTestCase
{
private const INDEX_NAME = 'my_index';
private const string INDEX_NAME = 'my_index';

private MockObject&Client $client;

Expand Down
4 changes: 2 additions & 2 deletions tests/Executor/NonTransactionalConnectionExecutorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

final class NonTransactionalConnectionExecutorTest extends AbstractExecutorTestCase
{
private const SQL_1 = 'SET FOREIGN_KEY_CHECKS=0';
private const SQL_2 = 'SET FOREIGN_KEY_CHECKS=1';
private const string SQL_1 = 'SET FOREIGN_KEY_CHECKS=0';
private const string SQL_2 = 'SET FOREIGN_KEY_CHECKS=1';

private MockObject&Connection $connection;

Expand Down
2 changes: 1 addition & 1 deletion tests/Executor/OpenSearchExecutorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

final class OpenSearchExecutorTest extends AbstractExecutorTestCase
{
private const INDEX_NAME = 'my_index';
private const string INDEX_NAME = 'my_index';

private MockObject&Client $client;

Expand Down
2 changes: 1 addition & 1 deletion tests/TestFixtures/ElasticsearchFixture3.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

final class ElasticsearchFixture3 extends ElasticsearchFixture
{
public const DOCUMENTS = [
public const array DOCUMENTS = [
[
'id' => 1,
'name' => 'Document 1',
Expand Down

0 comments on commit 2408350

Please sign in to comment.