Fix analyze regressions in PHPStan cleanup

This commit is contained in:
Chirag Aggarwal
2026-04-01 11:00:26 +05:30
parent f2ea0b9b48
commit 983adf3ffd
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ namespace Appwrite\Event\Message;
use Utopia\Database\Document;
class Usage extends Base
final class Usage extends Base
{
/**
* @param Document $project
@@ -1331,7 +1331,7 @@ trait MigrationsBase
]
);
$this->assertEventually(function () use ($missingColumn, $databaseId, $tableId) {
$this->assertEventually(function () use ($missingColumn) {
$migrationId = $missingColumn['body']['$id'];
$migration = $this->client->call(Client::METHOD_GET, '/migrations/'.$migrationId, array_merge([
'content-type' => 'application/json',
@@ -1363,7 +1363,7 @@ trait MigrationsBase
]
);
$this->assertEventually(function () use ($missingColumn, $databaseId, $tableId) {
$this->assertEventually(function () use ($missingColumn) {
$migrationId = $missingColumn['body']['$id'];
$migration = $this->client->call(Client::METHOD_GET, '/migrations/'.$migrationId, array_merge([
'content-type' => 'application/json',
@@ -1395,7 +1395,7 @@ trait MigrationsBase
]
);
$this->assertEventually(function () use ($irrelevantColumn, $databaseId, $tableId) {
$this->assertEventually(function () use ($irrelevantColumn) {
$migrationId = $irrelevantColumn['body']['$id'];
$migration = $this->client->call(Client::METHOD_GET, '/migrations/'.$migrationId, array_merge([
'content-type' => 'application/json',
@@ -1422,7 +1422,7 @@ trait MigrationsBase
]
);
$this->assertEventually(function () use ($migration, $databaseId, $tableId) {
$this->assertEventually(function () use ($migration) {
$migrationId = $migration['body']['$id'];
$migration = $this->client->call(Client::METHOD_GET, '/migrations/'.$migrationId, array_merge([
'content-type' => 'application/json',
@@ -1464,7 +1464,7 @@ trait MigrationsBase
]
);
$this->assertEventually(function () use ($migration, $databaseId, $tableId) {
$this->assertEventually(function () use ($migration) {
$migrationId = $migration['body']['$id'];
$migration = $this->client->call(Client::METHOD_GET, '/migrations/'.$migrationId, array_merge([
'content-type' => 'application/json',
@@ -4018,7 +4018,7 @@ trait MigrationsBase
]
);
$this->assertEventually(function () use ($migration, $databaseId, $tableId) {
$this->assertEventually(function () use ($migration) {
$migrationId = $migration['body']['$id'];
$migration = $this->client->call(Client::METHOD_GET, '/migrations/'.$migrationId, array_merge([
'content-type' => 'application/json',