Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"dama/doctrine-test-bundle": "^8.2",
"deptrac/deptrac": "^4.7",
"ibexa/code-style": "~2.0.0",
"ibexa/phpstan": "~6.0.x-dev",
"ibexa/rector": "~6.0.x-dev",
"ibexa/test-core": "~6.0.x-dev",
"phpstan/phpstan": "^2.0",
Expand Down
3 changes: 2 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
includes:
- phpstan-baseline.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/ibexa/phpstan/extension.neon
- phpstan-baseline.neon

parameters:
level: 8
Expand Down
2 changes: 1 addition & 1 deletion tests/bundle/Gateway/DoctrineSchemaMetadataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ final class DoctrineSchemaMetadataTest extends TestCase
protected function setUp(): void
{
$this->metadata = new DoctrineSchemaMetadata(
$this->createStub(Connection::class),
self::createStub(Connection::class),
'stdClass',
'std_class_table',
[
Expand Down
2 changes: 1 addition & 1 deletion tests/bundle/Gateway/ExpressionVisitorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public function testFieldNotFound(): void
public function testFieldFromMissingRelationship(): void
{
/** @var \Exception $exception */
$exception = $this->createStub(RuntimeMappingExceptionInterface::class);
$exception = self::createStub(RuntimeMappingExceptionInterface::class);
$this->schemaMetadata
->expects(self::once())
->method('getRelationshipByForeignProperty')
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/Gateway/DoInsertIdentifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private function createGateway(array $identifierColumns): IdentifierProbeGateway
{
return new IdentifierProbeGateway(
$this->connection,
$this->createStub(DoctrineSchemaMetadataRegistryInterface::class),
self::createStub(DoctrineSchemaMetadataRegistryInterface::class),
$identifierColumns,
);
}
Expand Down
4 changes: 2 additions & 2 deletions tests/lib/Gateway/RelationshipTypeStrategyRegistryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function testHandleRelationshipTypeThrowsRuntimeMappingException(): void
$this->expectExceptionMessage('Unhandled relationship metadata. Expected one of "Ibexa\Contracts\CorePersistence\Gateway\DoctrineRelationship", "Ibexa\Contracts\CorePersistence\Gateway\DoctrineOneToManyRelationship". Received "Ibexa\Tests\CorePersistence\Stub\InvalidDoctrineRelationship"');

$this->registry->handleRelationshipType(
new QueryBuilder($this->createStub(Connection::class)),
new QueryBuilder(self::createStub(Connection::class)),
new InvalidDoctrineRelationship(),
'root_table_alias',
'from_table',
Expand All @@ -47,7 +47,7 @@ public function testHandleRelationshipTypeQueryThrowsRuntimeMappingException():

$this->registry->handleRelationshipTypeQuery(
new InvalidDoctrineRelationship(),
$this->createStub(QueryBuilder::class),
self::createStub(QueryBuilder::class),
'related_class_id_column',
'related_class_id_column_0'
);
Expand Down
Loading