fixed php stan issue

This commit is contained in:
ArnabChatterjee20k
2026-03-19 17:10:45 +05:30
parent feddd77066
commit 331fb7f689
4 changed files with 2 additions and 9 deletions
-6
View File
@@ -210,12 +210,6 @@ parameters:
count: 1
path: src/Appwrite/Auth/Validator/PersonalData.php
-
message: '#^PHPDoc tag @var above a method has no effect\.$#'
identifier: varTag.misplaced
count: 1
path: src/Appwrite/Databases/TransactionState.php
-
message: '#^PHPDoc tag @param has invalid value \(DeviceDetector\)\: Unexpected token "\\n ", expected variable at offset 32 on line 2$#'
identifier: phpDoc.parseError
+1 -1
View File
@@ -56,7 +56,7 @@ class Migrations extends Action
protected Document $sourceProject;
/**
* @var callable(Document $database, ?Document $projectDocument = null): Database
* @var callable
*/
protected mixed $getDatabasesDB;
@@ -76,7 +76,6 @@ class HeadersTest extends TestCase
];
$this->assertFalse($this->object->isValid($headers));
// @phpstan-ignore-next-line
$headers = [
null => 'value',
];
@@ -16,7 +16,7 @@ class MessagingChannelsTest extends TestCase
*/
public $connectionsPerChannel = 10;
public Realtime $realtime;
public ?Realtime $realtime = null;
public $connectionsCount = 0;
public $connectionsAuthenticated = 0;
public $connectionsGuest = 0;