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