googleads / googleads-php-lib

Google Ad Manager SOAP API Client Library for PHP
Apache License 2.0
656 stars 769 forks source link

Ambiguous class resolution #548

Closed codeistalk closed 5 years ago

codeistalk commented 5 years ago

When I do composer dump-autoload I get below long list of warnings

Warning: Ambiguous class resolution, "Google\Protobuf\StringValue" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/StringValue.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/StringValue.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\Value" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/Value.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/Value.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\BoolValue" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/BoolValue.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/BoolValue.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\Enum" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/Enum.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/Enum.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\Int64Value" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/Int64Value.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/Int64Value.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\Any" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/Any.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/Any.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\Timestamp" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/Timestamp.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/Timestamp.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\Field_Kind" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/Field_Kind.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/Field_Kind.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\EnumValue" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/EnumValue.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/EnumValue.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\Api" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/Api.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/Api.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\Option" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/Option.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/Option.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\Mixin" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/Mixin.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/Mixin.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\NullValue" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/NullValue.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/NullValue.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\Syntax" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/Syntax.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/Syntax.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\BytesValue" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/BytesValue.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/BytesValue.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\GPBEmpty" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/GPBEmpty.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/GPBEmpty.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\UInt64Value" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/UInt64Value.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/UInt64Value.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\Method" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/Method.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/Method.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\Struct" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/Struct.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/Struct.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\FloatValue" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/FloatValue.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/FloatValue.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\Int32Value" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/Int32Value.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/Int32Value.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\ListValue" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/ListValue.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/ListValue.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\Field_Cardinality" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/Field_Cardinality.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/Field_Cardinality.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\Type" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/Type.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/Type.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\Duration" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/Duration.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/Duration.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\UInt32Value" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/UInt32Value.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/UInt32Value.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\FieldMask" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/FieldMask.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/FieldMask.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\SourceContext" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/SourceContext.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/SourceContext.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\DoubleValue" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/DoubleValue.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/DoubleValue.php", the first will be used.
Warning: Ambiguous class resolution, "Google\Protobuf\Field" was found in both "/var/www/vendor/google/protobuf/php/src/Google/Protobuf/Field.php" and "/var/www/vendor/google/gax/src/generated/Google/Protobuf/Field.php", the first will be used.
Warning: Ambiguous class resolution, "GPBMetadata\Google\Protobuf\Wrappers" was found in both "/var/www/vendor/google/protobuf/php/src/GPBMetadata/Google/Protobuf/Wrappers.php" and "/var/www/vendor/google/gax/src/generated/GPBMetadata/Google/Protobuf/Wrappers.php", the first will be used.
Warning: Ambiguous class resolution, "GPBMetadata\Google\Protobuf\Any" was found in both "/var/www/vendor/google/protobuf/php/src/GPBMetadata/Google/Protobuf/Any.php" and "/var/www/vendor/google/gax/src/generated/GPBMetadata/Google/Protobuf/Any.php", the first will be used.
Warning: Ambiguous class resolution, "GPBMetadata\Google\Protobuf\Timestamp" was found in both "/var/www/vendor/google/protobuf/php/src/GPBMetadata/Google/Protobuf/Timestamp.php" and "/var/www/vendor/google/gax/src/generated/GPBMetadata/Google/Protobuf/Timestamp.php", the first will be used.
Warning: Ambiguous class resolution, "GPBMetadata\Google\Protobuf\Api" was found in both "/var/www/vendor/google/protobuf/php/src/GPBMetadata/Google/Protobuf/Api.php" and "/var/www/vendor/google/gax/src/generated/GPBMetadata/Google/Protobuf/Api.php", the first will be used.
Warning: Ambiguous class resolution, "GPBMetadata\Google\Protobuf\GPBEmpty" was found in both "/var/www/vendor/google/protobuf/php/src/GPBMetadata/Google/Protobuf/GPBEmpty.php" and "/var/www/vendor/google/gax/src/generated/GPBMetadata/Google/Protobuf/GPBEmpty.php", the first will be used.
Warning: Ambiguous class resolution, "GPBMetadata\Google\Protobuf\Struct" was found in both "/var/www/vendor/google/protobuf/php/src/GPBMetadata/Google/Protobuf/Struct.php" and "/var/www/vendor/google/gax/src/generated/GPBMetadata/Google/Protobuf/Struct.php", the first will be used.
Warning: Ambiguous class resolution, "GPBMetadata\Google\Protobuf\Type" was found in both "/var/www/vendor/google/protobuf/php/src/GPBMetadata/Google/Protobuf/Type.php" and "/var/www/vendor/google/gax/src/generated/GPBMetadata/Google/Protobuf/Type.php", the first will be used.
Warning: Ambiguous class resolution, "GPBMetadata\Google\Protobuf\Duration" was found in both "/var/www/vendor/google/protobuf/php/src/GPBMetadata/Google/Protobuf/Duration.php" and "/var/www/vendor/google/gax/src/generated/GPBMetadata/Google/Protobuf/Duration.php", the first will be used.
Warning: Ambiguous class resolution, "GPBMetadata\Google\Protobuf\FieldMask" was found in both "/var/www/vendor/google/protobuf/php/src/GPBMetadata/Google/Protobuf/FieldMask.php" and "/var/www/vendor/google/gax/src/generated/GPBMetadata/Google/Protobuf/FieldMask.php", the first will be used.
Warning: Ambiguous class resolution, "GPBMetadata\Google\Protobuf\SourceContext" was found in both "/var/www/vendor/google/protobuf/php/src/GPBMetadata/Google/Protobuf/SourceContext.php" and "/var/www/vendor/google/gax/src/generated/GPBMetadata/Google/Protobuf/SourceContext.php", the first will be used.
fiboknacky commented 5 years ago

Hi,

The warning messages seem not lethal, but I wonder how you got these messages? This library doesn't depend on the protobuf library. Could you elaborate how they're related to this library?

Best, Knack

fiboknacky commented 5 years ago

Close due to inactivity.