Skip to content

PHP: Removal of deprecated types came as a surprise due to lack of deprecation announcement and has an unclear upgrade path based on current docs. #26187

@SpencerMalone

Description

@SpencerMalone

What version of protobuf and what language are you using?
Version: v4.31.0 -> 5.34.0
Language: PHP

There was no communicated deprecation of Google\Protobuf\Internal\RepeatedField when 4.31.0 was released for PHP in release notes, which makes the removal of it in only 3 releases after that quite a shock. It would be extremely helpful to update the 4.31 release notes to mention it and in 5.34 mention 4.31 as the intermediary version which has both types so that people know they should:

  1. Update to a protobuf package version that is >=4.31, <=4.33
  2. Regenerate all protos
  3. Remove all manual references to Google\Protobuf\Internal\RepeatedField and update to Google\Protobuf\RepeatedField
  4. Upgrade to 5.34

Metadata

Metadata

Assignees

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