Skip to content

Conversation

@kesselb
Copy link
Contributor

@kesselb kesselb commented Oct 8, 2024

Signed-off-by: Daniel Kesselberg <[email protected]>
@st3iny st3iny enabled auto-merge October 9, 2024 06:01
@st3iny st3iny linked an issue Oct 9, 2024 that may be closed by this pull request
@st3iny st3iny merged commit 2c448f6 into main Oct 9, 2024
@st3iny st3iny deleted the bump-psr-log branch October 9, 2024 06:11
vitormattos added a commit to vitormattos/mail that referenced this pull request Feb 1, 2025
…y folder

Downgrade `psr/log` from 3 to 2 reverting the PR: nextcloud#10237

The file `appinfo/info.xml` of app Mail is using a range of stable versions:
```xml
<nextcloud min-version="30" max-version="32" />
```

At branch `stable30` of `3rdparty` folder of server, is using the versoin 2.0 of `psr/log`

https://github.com/nextcloud/3rdparty/blob/stable30/composer.lock#L3296-L3297
```json
            "name": "psr/log",
            "version": "2.0.0",
```

that haven't the :void at interface:

https://github.com/nextcloud/3rdparty/blob/stable30/psr/log/src/LoggerAwareTrait.php#L22
```php
    public function setLogger(LoggerInterface $logger)
```
Look the code at `psr/log` repository:

https://github.com/php-fig/log/blob/2.0.0/src/LoggerAwareTrait.php#L22
```php
    public function setLogger(LoggerInterface $logger)
```

But at `composer.json` and at `composer-lock` file of mail, the used version is `3.0.2`:

`composer.json`
https://github.com/nextcloud/mail/blob/main/composer.json#L41
```json
		"psr/log": "^3.0.2",
```
`composer-lock`
https://github.com/nextcloud/mail/blob/main/composer.lock#L2274-L2275
```json
            "name": "psr/log",
            "version": "3.0.2",
```
And the signature of method setLogger at version 3.0.2 is: https://github.com/php-fig/log/blob/3.0.2/src/LoggerAwareTrait.php#L18
```php
    public function setLogger(LoggerInterface $logger): void
```

The different signature of this interface between `3rdparty` and mail generate error about inconsistent declaration of `Psr\Log\LoggerAwareInterface::setLogger(Psr\Log\LoggerInterface $logger)`.

Only is possible upgrade the version of psr/log when the `min-version` at `info.xml` file is equals to 31 because the bump only was made since stable31 of 3rdparty.

ref: LibreSign/libresign#4376

ref: LibreSign/libresign#4376

Signed-off-by: Vitor Mattos <[email protected]>
vitormattos added a commit to vitormattos/mail that referenced this pull request Feb 1, 2025
…y folder

Downgrade `psr/log` from 3 to 2 reverting the PR: nextcloud#10237

The file `appinfo/info.xml` of app Mail is using a range of stable versions:
```xml
<nextcloud min-version="30" max-version="32" />
```

At branch `stable30` of `3rdparty` folder of server, is using the versoin 2.0 of `psr/log`

https://github.com/nextcloud/3rdparty/blob/stable30/composer.lock#L3296-L3297
```json
            "name": "psr/log",
            "version": "2.0.0",
```

that haven't the :void at interface:

https://github.com/nextcloud/3rdparty/blob/stable30/psr/log/src/LoggerAwareTrait.php#L22
```php
    public function setLogger(LoggerInterface $logger)
```
Look the code at `psr/log` repository:

https://github.com/php-fig/log/blob/2.0.0/src/LoggerAwareTrait.php#L22
```php
    public function setLogger(LoggerInterface $logger)
```

But at `composer.json` and at `composer-lock` file of mail, the used version is `3.0.2`:

`composer.json`
https://github.com/nextcloud/mail/blob/main/composer.json#L41
```json
		"psr/log": "^3.0.2",
```
`composer-lock`
https://github.com/nextcloud/mail/blob/main/composer.lock#L2274-L2275
```json
            "name": "psr/log",
            "version": "3.0.2",
```
And the signature of method setLogger at version 3.0.2 is: https://github.com/php-fig/log/blob/3.0.2/src/LoggerAwareTrait.php#L18
```php
    public function setLogger(LoggerInterface $logger): void
```

The different signature of this interface between `3rdparty` and mail generate error about inconsistent declaration of `Psr\Log\LoggerAwareInterface::setLogger(Psr\Log\LoggerInterface $logger)`.

Only is possible upgrade the version of psr/log when the `min-version` at `info.xml` file is equals to 31 because the version 3.x of `psr/log` only was bumped at stable31 of 3rdparty.

ref: LibreSign/libresign#4376

Signed-off-by: Vitor Mattos <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

psr/log update in server/3rdparty broke ci for master

3 participants