This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** @phan-file-suppress PhanUnusedPublicNoOverrideMethodParameter,PhanUnreferencedClass,PhanUnusedVariable */ | |
| class Iam { } | |
| class GCECredentials { | |
| /** | |
| * @param Iam $iam [optional] An IAM instance. | |
| * @param string|string[] $scope [optional] the scope of the access request, | |
| * expressed either as an array or as a space-delimited string. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| interface Interface2 { | |
| } | |
| interface Interface1 extends Interface2 { | |
| public function someMethod1(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Basic property hook tests | |
| * @phan-file-suppress PhanUnreferencedClass, PhanUnreferencedPublicProperty, PhanUnreferencedPrivateProperty, PhanWriteOnlyPublicProperty | |
| */ | |
| class PropertyHookBasic { | |
| // Simple get hook | |
| public string $upperName { | |
| get => strtoupper($this->upperName); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Basic property hook tests | |
| * @phan-file-suppress PhanUnreferencedClass, PhanUnreferencedPublicProperty, PhanUnreferencedPrivateProperty, PhanWriteOnlyPublicProperty | |
| */ | |
| class PropertyHookBasic { | |
| // Simple get hook | |
| public string $upperName { | |
| get => strtoupper($this->upperName); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Basic property hook tests | |
| * @phan-file-suppress PhanUnreferencedClass, PhanUnreferencedPublicProperty, PhanUnreferencedPrivateProperty, PhanWriteOnlyPublicProperty | |
| */ | |
| class PropertyHookBasic { | |
| // Simple get hook | |
| public string $upperName { | |
| get => strtoupper($this->upperName); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Route { | |
| use T; | |
| function __construct() { | |
| return self::A; | |
| } | |
| } | |
| echo (new Route()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Route { | |
| use T; | |
| function __construct() { | |
| return self::A; | |
| } | |
| } | |
| echo (new Route()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Route { | |
| use T; | |
| function __construct() { | |
| return self::A; | |
| } | |
| } | |
| echo (new Route()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/php/ext/grpc/call.c b/src/php/ext/grpc/call.c | |
| index 1abc4a3faf..7bc711be67 100644 | |
| --- a/src/php/ext/grpc/call.c | |
| +++ b/src/php/ext/grpc/call.c | |
| @@ -451,7 +451,8 @@ PHP_METHOD(Call, startBatch) { | |
| op_num++; | |
| PHP_GRPC_HASH_FOREACH_END() | |
| - error = grpc_call_start_batch(call->wrapped, ops, op_num, call->wrapped, | |
| + grpc_call *wrapped = call->wrapped; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/php/ext/grpc/call.c b/src/php/ext/grpc/call.c | |
| index 1abc4a3faf..7bc711be67 100644 | |
| --- a/src/php/ext/grpc/call.c | |
| +++ b/src/php/ext/grpc/call.c | |
| @@ -451,7 +451,8 @@ PHP_METHOD(Call, startBatch) { | |
| op_num++; | |
| PHP_GRPC_HASH_FOREACH_END() | |
| - error = grpc_call_start_batch(call->wrapped, ops, op_num, call->wrapped, | |
| + grpc_call *wrapped = call->wrapped; |
NewerOlder