Skip to content

Allow Symfony 7.*, use psr/log:^3.0 with newer Monolog#95

Merged
pepamartinec merged 3 commits into
masterfrom
pepa_PAT-221_logger
Apr 24, 2025
Merged

Allow Symfony 7.*, use psr/log:^3.0 with newer Monolog#95
pepamartinec merged 3 commits into
masterfrom
pepa_PAT-221_logger

Conversation

@pepamartinec
Copy link
Copy Markdown
Contributor

@pepamartinec pepamartinec commented Apr 24, 2025

  • uprava defaultniho error handlingu, aby nekonvertoval E_DEPRECATED na ErrorException - v PHP 8.4 se toho objevilo celkem dost
    • tady jsem zaroven pridal upravu error_reporting do sync akci, aby se tam deprecation vubec nereportovalo, protoze by to rozbilo output sync akce
  • update na psr/log: ^3.0 (co umozni instalacni monolog/monolog: ^3.0), nektery libs (napr. GCP SDK) uz to zacinaji vyzadovat
  • povoleni Symfony 7.x

Chtel jsem to udelat +/- kompatibilni, ale kdyz zpetne vidim soupis zmen, asi bych to vydal jako major verzi?

Comment thread .github/workflows/push.yml Outdated
Comment on lines +21 to +22
- phpVersion: 8.1
symfonyVersion: 7.2.*
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Symfony ^7.0 vyzaduje PHP >=8.2

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a tak bych asi stejně dropnul 8.1, 8.2 ne?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

8.1 muze byt, ale 8.2 mame AFAIK stale na vetsine services.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nj, ale tam se zase nepoužívá php-component, ale fair enough koukám, že vlastně i 8.1 je pořád ještě LTS

Comment thread phpstan.neon
Comment on lines +5 to +6
- message: '#Class Keboola\\Component\\Logger extends @final class Monolog\\Logger.#'
reportUnmatched: false
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deje se jen na novejsich verzich Monologu a je to delany pres @final v PHPdoc, ne final keyword pred class, takze nejjednodussi prozatim ignorovat.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, no to nám zatopili zase :)

@pepamartinec pepamartinec merged commit 80a9b48 into master Apr 24, 2025
9 checks passed
@pepamartinec pepamartinec deleted the pepa_PAT-221_logger branch April 24, 2025 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants