Skip to content

DataPersister supports called without context #3980

@xammmue

Description

@xammmue

API Platform version(s) affected: 2.6.0

Description
After updating to 2.6.0 an error is thrown in data persisters reyling on a specific context property (e.g. item_operation_name) in the supports method. As far as I found out the problem is this code changed which removed the context from the call.
126e65d#diff-fb58705f849532eea1e1b279162e440a919f1ff6cb8509209d3f78dd0c6c65d9R76

How to reproduce
Have a dataPersister supports method check for the item_operation_name without checking first if item_operation_name is set

Possible Solution
Add the context back to the supports call.
Workaround: Always test wether the used array values are actually set

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions