Skip to content

Commit cd76e67

Browse files
anandoleecopybara-github
authored andcommitted
Breaking Change: Remove deprecated PHP APIs FieldDescriptor getLabel, use IsRepeated or isRequired instead
https://protobuf.dev/news/2025-09-19/#php-remove-apis PiperOrigin-RevId: 843474779
1 parent 9c45014 commit cd76e67

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

php/src/Google/Protobuf/FieldDescriptor.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,6 @@ public function getNumber()
4343
return $this->internal_desc->getNumber();
4444
}
4545

46-
/**
47-
* @deprecated Use isRepeated() or isRequired() instead.
48-
*
49-
* @return int
50-
*/
51-
public function getLabel()
52-
{
53-
return $this->internal_desc->getLabel();
54-
}
55-
5646
/**
5747
* @return boolean
5848
*/

php/src/Google/Protobuf/Internal/FieldDescriptor.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@ public function setLabel($label)
9999
$this->label = $label;
100100
}
101101

102-
public function getLabel()
103-
{
104-
return $this->label;
105-
}
106-
107102
public function isRequired()
108103
{
109104
return $this->label === GPBLabel::REQUIRED;

0 commit comments

Comments
 (0)