Skip to content

Commit

Permalink
[TASK] Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ochorocho committed Jan 28, 2024
1 parent 4660e61 commit 1f580d0
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 9 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
"require": {
"php": "^8.1",
"ext-json": "*",
"friendsofphp/php-cs-fixer": "^3.16",
"friendsofphp/php-cs-fixer": "^3.30",
"symfony/console": "^5.4 || ^6.0",
"symfony/filesystem": "^5.4 || ^6.0"
},
"require-dev": {
"composer/package-versions-deprecated": "^1.11.99.5",
"ergebnis/composer-normalize": "*",
"ergebnis/composer-normalize": "^2.28",
"keradus/cli-executor": "^1.5",
"maglnet/composer-require-checker": "*",
"nikic/php-parser": "^4.15.5",
Expand Down
2 changes: 1 addition & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;

return static function (RectorConfig $rectorConfig): void {
return static function(RectorConfig $rectorConfig): void {
$rectorConfig->paths([
__DIR__ . '/src',
__DIR__ . '/tests',
Expand Down
9 changes: 9 additions & 0 deletions src/CsFixerConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,20 @@ class CsFixerConfig extends Config implements CsFixerConfigInterface
'array_syntax' => ['syntax' => 'short'],
'cast_spaces' => ['space' => 'none'],
'concat_space' => ['spacing' => 'one'],
'curly_braces_position' => ['allow_single_line_empty_anonymous_classes' => true],
'declare_equal_normalize' => ['space' => 'none'],
'declare_parentheses' => true,
'dir_constant' => true,
'function_to_constant' => ['functions' => ['get_called_class', 'get_class', 'get_class_this', 'php_sapi_name', 'phpversion', 'pi']],
'function_typehint_space' => true,
'function_declaration' => [
'closure_function_spacing' => 'none',
],
'single_line_throw' => false,
'php_unit_internal_class' => false,
'braces' => [
'allow_single_line_closure' => true,
],
'modernize_strpos' => true,
'modernize_types_casting' => true,
'native_function_casing' => true,
Expand Down
4 changes: 1 addition & 3 deletions tests/Unit/Console/Command/CommandTestImplementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,4 @@
/**
* @internal for testing only
*/
final class CommandTestImplementation extends Command
{
}
final class CommandTestImplementation extends Command {}
2 changes: 1 addition & 1 deletion tests/Unit/CsFixerConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function testCreateReturnsCorrectClass(): void
$csFixerConfig = CsFixerConfig::create();
self::assertInstanceOf(CsFixerConfig::class, $csFixerConfig);
self::assertTrue($csFixerConfig->getRiskyAllowed());
self::assertCount(46, $csFixerConfig->getRules());
self::assertCount(51, $csFixerConfig->getRules());
}

public function testAddRules(): void
Expand Down
4 changes: 2 additions & 2 deletions typo3-coding-standards
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* Loads Composer's autoload.php.
*/
(static function (): void {
(static function(): void {
$possibleAutoloaders = [
__DIR__ . '/../../autoload.php',
__DIR__ . '/../autoload.php',
Expand All @@ -32,7 +32,7 @@
}

if ($autoloader === null) {
throw new \RuntimeException(sprintf('Unable to locate autoload.php file from %s.', __FILE__));
throw new RuntimeException(sprintf('Unable to locate autoload.php file from %s.', __FILE__));
}

require_once $autoloader;
Expand Down

0 comments on commit 1f580d0

Please sign in to comment.