Browse Source

Updated the static analyzer

main
Cédric Belin 1 month ago
parent
commit
4a38575016
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      composer.json
  2. +1
    -1
      test/ClientTest.php

+ 1
- 1
composer.json View File

@@ -39,7 +39,7 @@
},
"require-dev": {
"cedx/coveralls": "^13.2.0",
"phpstan/phpstan": "^0.12.33",
"phpstan/phpstan": "^0.12.34",
"phpunit/phpunit": "^9.2.6"
},
"scripts": {


+ 1
- 1
test/ClientTest.php View File

@@ -64,7 +64,7 @@ class ClientTest extends TestCase {
$blog = new Blog(new Uri("https://docs.belin.io/akismet.php"));
$this->client = (new Client((string) getenv("AKISMET_API_KEY"), $blog))->setTest(true);

$userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36 Edg/83.0.478.45";
$userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0";
$author = (new Author("192.168.0.1", $userAgent))
->setName("Akismet")
->setRole("administrator")


Loading…
Cancel
Save