Skip to content

Commit

Permalink
Fix linter and phpstan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
PineappleIOnic committed Aug 27, 2024
1 parent df00d6e commit 3bead6d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Database/Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ abstract public function getSupportForUpdateLock(): bool;

/**
* Is Attribute Resizing Supported?
*
*
* @return bool
*/
abstract public function getSupportForAttributeResizing(): bool;
Expand Down
2 changes: 1 addition & 1 deletion src/Database/Adapter/SQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public function getSupportForUpdateLock(): bool

/**
* Is Attribute Resizing Supported?
*
*
* @return bool
*/
public function getSupportForAttributeResizing(): bool
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/Adapter/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -5829,9 +5829,9 @@ public function testUpdateAttributeRename(): void
}
}

function createRandomString(int $length = 10): string
public function createRandomString(int $length = 10): string
{
return \substr(\bin2hex(\random_bytes(\intval(($length + 1) / 2))), 0, $length);
return \substr(\bin2hex(\random_bytes(\max(1, \intval(($length + 1) / 2)))), 0, $length);
}

public function updateStringAttributeSize(int $originalSize, int $newSize, Document $document): Document
Expand Down

0 comments on commit 3bead6d

Please sign in to comment.