File tree 4 files changed +32
-0
lines changed
src/PeckaCodingStandardStrict
4 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 11
11
./vendor/bin/phpcs --standard=src/PeckaCodingStandard/ruleset.xml tests/Failure/Formatting/SpaceAfterCast.php | tests/errorNumber.sh 2
12
12
./vendor/bin/phpcs --standard=src/PeckaCodingStandard/ruleset.xml tests/Failure/WhiteSpace/DisallowSpaceIndent.php | tests/errorNumber.sh 2
13
13
./vendor/bin/phpcs --standard=src/PeckaCodingStandard/ruleset.xml tests/Failure/TypeHints/ParameterTypeHintSpacing.php | tests/errorNumber.sh 2
14
+ ./vendor/bin/phpcs --standard=src/PeckaCodingStandard/ruleset.xml tests/Failure/TypeHints/ParameterTypeHint.php | tests/errorNumber.sh 2
14
15
./vendor/bin/phpcs --standard=src/PeckaCodingStandard/ruleset.xml tests/Failure/Formatting/SpaceAfterCast.php | tests/errorNumber.sh 2
15
16
./vendor/bin/phpcs --standard=src/PeckaCodingStandard/ruleset.xml tests/Failure/Exceptions/DeadCatch.php | tests/errorNumber.sh 1
Original file line number Diff line number Diff line change 13
13
<!-- TypeHints -->
14
14
<rule ref =" SlevomatCodingStandard.TypeHints.DeclareStrictTypes" />
15
15
<rule ref =" SlevomatCodingStandard.TypeHints.PropertyTypeHint" />
16
+ <rule ref =" SlevomatCodingStandard.TypeHints.ParameterTypeHint" />
16
17
17
18
<!-- Namespaces -->
18
19
<rule ref =" SlevomatCodingStandard.Namespaces.UseOnlyWhitelistedNamespaces" />
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ class MyClass {
4
+
5
+ private function hello ($ id ) {
6
+
7
+ }
8
+
9
+
10
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ class MyClass
4
+ {
5
+
6
+ private function hello (string $ id )
7
+ {
8
+
9
+ }
10
+
11
+
12
+ /**
13
+ * @param string|int|bool $id
14
+ */
15
+ private function hello2 ($ id )
16
+ {
17
+
18
+ }
19
+
20
+ }
You can’t perform that action at this time.
0 commit comments