Skip to content

fix(Storage): Implicitly nullable parameters are deprecated#469

Merged
bartmcleod merged 7 commits intolexik:masterfrom
shakaran:fix/implicit-nullable-parameters-deprecated-storage
Apr 14, 2025
Merged

fix(Storage): Implicitly nullable parameters are deprecated#469
bartmcleod merged 7 commits intolexik:masterfrom
shakaran:fix/implicit-nullable-parameters-deprecated-storage

Conversation

@shakaran
Copy link
Contributor

@shakaran shakaran commented Apr 10, 2025

In PHP 8.4 this PR fix deprecated errors like:

Deprecated: Lexik\Bundle\TranslationBundle\Storage\StorageInterface::getTransUnitList(): Implicitly marking parameter $filters as nullable is deprecated, the explicit nullable type must be used instead

Deprecated: Lexik\Bundle\TranslationBundle\Entity\TransUnitRepository::addTranslationFilter(): Implicitly marking parameter $filters as nullable is deprecated, the explicit nullable type must be used instead

@bartmcleod bartmcleod merged commit 572b094 into lexik:master Apr 14, 2025
3 checks passed
shakaran added a commit to shakaran/LexikTranslationBundle that referenced this pull request Apr 15, 2025
* fix(Storage): Implicitly nullable parameters are deprecated

* feat: update return types and arguments with warnings for php 8.4

* fix: import short namespaces and null applied

* fix: duplicate use of transunit

* fix: bump mongo extension in recent release 2.0.0 for PHP 8.4

* fix: allow several version of mongo
@shakaran shakaran deleted the fix/implicit-nullable-parameters-deprecated-storage branch April 20, 2025 02:04
bartmcleod pushed a commit that referenced this pull request Jun 24, 2025
* fix: allow load base translator class from Symfony 7.1

* fix: missing line for content

* fix(Storage): Implicitly nullable parameters are deprecated (#469)

* fix(Storage): Implicitly nullable parameters are deprecated

* feat: update return types and arguments with warnings for php 8.4

* fix: import short namespaces and null applied

* fix: duplicate use of transunit

* fix: bump mongo extension in recent release 2.0.0 for PHP 8.4

* fix: allow several version of mongo

* fix: add base translator to test

* fix: test command and translator test

* fix: update mocks and base services

* fix: update missing formatter

* feat: improve return type objects, implicit nullable and short call with doctrine (#473)

* feat: improve return type objects, implicit nullable and short call with doctrine

* fix: declaration method addTranslation with interface

* feat: improve declaration for TransUnit

* fix: update storage interfaces

* fix: improve declaration for entities, manager and model

* fix: more declarations missing

* fix: translation interface in getter

* fix: add missing empty null in interface

* fix: typos declarations

* fix: add more check for storages

* fix: for mongo db type documents

* fix: add compatible call in transunit

* fix: resolve createat as string in mongo

* fix: test empty key and domain

* fix: more declarations match

* feat: use short class for mongo

* fix: update hasTranslation as string for getLocale

* fix: allow return null in add translation

* fix: typo

* feat: implement dockerization with documentation for testing (#474)

* feat: implement dockerization with documentation for testing

* feat: add Dockerfile and docker compose

* feat: improve abtract doctrine storage. Superseed #468 (#475)

* Add yaml extension support (#462)

* feat: add missing import

* feat: add param type import

* feat: import file interface in storage interface

* feat: update type for hydrator single column

* feat: use symfony translator as base translator

* feat: update test for new base translator

* fix: wrong typo in testing

* fix: remove base translator since not needed anymore

* fix: change order loader ids

* fix: prevent no initialize options by default

* fix: missing init vars

* fix: improve with equals canonicalizing asserts

* fix: duplicate insert of messages

* fix: remove useless comment

---------

Co-authored-by: SosthenG <pro@sosthen.fr>
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