Skip to content

Fix docs

Fix docs #288

Triggered via pull request May 20, 2024 09:03
Status Success
Total duration 59s
Artifacts

mutation.yml

on: pull_request
Matrix: mutation
Fit to window
Zoom out
Zoom in

Annotations

14 warnings
PHP 8.1-ubuntu-latest
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/[email protected], actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP 8.1-ubuntu-latest
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/[email protected], actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHP 8.1-ubuntu-latest: src/OAuthToken.php#L106
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ /** * @return string expire duration param key. */ - public function getExpireDurationParamKey() : string + protected function getExpireDurationParamKey() : string { if ($this->expireDurationParamKey === null) { $this->expireDurationParamKey = $this->defaultExpireDurationParamKey();
PHP 8.1-ubuntu-latest: src/OAuthToken.php#L128
Escaped Mutant for Mutator "ProtectedVisibility": --- Original +++ New @@ @@ * * @return string expire duration param key. */ - protected function defaultExpireDurationParamKey() : string + private function defaultExpireDurationParamKey() : string { $expireDurationParamKey = 'expires_in'; foreach ($this->getParams() as $name => $value) {
PHP 8.1-ubuntu-latest: src/OAuthToken.php#L134
Escaped Mutant for Mutator "Break_": --- Original +++ New @@ @@ foreach ($this->getParams() as $name => $value) { if (strpos($name, 'expir') !== false) { $expireDurationParamKey = $name; - break; + continue; } } return $expireDurationParamKey;
PHP 8.1-ubuntu-latest: src/RequestUtil.php#L24
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ public static function composeUrl(string $url, array $params = []) : string { if (!empty($params)) { - if (strpos($url, '?') === false) { + if (strpos($url, '?') !== false) { $url .= '?'; } else { $url .= '&';
PHP 8.1-ubuntu-latest: src/RequestUtil.php#L53
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ } $result = []; foreach (explode('&', $queryString) as $pair) { - $parts = explode('=', $pair, 2); + $parts = explode('=', $pair, 3); $key = rawurldecode($parts[0]); $value = isset($parts[1]) ? rawurldecode($parts[1]) : null; if (!isset($result[$key])) {
PHP 8.1-ubuntu-latest: src/RequestUtil.php#L55
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ foreach (explode('&', $queryString) as $pair) { $parts = explode('=', $pair, 2); $key = rawurldecode($parts[0]); - $value = isset($parts[1]) ? rawurldecode($parts[1]) : null; + $value = isset($parts[0]) ? rawurldecode($parts[1]) : null; if (!isset($result[$key])) { $result[$key] = $value; } else {
PHP 8.1-ubuntu-latest: src/Signature/HmacSha.php#L36
Escaped Mutant for Mutator "UnwrapStrToUpper": --- Original +++ New @@ @@ } public function getName() : string { - return 'HMAC-' . strtoupper($this->algorithm); + return 'HMAC-' . $this->algorithm; } public function generateSignature(string $baseString, string $key) : string {
PHP 8.1-ubuntu-latest: src/Signature/HmacSha.php#L36
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ } public function getName() : string { - return 'HMAC-' . strtoupper($this->algorithm); + return strtoupper($this->algorithm) . 'HMAC-'; } public function generateSignature(string $baseString, string $key) : string {
PHP 8.1-ubuntu-latest: src/Signature/HmacSha.php#L36
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ } public function getName() : string { - return 'HMAC-' . strtoupper($this->algorithm); + return strtoupper($this->algorithm); } public function generateSignature(string $baseString, string $key) : string {
PHP 8.1-ubuntu-latest: src/Signature/HmacSha.php#L36
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ } public function getName() : string { - return 'HMAC-' . strtoupper($this->algorithm); + return 'HMAC-'; } public function generateSignature(string $baseString, string $key) : string {
PHP 8.1-ubuntu-latest
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHP 8.1-ubuntu-latest
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/