@@ -648,14 +648,14 @@ private function sendRawRequest(string $host, int $port, string $rawRequest)
648648 * @param ?string $preferredHost If passed, it will prefer this host over any of the configured ones. This does not
649649 * ensure it will use that host, but it will try to use it if its not blacklisted.
650650 *
651- * @suppress PhanUndeclaredConstant - suppresses TRAVIS_RUNNING
651+ * @suppress PhanUndeclaredConstant - suppresses ARE_GITHUB_ACTIONS_RUNNING
652652 */
653653 private function getPossibleHosts (?string $ preferredHost , bool $ resetHosts = false )
654654 {
655655 // We get the host configs from the APC cache. Then, we check the configuration there with the passed
656656 // configuration and if it's outdated (ie: it has different hosts from the one in the config), we reset it. This
657657 // is so that we don't keep the old cache after changing the hosts or failover configuration.
658- if (!defined ('TRAVIS_RUNNING ' ) || !TRAVIS_RUNNING ) {
658+ if (!defined ('ARE_GITHUB_ACTIONS_RUNNING ' ) || !ARE_GITHUB_ACTIONS_RUNNING ) {
659659 $ apcuKey = self ::APCU_CACHE_PREFIX .$ this ->clusterName ;
660660 if ($ resetHosts ) {
661661 $ this ->logger ->info ('Bedrock\Client - Resetting host configs ' );
@@ -879,12 +879,12 @@ private static function toUTF8($str)
879879 * configuration.
880880 * We also close and clear the socket from the cache, so we don't reuse it.
881881 *
882- * @suppress PhanUndeclaredConstant - suppresses TRAVIS_RUNNING
882+ * @suppress PhanUndeclaredConstant - suppresses ARE_GITHUB_ACTIONS_RUNNING
883883 */
884884 private function markHostAsFailed (string $ host )
885885 {
886886 $ blacklistedUntil = time () + rand (1 , $ this ->maxBlackListTimeout );
887- if (!defined ('TRAVIS_RUNNING ' ) || !TRAVIS_RUNNING ) {
887+ if (!defined ('ARE_GITHUB_ACTIONS_RUNNING ' ) || !ARE_GITHUB_ACTIONS_RUNNING ) {
888888 $ apcuKey = self ::APCU_CACHE_PREFIX .$ this ->clusterName ;
889889 $ hostConfigs = apcu_fetch ($ apcuKey );
890890 $ hostConfigs [$ host ]['blacklistedUntil ' ] = $ blacklistedUntil ;
0 commit comments