Skip to content

Commit

Permalink
Merge pull request #29 from filakhtov/protobuf-update
Browse files Browse the repository at this point in the history
Update google/protobuf dependency to 3.7
  • Loading branch information
filakhtov authored Jun 5, 2019
2 parents b1a4e9c + dafe414 commit b17ad95
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "gRPC PHP Framework",
"license": "MIT",
"require": {
"google/protobuf": "3.5.*",
"google/protobuf": "^3.7",
"grpc/grpc": "^1.13"
},
"require-dev": {
Expand Down
12 changes: 1 addition & 11 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
processIsolation="false"
backupGlobals="false"
stopOnFailure="false"
syntaxCheck="false"
colors="true">

<testsuites>
Expand All @@ -16,16 +15,7 @@
</testsuite>
</testsuites>

<groups>
<exclude>
<group>deprecated</group>
</exclude>
</groups>

<filter>
<blacklist>
<directory>./vendor/*</directory>
</blacklist>
<whitelist>
<directory>./src</directory>
</whitelist>
Expand All @@ -34,6 +24,6 @@
<logging>
<log type="coverage-html" target="coverage" lowUpperBound="35" highLowerBound="70"/>
<log type="coverage-clover" target="coverage/coverage.xml"/>
<log type="junit" target="coverage/junit.xml" logIncompleteSkipped="false"/>
<log type="junit" target="coverage/junit.xml"/>
</logging>
</phpunit>
9 changes: 4 additions & 5 deletions src/Grphp/grpc.stubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
const STATUS_UNKNOWN = 2;
const STATUS_OK = 0;


if (!defined(\Grpc\ChannelCredentials::class)) {
if (!class_exists(\Grpc\ChannelCredentials::class, false)) {
class ChannelCredentials
{
/**
Expand Down Expand Up @@ -52,13 +51,13 @@ public static function setDefaultRootsPem($pem_roots)
}
}

if (!defined(\Grpc\Channel::class)) {
if (!class_exists(\Grpc\Channel::class, false)) {
class Channel
{
}
}

if (!defined(\Grpc\Timeval::class)) {
if (!class_exists(\Grpc\Timeval::class, false)) {
class Timeval
{
public static function infFuture()
Expand All @@ -68,7 +67,7 @@ public static function infFuture()
}
}

if (!defined(\Grpc\Call::class)) {
if (!class_exists(\Grpc\Call::class, false)) {
class Call
{
}
Expand Down

0 comments on commit b17ad95

Please sign in to comment.