Skip to content

Commit 4c44705

Browse files
author
Daniel Kurowski
committed
Merge branch 'allow-new-nette-finder' into 'master'
Support nette v4 See merge request grifart/scaffolder!58
2 parents 44907e0 + 10f9d9a commit 4c44705

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

composer.json

+9-5
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,30 @@
2626
"require": {
2727
"php": "^8.0",
2828
"ext-tokenizer": "*",
29-
"nette/finder": "^2.5",
29+
"nette/finder": "^2.5||^3.0",
3030
"nette/php-generator": "^4.0.1",
31+
"nette/utils": "^3.0||^4.0",
3132
"symfony/console": "^6.0",
3233
"symfony/filesystem": "^6.0"
3334
},
3435
"require-dev": {
3536
"nette/tester": "^2.0.0",
37+
"nikic/php-parser": "^4.10",
3638
"phpstan/phpstan": "^1.0",
3739
"php-parallel-lint/php-console-color": "^1.0",
3840
"php-parallel-lint/php-parallel-lint": "^1.2",
39-
"tracy/tracy": "^2.7.5",
40-
"nikic/php-parser": "^4.10"
41+
"tracy/tracy": "^2.7.5"
4142
},
4243
"suggest": {
43-
"tracy/tracy": "For more detailed error messages.",
44-
"nikic/php-parser": "To be able to use Preserve attribute."
44+
"nikic/php-parser": "To be able to use Preserve attribute.",
45+
"tracy/tracy": "For more detailed error messages."
4546
},
4647
"bin": [
4748
"bin/scaffolder"
4849
],
50+
"config": {
51+
"sort-packages": true
52+
},
4953
"autoload": {
5054
"psr-4": {
5155
"Grifart\\ClassScaffolder\\": "src"

tests/Console/check/ModifiedClass.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
final class ModifiedClass
1010
{
11-
public function __construct(private int $field)
12-
{
11+
public function __construct(
12+
private int $field,
13+
) {
1314
}
1415
}

tests/Console/check/UnmodifiedClass.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
final class UnmodifiedClass
1010
{
11-
public function __construct(private string $field)
12-
{
11+
public function __construct(
12+
private string $field,
13+
) {
1314
}
1415
}

0 commit comments

Comments
 (0)