We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16a4245 commit ba26359Copy full SHA for ba26359
src/SPC/builder/extension/protobuf.php
@@ -15,8 +15,9 @@ public function validate(): void
15
if ($this->builder->getPHPVersionID() < 80000 && getenv('SPC_SKIP_PHP_VERSION_CHECK') !== 'yes') {
16
throw new \RuntimeException('The latest protobuf extension requires PHP 8.0 or later');
17
}
18
+ $grpc = $this->builder->getExt('grpc');
19
// protobuf conflicts with grpc
- if ($this->builder->getExt('grpc') !== null) {
20
+ if ($grpc?->isBuildStatic()) {
21
throw new \RuntimeException('protobuf conflicts with grpc, please remove grpc or protobuf extension');
22
23
0 commit comments