Skip to content

Commit

Permalink
Updated relevant dependencies (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
sturkel89 authored Oct 21, 2024
1 parent 8fd9456 commit 63cce4a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
"laminas/laminas-http": ">=2.2"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "3.51.0",
"friendsofphp/php-cs-fixer": "3.64.0",
"guzzlehttp/guzzle": "^7.8.1",
"laminas/laminas-uri": ">=2.2",
"pear/http_request2": "2.6.0",
"phpmd/phpmd": "2.15.0",
"phpstan/phpstan": "1.10.59",
"phpunit/phpunit": "10.5.11",
"phpstan/phpstan": "1.12.7",
"phpunit/phpunit": "10.5.36",
"phing/phing": "3.0",
"squizlabs/php_codesniffer": "3.9.0"
"squizlabs/php_codesniffer": "3.10.3"
},
"autoload": {
"psr-0": {
Expand Down
1 change: 1 addition & 0 deletions src/VuFindHttp/HttpService.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

use function get_class;
use function in_array;
use function sprintf;
use function strlen;

/**
Expand Down
2 changes: 2 additions & 0 deletions tests/unit-tests/src/VuFindTest/HttpServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@

use VuFindHttp\HttpService as Service;

use function sprintf;

/**
* Proxy service unit test.
*
Expand Down
9 changes: 5 additions & 4 deletions tests/vufind.php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
->in(__DIR__ . '/../src');

$rules = [
'@PHP80Migration' => true,
'@PHPUnit84Migration:risky' => true,
'@PHP81Migration' => true,
'@PHPUnit100Migration:risky' => true,
'@PSR12' => true,
'align_multiline_comment' => true,
'binary_operator_spaces' => [
Expand Down Expand Up @@ -44,8 +44,8 @@
'no_php4_constructor' => true,
'no_singleline_whitespace_before_semicolons' => true,
'no_spaces_around_offset' => true,
'no_unneeded_braces' => true,
'no_unneeded_control_parentheses' => true,
'no_unneeded_curly_braces' => true,
'no_unneeded_final_method' => true,
'no_unreachable_default_argument_value' => true,
'no_unused_imports' => true,
Expand Down Expand Up @@ -75,4 +75,5 @@
return $config->setCacheFile($cacheDir . '/.code.cache')
->setRiskyAllowed(true)
->setRules($rules)
->setFinder($finder);
->setFinder($finder)
->setParallelConfig(\PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect());

0 comments on commit 63cce4a

Please sign in to comment.