Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.2', '7.4']
php: ['7.3', '8.1']
deps: ['lowest', 'stable']
steps:
- name: Checkout code
Expand Down
17 changes: 13 additions & 4 deletions .php_cs.dist → .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
<?php

declare(strict_types=1);

use PhpCsFixer\Config;
use PhpCsFixer\Finder;

$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/spec')
$finder = Finder::create()
->in(__DIR__ . '/src')
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true);

return Config::create()
$config = new Config();

return $config
->setRiskyAllowed(true)
->setHideProgress(true)
->setUsingCache(false)
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => ['align_double_arrow' => true, 'align_equals' => true],
'binary_operator_spaces' => [
'operators' => [
'=' => 'align',
'=>' => 'align',
],
],
'blank_line_after_opening_tag' => true,
'blank_line_before_statement' => ['statements' => ['break', 'continue', 'declare', 'try']],
'concat_space' => ['spacing' => 'one'],
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ handled by an HTTP client which is PSR-18 compatible. Behind the scenes, we use
GuzzleHTTP, a de-facto industry standard library for HTTP communication.

## Requirements
- PHP 7.x or 8.x
- PHP 7.3 or higher
- FACT-Finder® 7.x or FACT-Finder® NG

## License
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
}
],
"require": {
"php": ">=7.1||~8.1",
"php": ">=7.3 || ~8.1",
"ext-json": "*",
"guzzlehttp/guzzle": "^6.3|^7.0",
"psr/http-client": "^1.0",
"psr/log": "^1.1||^3.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.17",
"friendsofphp/php-cs-fixer": "^3.4.0",
"phpmd/phpmd": "^2.9",
"phpspec/phpspec": "^6.0"
"phpspec/phpspec": "^7.2"
},
"autoload": {
"psr-4": {
Expand Down
1 change: 1 addition & 0 deletions src/Client/ClientBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public function build(): ClientInterface
'base_uri' => $this->serverUrl,
'handler' => $handler,
'headers' => ['Accept' => 'application/json'],
'timeout' => 10,
'http_errors' => false,
];

Expand Down
Loading