Skip to content

Commit

Permalink
Fix PhpStan errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Aug 1, 2021
1 parent cbf0d96 commit c0acd24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Lock.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class Lock
private static ?TransactionProvider $transactionProvider = null;


public static function wait(?string $transactionName = null, int $maxExecutionTimeMs = 30000, $ttl = 500): void
public static function wait(?string $transactionName = null, int $maxExecutionTimeMs = 30000, int $ttl = 500): void
{
$startTime = microtime(true);
while (true) {
Expand Down
2 changes: 1 addition & 1 deletion src/Transaction/FileTransactionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private function getLastError(): string
$message = ini_get('html_errors')
? html_entity_decode(strip_tags($message), ENT_QUOTES | ENT_HTML5, 'UTF-8')
: $message;
$message = preg_replace('#^\w+\(.*?\): #', '', $message);
$message = (string) preg_replace('#^\w+\(.*?\): #', '', $message);

return $message;
}
Expand Down

0 comments on commit c0acd24

Please # to comment.