Skip to content

Commit

Permalink
ci: fix build with prime < 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent4vx committed Mar 5, 2024
1 parent ba294c1 commit 8c3b4a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/_files/TestEntityMapper.php
Expand Up @@ -31,7 +31,10 @@ public function buildRelations($builder): void
{
$builder->on('relation')->belongsTo(RelationEntity::class, 'relation.id');
$builder->on('r2')->belongsTo(TestEntity::class, 'value');
$builder->on('noop')->null()->detached();

if (method_exists($builder, 'null')) {
$builder->on('noop')->null()->detached();
}
}

public function scopes(): array
Expand Down

0 comments on commit 8c3b4a5

Please sign in to comment.