Skip to content

Commit 2b9efb5

Browse files
committed
chore: upgrade dependencies
1 parent 13ac968 commit 2b9efb5

9 files changed

+208
-92
lines changed

.php-cs-fixer.php

+9-5
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,22 @@
33
use Ergebnis\PhpCsFixer\Config;
44

55
$header = <<<EOF
6-
Copyright (c) 2023 Kai Sassnowski
6+
Copyright (c) 2024 Kai Sassnowski
77
88
For the full copyright and license information, please view
99
the LICENSE file that was distributed with this source code.
1010
1111
@see https://github.com/roach-php/laravel
1212
EOF;
1313

14-
$config = Config\Factory::fromRuleSet(new Config\RuleSet\Php80($header), [
15-
'php_unit_test_class_requires_covers' => false,
16-
'phpdoc_to_property_type' => false,
17-
]);
14+
$ruleSet = Config\RuleSet\Php80::create()
15+
->withHeader($header)
16+
->withRules(Config\Rules::fromArray([
17+
'php_unit_test_class_requires_covers' => false,
18+
'phpdoc_to_property_type' => false,
19+
]));
20+
21+
$config = Config\Factory::fromRuleSet($ruleSet);
1822

1923
$config->getFinder()
2024
->in(__DIR__)

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"require-dev": {
1919
"ergebnis/composer-normalize": "^2.15",
20-
"ergebnis/php-cs-fixer-config": "^5.0",
20+
"ergebnis/php-cs-fixer-config": "^6.19",
2121
"orchestra/testbench": "^7.0 || ^8.0",
2222
"phpunit/phpunit": "^10.4",
2323
"roave/security-advisories": "dev-latest",

composer.lock

+191-78
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Commands/SpiderMakeCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare(strict_types=1);
44

55
/**
6-
* Copyright (c) 2023 Kai Sassnowski
6+
* Copyright (c) 2024 Kai Sassnowski
77
*
88
* For the full copyright and license information, please view
99
* the LICENSE file that was distributed with this source code.

src/RoachServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare(strict_types=1);
44

55
/**
6-
* Copyright (c) 2023 Kai Sassnowski
6+
* Copyright (c) 2024 Kai Sassnowski
77
*
88
* For the full copyright and license information, please view
99
* the LICENSE file that was distributed with this source code.

tests/Fixtures/TestSpider.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare(strict_types=1);
44

55
/**
6-
* Copyright (c) 2023 Kai Sassnowski
6+
* Copyright (c) 2024 Kai Sassnowski
77
*
88
* For the full copyright and license information, please view
99
* the LICENSE file that was distributed with this source code.
@@ -13,7 +13,6 @@
1313

1414
namespace RoachPHP\Laravel\Tests\Fixtures;
1515

16-
use Generator;
1716
use RoachPHP\Http\Response;
1817
use RoachPHP\Spider\BasicSpider;
1918

@@ -22,7 +21,7 @@
2221
*/
2322
final class TestSpider extends BasicSpider
2423
{
25-
public function parse(Response $response): Generator
24+
public function parse(Response $response): \Generator
2625
{
2726
yield from [];
2827
}

tests/RegisterDefaultNamespaceTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare(strict_types=1);
44

55
/**
6-
* Copyright (c) 2023 Kai Sassnowski
6+
* Copyright (c) 2024 Kai Sassnowski
77
*
88
* For the full copyright and license information, please view
99
* the LICENSE file that was distributed with this source code.

tests/SpiderMakeCommandTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare(strict_types=1);
44

55
/**
6-
* Copyright (c) 2023 Kai Sassnowski
6+
* Copyright (c) 2024 Kai Sassnowski
77
*
88
* For the full copyright and license information, please view
99
* the LICENSE file that was distributed with this source code.

tests/TestCase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare(strict_types=1);
44

55
/**
6-
* Copyright (c) 2023 Kai Sassnowski
6+
* Copyright (c) 2024 Kai Sassnowski
77
*
88
* For the full copyright and license information, please view
99
* the LICENSE file that was distributed with this source code.

0 commit comments

Comments
 (0)