Skip to content

[Lock] Too few arguments to function Symfony\Component\Lock\Store\DoctrineDbalPostgreSqlStore::putOffExpiration() #44535

@metaer

Description

@metaer

Symfony version(s) affected

5.4.1

Description

\Symfony\Component\Lock\Store\PostgreSqlStore::putOffExpiration calls \Symfony\Component\Lock\Store\DoctrineDbalPostgreSqlStore::putOffExpiration and passes only one argument, but two arguments are required.

if (isset($this->dbalStore)) {
    $this->dbalStore->putOffExpiration($key);

    return;
}
public function putOffExpiration(Key $key, float $ttl)

How to reproduce

Use PostgreSqlStore and call $lock->acquire(true);

Possible Solution

No response

Additional Context

    "class": "ArgumentCountError",
    "message": "Too few arguments to function Symfony\\Component\\Lock\\Store\\DoctrineDbalPostgreSqlStore::putOffExpiration(), 1 passed in vendor/symfony/lock/Store/PostgreSqlStore.php on line 146 and exactly 2 expected",
    "code": 0,
    "file": "vendor/symfony/lock/Store/DoctrineDbalPostgreSqlStore.php:104",
    "trace": [
        "vendor/symfony/lock/Store/PostgreSqlStore.php:146",
        "vendor/symfony/lock/Lock.php:205",
        "vendor/symfony/lock/Lock.php:102",

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions