Skip to content

Commit

Permalink
chore(composer): update php-cs-fixer to version 3.49
Browse files Browse the repository at this point in the history
- Update php-cs-fixer dependency in composer.json
- Change `space_before_parenthesis` to `false` in class_definition
  • Loading branch information
guanguans committed Feb 2, 2024
1 parent 4b7543c commit 128e05e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,9 @@
// 'var',
],
],

'class_definition' => [
'inline_constructor_arguments' => false,
'space_before_parenthesis' => true,
'space_before_parenthesis' => false,
],

// https://github.com/kubawerlos/php-cs-fixer-custom-fixers
Expand Down
4 changes: 2 additions & 2 deletions composer-updater
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ $status = (new SingleCommandApplication)
assert($this instanceof SingleCommandApplication);
assert((bool) $input->getOption('highest-php-binary'));

(new class (
(new class(
$input->getOption('composer-json-path') ?: __DIR__.'/composer.json',
$input->getOption('highest-php-binary'),
$input->getOption('composer-binary'),
Expand Down Expand Up @@ -137,7 +137,7 @@ $status = (new SingleCommandApplication)
{
$outdatedComposerPackages = $this->getOutdatedComposerPackages();
$decodedComposerJson = json_decode(file_get_contents($this->composerJsonPath), true);
(fn () => self::reload(null))->call(new InstalledVersions);
InstalledVersions::reload([]);

foreach ($decodedComposerJson as $name => &$value) {
if (! in_array($name, ['require', 'require-dev'], true)) {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"brainmaestro/composer-git-hooks": "^2.8",
"dms/phpunit-arraysubset-asserts": "^0.5",
"ergebnis/composer-normalize": "^2.42",
"friendsofphp/php-cs-fixer": "^3.48",
"friendsofphp/php-cs-fixer": "^3.49",
"guanguans/ai-commit": "dev-main",
"guanguans/monorepo-builder-worker": "^1.4",
"kubawerlos/php-cs-fixer-custom-fixers": "^3.19",
Expand Down
2 changes: 1 addition & 1 deletion src/Foundation/Support/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function base64_file(string $file): string
function tap($value, ?callable $callback = null)
{
if (null === $callback) {
return new class ($value) {
return new class($value) {
public $target;

public function __construct($target)
Expand Down

0 comments on commit 128e05e

Please sign in to comment.