Skip to content

Commit

Permalink
chore(dependencies): update dependencies, add support for symfony 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Brainshaker95 committed Feb 20, 2024
1 parent 8675d1a commit 85487ce
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 24 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ final class MyClass extends MyParentClass
public array $foo1,
public readonly Foo&Bar $bar1,
public ?bool $baz1,
) {
}
) {}

/**
* @var non-empty-string|array<int,string>
Expand Down Expand Up @@ -322,8 +321,7 @@ final class MyService
{
public function __construct(
private readonly Dumper $dumper,
) {
}
) {}
public function doTheThingsAndStuff(): void
{
Expand Down
38 changes: 19 additions & 19 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,33 @@
}
],
"require-dev": {
"friendsofphp/php-cs-fixer": "3.45.0",
"phpstan/phpstan": "1.10.50",
"friendsofphp/php-cs-fixer": "3.49.0",
"phpstan/phpstan": "1.10.59",
"phpstan/phpstan-strict-rules": "1.5.2",
"symplify/phpstan-rules": "12.4.3",
"phpunit/phpunit": "10.5.5",
"symfony/framework-bundle": "6.4.2",
"symfony/yaml": "6.4.0",
"symplify/phpstan-rules": "12.4.8",
"phpunit/phpunit": "10.5.10",
"symfony/framework-bundle": "6.4.3",
"symfony/yaml": "6.4.3",
"cweagans/composer-patches": "1.7.3"
},
"require": {
"php": ">=8.1",
"ext-json": "*",
"ext-mbstring": "*",
"ext-xml": "*",
"nikic/php-parser": "^4.17",
"symfony/config": "^5.0 || ^6.0",
"symfony/console": "^5.0 || ^6.0",
"symfony/dependency-injection": "^5.0 || ^6.0",
"symfony/event-dispatcher": "^5.0 || ^6.0",
"symfony/filesystem": "^5.0 || ^6.0",
"symfony/finder": "^5.0 || ^6.0",
"symfony/http-foundation": "^5.0 || ^6.0",
"symfony/http-kernel": "^5.0 || ^6.0",
"symfony/property-access": "^5.0 || ^6.0",
"symfony/serializer": "^5.0 || ^6.0",
"symfony/string": "^5.0 || ^6.0",
"phpstan/phpdoc-parser": "^1.24"
"nikic/php-parser": "^4.18",
"symfony/config": "^5.0 || ^6.0 || ^7.0",
"symfony/console": "^5.0 || ^6.0 || ^7.0",
"symfony/dependency-injection": "^5.0 || ^6.0 || ^7.0",
"symfony/event-dispatcher": "^5.0 || ^6.0 || ^7.0",
"symfony/filesystem": "^5.0 || ^6.0 || ^7.0",
"symfony/finder": "^5.0 || ^6.0 || ^7.0",
"symfony/http-foundation": "^5.0 || ^6.0 || ^7.0",
"symfony/http-kernel": "^5.0 || ^6.0 || ^7.0",
"symfony/property-access": "^5.0 || ^6.0 || ^7.0",
"symfony/serializer": "^5.0 || ^6.0 || ^7.0",
"symfony/string": "^5.0 || ^6.0 || ^7.0",
"phpstan/phpdoc-parser": "^1.25"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Tool/Str.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ final public static function splitByNewLines(
->replace("\r", "\n")
;

$lines = array_filter($string->split("\n"), static fn (UnicodeString $line) => $line->length());
$lines = array_filter($string->split("\n"), static fn (UnicodeString $line) => $line->length() > 0);
$lineCount = count($lines);

if (!$lineCount) {
Expand Down
2 changes: 2 additions & 0 deletions tests/Fixture/Input/IterableTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
/**
* @internal
*
* @PhpCsFixerIgnore phpdoc_scalar
*
* This is a class description
*/
#[AsTypeScriptable]
Expand Down
1 change: 1 addition & 0 deletions tests/Fixture/Input/NativeTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
/**
* @internal
*
* @PhpCsFixerIgnore fully_qualified_strict_types
* @PhpCsFixerIgnore global_namespace_import
* @PhpCsFixerIgnore phpdoc_add_missing_param_annotation
*/
Expand Down

0 comments on commit 85487ce

Please sign in to comment.