From 03bb7fe21f0c37aa18ab1cb1462ac5a5524c5d52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=C3=A1la?= Date: Thu, 2 Jul 2020 10:51:06 +0200 Subject: [PATCH] =?UTF-8?q?CS=20hl=C3=ADd=C3=A1=20typy=20parametr=C5=AF=20?= =?UTF-8?q?metod?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 1 + src/PeckaCodingStandardStrict/ruleset.xml | 1 + tests/Failure/TypeHints/ParameterTypeHint.php | 11 ++++++++++ tests/Success/TypeHints/ParameterTypeHint.php | 20 +++++++++++++++++++ 4 files changed, 33 insertions(+) create mode 100644 tests/Failure/TypeHints/ParameterTypeHint.php create mode 100644 tests/Success/TypeHints/ParameterTypeHint.php diff --git a/Makefile b/Makefile index dc91125..5669189 100644 --- a/Makefile +++ b/Makefile @@ -13,3 +13,4 @@ test: ./vendor/bin/phpcs --standard=src/PeckaCodingStandard/ruleset.xml tests/Failure/TypeHints/ParameterTypeHintSpacing.php | tests/errorNumber.sh 2 ./vendor/bin/phpcs --standard=src/PeckaCodingStandard/ruleset.xml tests/Failure/Formatting/SpaceAfterCast.php | tests/errorNumber.sh 2 ./vendor/bin/phpcs --standard=src/PeckaCodingStandard/ruleset.xml tests/Failure/Exceptions/DeadCatch.php | tests/errorNumber.sh 1 + ./vendor/bin/phpcs --standard=src/PeckaCodingStandardStrict/ruleset.xml tests/Failure/TypeHints/ParameterTypeHint.php | tests/errorNumber.sh 1 diff --git a/src/PeckaCodingStandardStrict/ruleset.xml b/src/PeckaCodingStandardStrict/ruleset.xml index 1879e3e..5e04646 100644 --- a/src/PeckaCodingStandardStrict/ruleset.xml +++ b/src/PeckaCodingStandardStrict/ruleset.xml @@ -13,6 +13,7 @@ + diff --git a/tests/Failure/TypeHints/ParameterTypeHint.php b/tests/Failure/TypeHints/ParameterTypeHint.php new file mode 100644 index 0000000..c117672 --- /dev/null +++ b/tests/Failure/TypeHints/ParameterTypeHint.php @@ -0,0 +1,11 @@ +