Skip to content

Commit 6fee29b

Browse files
bshaffercopybara-github
authored andcommitted
fix(php): phpstan errors on repeated field (#23372)
Should fix googleapis/google-cloud-php#8372 (phpstan typehinting issues) by having the old `RepeatedField` class extend the new one. Closes #23372 COPYBARA_INTEGRATE_REVIEW=#23372 from bshaffer:fix-phpstan-error-in-deprecated-field eaaba2f PiperOrigin-RevId: 811039337
1 parent be93dbc commit 6fee29b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

php/src/Google/Protobuf/Internal/RepeatedField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* This class is deprecated. Use Google\Protobuf\RepeatedField instead.
88
* @deprecated
99
*/
10-
class RepeatedField {}
10+
class RepeatedField extends \Google\Protobuf\RepeatedField {}
1111
}
1212
class_exists(\Google\Protobuf\RepeatedField::class);
1313
@trigger_error('Google\Protobuf\Internal\RepeatedField is deprecated and will be removed in the next major release. Use Google\Protobuf\RepeatedField instead', E_USER_DEPRECATED);

0 commit comments

Comments
 (0)