Skip to content

Params of TypeArray are optional#1603

Open
alexander-schranz wants to merge 1 commit into
schmittjoh:masterfrom
alexander-schranz:patch-2
Open

Params of TypeArray are optional#1603
alexander-schranz wants to merge 1 commit into
schmittjoh:masterfrom
alexander-schranz:patch-2

Conversation

@alexander-schranz
Copy link
Copy Markdown
Contributor

@alexander-schranz alexander-schranz commented May 30, 2025

Q A
Bug fix? yes
New feature? no
Doc updated no
BC breaks? no
Deprecations? no
Tests pass? no
Fixed tickets #...
License MIT

The params where at current state not required and so should be marked as optional. Stumbled over this after getting PHPStan error in @sulu code base.

Related: #1597

@scyzoryck
Copy link
Copy Markdown
Collaborator

Hi!
I'm sorry for the changes. Internally JMS Serializer always defines params and never checks for its existence. Not passing it may cause some Undefined array key errors - see: #1596
Would it possible to add params key with empty array, to Sulu codebase, please? It seems like there is only one its usage.

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