Skip to content

Commit da41666

Browse files
authored
fix: add missing semicolon to use statement of superClass (#6350)
1 parent 446bec1 commit da41666

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

generator/src/googleapis/codegen/languages/php/default/templates/___api_className___/___models_className___.php.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace {{ api.ownerName }}\Service\{{ api.className }};
55
{% if model.superClass %}
6-
use {{ api.ownerName }}\Service\{{ api.className }}\{{ model.superClass }}
6+
use {{ api.ownerName }}\Service\{{ api.className }}\{{ model.superClass }};
77
{% endif %}
88
class {{ model.className }} extends {% if model.superClass %}{{ model.superClass }}{% else %}{% if model.dataType == "array" %}\Google\Collection{% else %}\Google\Model{% endif %}{% endif %}
99
{{% if model.properties %}

generator/tests/testdata/golden/php/default/kitchen_sink.golden

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ class_alias(Geometry::class, 'Google_Service_KitchSink_Geometry');
836836

837837
namespace Google\Service\KitchSink;
838838

839-
use Google\Service\KitchSink\Geometry
839+
use Google\Service\KitchSink\Geometry;
840840

841841
class GeometryCollection extends Geometry
842842
{
@@ -886,7 +886,7 @@ class_alias(GeometryCollection::class, 'Google_Service_KitchSink_GeometryCollect
886886

887887
namespace Google\Service\KitchSink;
888888

889-
use Google\Service\KitchSink\Geometry
889+
use Google\Service\KitchSink\Geometry;
890890

891891
class GeometryPolygon extends Geometry
892892
{
@@ -937,7 +937,7 @@ class_alias(GeometryPolygon::class, 'Google_Service_KitchSink_GeometryPolygon');
937937

938938
namespace Google\Service\KitchSink;
939939

940-
use Google\Service\KitchSink\Geometry
940+
use Google\Service\KitchSink\Geometry;
941941

942942
class GeometryReference extends Geometry
943943
{

0 commit comments

Comments
 (0)