@@ -607,14 +607,14 @@ private function sendRawRequest(string $host, int $port, string $rawRequest)
607607 * @param ?string $preferredHost If passed, it will prefer this host over any of the configured ones. This does not
608608 * ensure it will use that host, but it will try to use it if its not blacklisted.
609609 *
610- * @suppress PhanUndeclaredConstant - suppresses TRAVIS_RUNNING
610+ * @suppress PhanUndeclaredConstant - suppresses ARE_GITHUB_ACTIONS_RUNNING
611611 */
612612 private function getPossibleHosts (?string $ preferredHost , bool $ resetHosts = false )
613613 {
614614 // We get the host configs from the APC cache. Then, we check the configuration there with the passed
615615 // configuration and if it's outdated (ie: it has different hosts from the one in the config), we reset it. This
616616 // is so that we don't keep the old cache after changing the hosts or failover configuration.
617- if (!defined ('TRAVIS_RUNNING ' ) || !TRAVIS_RUNNING ) {
617+ if (!defined ('ARE_GITHUB_ACTIONS_RUNNING ' ) || !ARE_GITHUB_ACTIONS_RUNNING ) {
618618 $ apcuKey = self ::APCU_CACHE_PREFIX .$ this ->clusterName ;
619619 if ($ resetHosts ) {
620620 $ this ->logger ->info ('Bedrock\Client - Resetting host configs ' );
@@ -838,12 +838,12 @@ private static function toUTF8($str)
838838 * configuration.
839839 * We also close and clear the socket from the cache, so we don't reuse it.
840840 *
841- * @suppress PhanUndeclaredConstant - suppresses TRAVIS_RUNNING
841+ * @suppress PhanUndeclaredConstant - suppresses ARE_GITHUB_ACTIONS_RUNNING
842842 */
843843 private function markHostAsFailed (string $ host )
844844 {
845845 $ blacklistedUntil = time () + rand (1 , $ this ->maxBlackListTimeout );
846- if (!defined ('TRAVIS_RUNNING ' ) || !TRAVIS_RUNNING ) {
846+ if (!defined ('ARE_GITHUB_ACTIONS_RUNNING ' ) || !ARE_GITHUB_ACTIONS_RUNNING ) {
847847 $ apcuKey = self ::APCU_CACHE_PREFIX .$ this ->clusterName ;
848848 $ hostConfigs = apcu_fetch ($ apcuKey );
849849 $ hostConfigs [$ host ]['blacklistedUntil ' ] = $ blacklistedUntil ;
0 commit comments