+ */
+ public function getWarningList()
+ {
+ return [];
+
+ }//end getWarningList()
+
+
+}//end class
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.php
index 48815d68..b6e242d3 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UnconditionalIfStatementSniff
*/
-class UnconditionalIfStatementUnitTest extends AbstractSniffUnitTest
+final class UnconditionalIfStatementUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.inc b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.1.inc
similarity index 54%
rename from vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.inc
rename to vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.1.inc
index 026cf484..d217d073 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.inc
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.1.inc
@@ -32,3 +32,25 @@ final readonly class Foo_Bar {
public final function fooBar() {}
final protected function fool() {}
}
+
+final class Final_Class_Final_Constants {
+ final public const FINAL_PUBLIC_CONST = 23;
+ protected final const FINAL_PROTECTED_CONST = 'foo';
+}
+
+final class Final_Class_Regular_Constants {
+ public const PUBLIC_CONST = 23;
+ protected const PROTECTED_CONST = 'foo';
+ private const PRIVATE_CONST = true;
+}
+
+class Regular_Class_Final_Constants {
+ public final const FINAL_PUBLIC_CONST = 23;
+ final protected const FINAL_PROTECTED_CONST = 'foo';
+}
+
+class Regular_Class_Regular_Constants {
+ public const PUBLIC_CONST = 23;
+ protected const PROTECTED_CONST = 'foo';
+ private const PRIVATE_CONST = true;
+}
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.2.inc b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.2.inc
new file mode 100644
index 00000000..d3636f48
--- /dev/null
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.2.inc
@@ -0,0 +1,5 @@
+
*/
- public function getWarningList()
+ public function getWarningList($testFile='')
{
- return [
- 11 => 1,
- 12 => 1,
- 15 => 1,
- 18 => 1,
- 32 => 1,
- 33 => 1,
- ];
+ switch ($testFile) {
+ case 'UnnecessaryFinalModifierUnitTest.1.inc':
+ return [
+ 11 => 1,
+ 12 => 1,
+ 15 => 1,
+ 18 => 1,
+ 32 => 1,
+ 33 => 1,
+ 37 => 1,
+ 38 => 1,
+ ];
+ default:
+ return [];
+ }
}//end getWarningList()
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.inc b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.1.inc
similarity index 90%
rename from vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.inc
rename to vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.1.inc
index 154f0315..f13253d3 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.inc
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.1.inc
@@ -249,3 +249,26 @@ class MagicMethodsWithParamsNotDictatedByPHPInChildClass extends SomeParent{
$this->foo = $foo;
}
}
+
+/**
+ * Methods that throw an exception or return on the first line and are part
+ * of a class that implements an interface should not trigger the sniff.
+ */
+class InterfaceMethodNotImplement implements SomeInterface {
+ public function notImplemented($param) {
+ throw new Exception('Not implemented.');
+ }
+
+ public function notImplemented2($param) {
+ return 'Not implemented.';
+ }
+}
+
+/**
+ * Should trigger the sniff as this method is not part of an interface.
+ */
+class MethodThrowsException {
+ public function throwsException($param) {
+ throw new Exception();
+ }
+}
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.2.inc b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.2.inc
new file mode 100644
index 00000000..d39eefe3
--- /dev/null
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.2.inc
@@ -0,0 +1,5 @@
+
*/
- public function getWarningList()
+ public function getWarningList($testFile='')
{
- return [
- 3 => 1,
- 7 => 1,
- 78 => 1,
- 94 => 1,
- 100 => 1,
- 106 => 1,
- 117 => 1,
- 121 => 2,
- 125 => 2,
- 163 => 1,
- 172 => 1,
- 228 => 2,
- 232 => 2,
- 244 => 2,
- 248 => 2,
- ];
+ switch ($testFile) {
+ case 'UnusedFunctionParameterUnitTest.1.inc':
+ return [
+ 3 => 1,
+ 7 => 1,
+ 78 => 1,
+ 94 => 1,
+ 100 => 1,
+ 106 => 1,
+ 117 => 1,
+ 121 => 2,
+ 125 => 2,
+ 163 => 1,
+ 172 => 1,
+ 228 => 2,
+ 232 => 2,
+ 244 => 2,
+ 248 => 2,
+ 271 => 1,
+ ];
+
+ default:
+ return [];
+ }//end switch
}//end getWarningList()
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.1.inc b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.1.inc
new file mode 100644
index 00000000..8cdd04d3
--- /dev/null
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.1.inc
@@ -0,0 +1,150 @@
+prop[$a], $this->{$b});
+ }
+
+ public function differentCase() {
+ return parent::DIFFERENTcase();
+ }
+
+ public function differentCaseSameNonAnsiiCharáctêrs() {
+ // This should be flagged, only ASCII chars have changed case.
+ return parent::DIFFERENTcaseSameNonAnsiiCharáctêrs();
+ }
+
+ public function differentCaseDifferentNonAnsiiCharáctêrs() {
+ // This should not be flagged as non-ASCII chars have changed case, making this a different method name.
+ return parent::DIFFERENTcaseDifferentNonAnsiiCharÁctÊrs();
+ }
+
+ public function nestedFunctionShouldBailEarly() {
+ function nestedFunctionShouldBailEarly() {
+ // Invalid code needed to ensure an error is NOT triggered and the sniff bails early when handling nested function.
+ parent::nestedFunctionShouldBailEarly();
+ }
+ }
+}
+
+abstract class AbstractFoo {
+ abstract public function sniffShouldBailEarly();
+
+ public function uselessMethodInAbstractClass() {
+ parent::uselessMethodInAbstractClass();
+ }
+
+ public function usefulMethodInAbstractClass() {
+ $a = 1;
+ parent::usefulMethodInAbstractClass($a);
+ }
+}
+
+interface InterfaceFoo {
+ public function sniffShouldBailEarly();
+}
+
+trait TraitFoo {
+ abstract public function sniffShouldBailEarly();
+
+ public function usefulMethodInTrait() {
+ parent::usefulMethodInTrait();
+
+ return 1;
+ }
+
+ public function uselessMethodInTrait() {
+ return parent::uselessMethodInTrait();
+ }
+}
+
+enum EnumFoo {
+ public function sniffShouldBailEarly() {
+ // Invalid code needed to ensure an error is NOT triggered and the sniff bails early when handling an enum method.
+ parent::sniffShouldBailEarly();
+ }
+}
+
+function shouldBailEarly() {
+ // Invalid code needed to ensure an error is NOT triggered and the sniff bails early when handling a regular function.
+ parent::shouldBailEarly();
+}
+
+$anon = new class extends ParentClass {
+ public function uselessOverridingMethod() {
+ parent::uselessOverridingMethod();
+ }
+
+ public function usefulOverridingMethod() {
+ $a = 10;
+ parent::usefulOverridingMethod($a);
+ }
+};
+
+function foo() {
+ $anon = new class extends ParentClass {
+ public function uselessOverridingMethod() {
+ parent::uselessOverridingMethod();
+ }
+ };
+}
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.2.inc b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.2.inc
new file mode 100644
index 00000000..a1e82df7
--- /dev/null
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.2.inc
@@ -0,0 +1,7 @@
+
*/
- public function getWarningList()
+ public function getWarningList($testFile='')
{
- return [
- 4 => 1,
- 16 => 1,
- ];
+ switch ($testFile) {
+ case 'UselessOverridingMethodUnitTest.1.inc':
+ return [
+ 4 => 1,
+ 16 => 1,
+ 38 => 1,
+ 56 => 1,
+ 68 => 1,
+ 72 => 1,
+ 93 => 1,
+ 116 => 1,
+ 134 => 1,
+ 146 => 1,
+ ];
+ default:
+ return [];
+ }
}//end getWarningList()
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.inc b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.1.inc
similarity index 98%
rename from vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.inc
rename to vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.1.inc
index bcd8256d..543dd2d6 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.inc
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.1.inc
@@ -259,4 +259,12 @@
* @return void
*/
-/** No docblock close tag. Must be last test without new line.
\ No newline at end of file
+// Tests to check handling empty doc comments.
+/**
+ */
+
+/**
+ *
+ *
+ *
+ */
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.inc.fixed b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.1.inc.fixed
similarity index 98%
rename from vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.inc.fixed
rename to vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.1.inc.fixed
index 7da1c8ae..6728780a 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.inc.fixed
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.1.inc.fixed
@@ -264,4 +264,12 @@
* @return void
*/
-/** No docblock close tag. Must be last test without new line.
\ No newline at end of file
+// Tests to check handling empty doc comments.
+/**
+ */
+
+/**
+ *
+ *
+ *
+ */
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.js b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.1.js
similarity index 95%
rename from vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.js
rename to vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.1.js
index 3506fe0c..bf914411 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.js
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.1.js
@@ -248,3 +248,23 @@
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
* @link http://pear.php.net/package/PHP_CodeSniffer
*/
+
+/**
+ * Do something.
+ *
+ * @codeCoverageIgnore
+ *
+ * @phpcs:disable Stnd.Cat.SniffName
+ *
+ * @return void
+ */
+
+// Tests to check handling empty doc comments.
+/**
+ */
+
+/**
+ *
+ *
+ *
+ */
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.js.fixed b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.1.js.fixed
similarity index 95%
rename from vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.js.fixed
rename to vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.1.js.fixed
index f4ca127d..133b67d3 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.js.fixed
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.1.js.fixed
@@ -253,3 +253,23 @@
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
* @link http://pear.php.net/package/PHP_CodeSniffer
*/
+
+/**
+ * Do something.
+ *
+ * @codeCoverageIgnore
+ *
+ * @phpcs:disable Stnd.Cat.SniffName
+ *
+ * @return void
+ */
+
+// Tests to check handling empty doc comments.
+/**
+ */
+
+/**
+ *
+ *
+ *
+ */
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.2.inc b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.2.inc
new file mode 100644
index 00000000..fc0698fa
--- /dev/null
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.2.inc
@@ -0,0 +1,6 @@
+ int)
*/
- public function getErrorList()
+ public function getErrorList($testFile='')
{
- return [
- 14 => 1,
- 16 => 1,
- 18 => 1,
- 23 => 1,
- 26 => 1,
- 30 => 1,
- 32 => 1,
- 38 => 2,
- 40 => 1,
- 41 => 1,
- 51 => 1,
- 54 => 1,
- 58 => 1,
- 60 => 2,
- 67 => 1,
- 69 => 2,
- 80 => 1,
- 81 => 2,
- 88 => 1,
- 91 => 1,
- 95 => 1,
- 156 => 1,
- 158 => 1,
- 170 => 3,
- 171 => 3,
- 179 => 1,
- 183 => 1,
- 184 => 2,
- 185 => 1,
- 186 => 1,
- 187 => 2,
- 193 => 1,
- 196 => 1,
- 199 => 1,
- 203 => 1,
- 206 => 1,
- 211 => 1,
- 214 => 4,
- 218 => 1,
- 220 => 2,
- 222 => 1,
- 224 => 3,
- 243 => 1,
- 244 => 1,
- 246 => 1,
- 248 => 1,
- 249 => 1,
- ];
+ switch ($testFile) {
+ case 'DocCommentUnitTest.1.inc':
+ case 'DocCommentUnitTest.1.js':
+ return [
+ 14 => 1,
+ 16 => 1,
+ 18 => 1,
+ 23 => 1,
+ 26 => 1,
+ 30 => 1,
+ 32 => 1,
+ 38 => 2,
+ 40 => 1,
+ 41 => 1,
+ 51 => 1,
+ 54 => 1,
+ 58 => 1,
+ 60 => 2,
+ 67 => 1,
+ 69 => 2,
+ 80 => 1,
+ 81 => 2,
+ 88 => 1,
+ 91 => 1,
+ 95 => 1,
+ 156 => 1,
+ 158 => 1,
+ 170 => 3,
+ 171 => 3,
+ 179 => 1,
+ 183 => 1,
+ 184 => 2,
+ 185 => 1,
+ 186 => 1,
+ 187 => 2,
+ 193 => 1,
+ 196 => 1,
+ 199 => 1,
+ 203 => 1,
+ 206 => 1,
+ 211 => 1,
+ 214 => 4,
+ 218 => 1,
+ 220 => 2,
+ 222 => 1,
+ 224 => 3,
+ 243 => 1,
+ 244 => 1,
+ 246 => 1,
+ 248 => 1,
+ 249 => 1,
+ 263 => 1,
+ 266 => 1,
+ ];
+
+ default:
+ return [];
+ }//end switch
}//end getErrorList()
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.php
index 90ee54c4..3b6cff53 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.php
@@ -17,7 +17,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\FixmeSniff
*/
-class FixmeUnitTest extends AbstractSniffUnitTest
+final class FixmeUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/TodoUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/TodoUnitTest.php
index d3300fb1..e617aff9 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/TodoUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/TodoUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\TodoSniff
*/
-class TodoUnitTest extends AbstractSniffUnitTest
+final class TodoUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/DisallowYodaConditionsUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/DisallowYodaConditionsUnitTest.php
index da347410..52fc370a 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/DisallowYodaConditionsUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/DisallowYodaConditionsUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\ControlStructures\DisallowYodaConditionsSniff
*/
-class DisallowYodaConditionsUnitTest extends AbstractSniffUnitTest
+final class DisallowYodaConditionsUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.php
index af4d43ea..44f1d747 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\ControlStructures\InlineControlStructureSniff
*/
-class InlineControlStructureUnitTest extends AbstractSniffUnitTest
+final class InlineControlStructureUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/CSSLintUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/CSSLintUnitTest.php
index 4c17ff25..83f875cb 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/CSSLintUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/CSSLintUnitTest.php
@@ -17,7 +17,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Debug\CSSLintSniff
*/
-class CSSLintUnitTest extends AbstractSniffUnitTest
+final class CSSLintUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/ClosureLinterUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/ClosureLinterUnitTest.php
index ca51f134..6577f69d 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/ClosureLinterUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/ClosureLinterUnitTest.php
@@ -17,7 +17,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Debug\ClosureLinterSniff
*/
-class ClosureLinterUnitTest extends AbstractSniffUnitTest
+final class ClosureLinterUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/ESLintUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/ESLintUnitTest.php
index 584d29c2..824beae4 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/ESLintUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/ESLintUnitTest.php
@@ -17,7 +17,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Debug\ESLintSniff
*/
-class ESLintUnitTest extends AbstractSniffUnitTest
+final class ESLintUnitTest extends AbstractSniffUnitTest
{
/**
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/JSHintUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/JSHintUnitTest.php
index ce980e23..19c0473a 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/JSHintUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Debug/JSHintUnitTest.php
@@ -17,7 +17,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Debug\JSHintSniff
*/
-class JSHintUnitTest extends AbstractSniffUnitTest
+final class JSHintUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.1.inc b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.1.inc
new file mode 100644
index 00000000..a50b6226
--- /dev/null
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.1.inc
@@ -0,0 +1,4 @@
+
\ No newline at end of file
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.2.inc b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.2.inc
new file mode 100644
index 00000000..6d61f0e1
--- /dev/null
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.2.inc
@@ -0,0 +1,3 @@
+
+
+Some HTML
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.3.inc b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.3.inc
new file mode 100644
index 00000000..ff1e2bf7
--- /dev/null
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.3.inc
@@ -0,0 +1 @@
+Some HTML at the beginning of an ANSI/iso-8859-1 encoded file without a byte order mark (BOM) character
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.4.inc b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.4.inc
new file mode 100644
index 00000000..312974a8
Binary files /dev/null and b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.4.inc differ
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.5.inc b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.5.inc
new file mode 100644
index 00000000..7aea9550
Binary files /dev/null and b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.5.inc differ
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.inc b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.inc
deleted file mode 100644
index dc3bf596..00000000
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.php
index b663e2aa..c1c3e292 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\ByteOrderMarkSniff
*/
-class ByteOrderMarkUnitTest extends AbstractSniffUnitTest
+final class ByteOrderMarkUnitTest extends AbstractSniffUnitTest
{
@@ -26,11 +26,21 @@ class ByteOrderMarkUnitTest extends AbstractSniffUnitTest
* The key of the array should represent the line number and the value
* should represent the number of errors that should occur on that line.
*
+ * @param string $testFile The name of the file being tested.
+ *
* @return array
*/
- public function getErrorList()
+ public function getErrorList($testFile='')
{
- return [1 => 1];
+ switch ($testFile) {
+ case 'ByteOrderMarkUnitTest.1.inc':
+ case 'ByteOrderMarkUnitTest.4.inc':
+ case 'ByteOrderMarkUnitTest.5.inc':
+ return [1 => 1];
+
+ default:
+ return [];
+ }
}//end getErrorList()
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.php
index f32100b8..2db35a19 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\EndFileNewlineSniff
*/
-class EndFileNewlineUnitTest extends AbstractSniffUnitTest
+final class EndFileNewlineUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.php
index e0b94a05..e41aa51b 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\EndFileNoNewlineSniff
*/
-class EndFileNoNewlineUnitTest extends AbstractSniffUnitTest
+final class EndFileNoNewlineUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ExecutableFileUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ExecutableFileUnitTest.php
index c42308e2..86767a73 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ExecutableFileUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ExecutableFileUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\ExecutableFileSniff
*/
-class ExecutableFileUnitTest extends AbstractSniffUnitTest
+final class ExecutableFileUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.6.inc b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.6.inc
index db62c623..16a044b8 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.6.inc
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.6.inc
@@ -1,2 +1,2 @@
getBar()?->define('foo');
+
+// PHP 8.3 introduces typed constants.
+class TypedConstants {
+ const MISSING_VALUE; // Parse error.
+ const MyClass MYCONST = new MyClass;
+ const int VALID_NAME = 0;
+ const INT invalid_name = 0;
+ const FALSE false = false; // Yes, false can be used as a constant name, don't ask.
+ const array ARRAY = array(); // Same goes for array.
+}
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.php
index de352ce2..afe36255 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\NamingConventions\UpperCaseConstantNameSniff
*/
-class UpperCaseConstantNameUnitTest extends AbstractSniffUnitTest
+final class UpperCaseConstantNameUnitTest extends AbstractSniffUnitTest
{
@@ -38,6 +38,8 @@ public function getErrorList()
19 => 1,
28 => 1,
30 => 1,
+ 40 => 1,
+ 41 => 1,
];
}//end getErrorList()
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/BacktickOperatorUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/BacktickOperatorUnitTest.php
index fdbb55f3..b2d3c823 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/BacktickOperatorUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/BacktickOperatorUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\BacktickOperatorSniff
*/
-class BacktickOperatorUnitTest extends AbstractSniffUnitTest
+final class BacktickOperatorUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.3.inc b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.3.inc
index c9f4f10e..c0575862 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.3.inc
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.3.inc
@@ -1,3 +1,3 @@
1,
125 => 1,
129 => 1,
+ 149 => 1,
+ 153 => 1,
];
case 'LowerCaseConstantUnitTest.js':
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.php
index a7b708e3..17f0e25d 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\LowerCaseKeywordSniff
*/
-class LowerCaseKeywordUnitTest extends AbstractSniffUnitTest
+final class LowerCaseKeywordUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc
index 56393c0b..6674970e 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc
@@ -95,6 +95,36 @@ $arrow = fn (Int $a, String $b, BOOL $c, Array $d, Foo\Bar $e) : Float => $a * $
$cl = function (False $a, TRUE $b, Null $c): ?True {};
+class TypedClassConstants
+{
+ const UNTYPED = null;
+ const FLOAT = 'Reserved keyword as name is valid and should not be changed';
+ const OBJECT = 'Reserved keyword as name is valid and should not be changed';
+
+ const ClassName FIRST = null;
+ public const Int SECOND = 0;
+ private const ?BOOL THIRD = false;
+ public const Self FOURTH = null;
+}
+interface TypedInterfaceConstants
+{
+ protected const PaRenT FIRST = null;
+ private const ARRAY SECOND = [];
+ public const Float THIRD = 2.5;
+ final const ?STRING FOURTH = 'fourth';
+}
+trait TypedTraitConstants {
+ const IterablE FIRST = null;
+ const Object SECOND = null;
+ const Mixed THIRD = 'third';
+}
+enum TypedEnumConstants {
+ public const Iterable|FALSE|NULL FIRST = null;
+ protected const SELF|Parent /* comment */ |\Fully\Qualified\ClassName|UnQualifiedClass SECOND = null;
+ private const ClassName|/*comment*/Float|STRING|False THIRD = 'third';
+ public const sTRing | aRRaY | FaLSe FOURTH = 'fourth';
+}
+
// Intentional error, should be ignored by the sniff.
interface PropertiesNotAllowed {
public $notAllowed;
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc.fixed b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc.fixed
index c1055c72..59e4af83 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc.fixed
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc.fixed
@@ -95,6 +95,36 @@ $arrow = fn (int $a, string $b, bool $c, array $d, Foo\Bar $e) : float => $a * $
$cl = function (false $a, true $b, null $c): ?true {};
+class TypedClassConstants
+{
+ const UNTYPED = null;
+ const FLOAT = 'Reserved keyword as name is valid and should not be changed';
+ const OBJECT = 'Reserved keyword as name is valid and should not be changed';
+
+ const ClassName FIRST = null;
+ public const int SECOND = 0;
+ private const ?bool THIRD = false;
+ public const self FOURTH = null;
+}
+interface TypedInterfaceConstants
+{
+ protected const parent FIRST = null;
+ private const array SECOND = [];
+ public const float THIRD = 2.5;
+ final const ?string FOURTH = 'fourth';
+}
+trait TypedTraitConstants {
+ const iterable FIRST = null;
+ const object SECOND = null;
+ const mixed THIRD = 'third';
+}
+enum TypedEnumConstants {
+ public const iterable|false|null FIRST = null;
+ protected const self|parent /* comment */ |\Fully\Qualified\ClassName|UnQualifiedClass SECOND = null;
+ private const ClassName|/*comment*/float|string|false THIRD = 'third';
+ public const string | array | false FOURTH = 'fourth';
+}
+
// Intentional error, should be ignored by the sniff.
interface PropertiesNotAllowed {
public $notAllowed;
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.php
index 4e6ccc3b..c5cfbb18 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\LowerCaseTypeSniff
*/
-class LowerCaseTypeUnitTest extends AbstractSniffUnitTest
+final class LowerCaseTypeUnitTest extends AbstractSniffUnitTest
{
@@ -31,48 +31,62 @@ class LowerCaseTypeUnitTest extends AbstractSniffUnitTest
public function getErrorList()
{
return [
- 14 => 1,
- 15 => 1,
- 16 => 1,
- 17 => 1,
- 18 => 1,
- 21 => 4,
- 22 => 3,
- 23 => 3,
- 25 => 1,
- 26 => 2,
- 27 => 2,
- 32 => 4,
- 36 => 1,
- 37 => 1,
- 38 => 1,
- 39 => 1,
- 43 => 2,
- 44 => 1,
- 46 => 1,
- 49 => 1,
- 51 => 2,
- 53 => 1,
- 55 => 2,
- 60 => 1,
- 61 => 1,
- 62 => 1,
- 63 => 1,
- 64 => 1,
- 65 => 1,
- 66 => 1,
- 67 => 1,
- 68 => 1,
- 69 => 1,
- 71 => 3,
- 72 => 2,
- 73 => 3,
- 74 => 3,
- 78 => 3,
- 82 => 2,
- 85 => 1,
- 94 => 5,
- 96 => 4,
+ 14 => 1,
+ 15 => 1,
+ 16 => 1,
+ 17 => 1,
+ 18 => 1,
+ 21 => 4,
+ 22 => 3,
+ 23 => 3,
+ 25 => 1,
+ 26 => 2,
+ 27 => 2,
+ 32 => 4,
+ 36 => 1,
+ 37 => 1,
+ 38 => 1,
+ 39 => 1,
+ 43 => 2,
+ 44 => 1,
+ 46 => 1,
+ 49 => 1,
+ 51 => 2,
+ 53 => 1,
+ 55 => 2,
+ 60 => 1,
+ 61 => 1,
+ 62 => 1,
+ 63 => 1,
+ 64 => 1,
+ 65 => 1,
+ 66 => 1,
+ 67 => 1,
+ 68 => 1,
+ 69 => 1,
+ 71 => 3,
+ 72 => 2,
+ 73 => 3,
+ 74 => 3,
+ 78 => 3,
+ 82 => 2,
+ 85 => 1,
+ 94 => 5,
+ 96 => 4,
+ 105 => 1,
+ 106 => 1,
+ 107 => 1,
+ 111 => 1,
+ 112 => 1,
+ 113 => 1,
+ 114 => 1,
+ 117 => 1,
+ 118 => 1,
+ 119 => 1,
+ 122 => 3,
+ 123 => 2,
+ 124 => 3,
+ 125 => 3,
];
}//end getErrorList()
@@ -89,7 +103,7 @@ public function getErrorList()
public function getWarningList()
{
// Warning from getMemberProperties() about parse error.
- return [100 => 1];
+ return [130 => 1];
}//end getWarningList()
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.php
index 43f76281..b4e383c3 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\NoSilencedErrorsSniff
*/
-class NoSilencedErrorsUnitTest extends AbstractSniffUnitTest
+final class NoSilencedErrorsUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.php
index c311266d..9ef6ad8c 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\RequireStrictTypesSniff
*/
-class RequireStrictTypesUnitTest extends AbstractSniffUnitTest
+final class RequireStrictTypesUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SAPIUsageUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SAPIUsageUnitTest.php
index 9835b061..9ee274b6 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SAPIUsageUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SAPIUsageUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\SAPIUsageSniff
*/
-class SAPIUsageUnitTest extends AbstractSniffUnitTest
+final class SAPIUsageUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SyntaxUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SyntaxUnitTest.php
index 0069cf57..58433eb1 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SyntaxUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SyntaxUnitTest.php
@@ -17,7 +17,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\SyntaxSniff
*/
-class SyntaxUnitTest extends AbstractSniffUnitTest
+final class SyntaxUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.php
index dcfe8014..481c4ab1 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\UpperCaseConstantSniff
*/
-class UpperCaseConstantUnitTest extends AbstractSniffUnitTest
+final class UpperCaseConstantUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.php
index ce08934b..c08918d1 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Strings\UnnecessaryStringConcatSniff
*/
-class UnnecessaryStringConcatUnitTest extends AbstractSniffUnitTest
+final class UnnecessaryStringConcatUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/VersionControl/GitMergeConflictUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/VersionControl/GitMergeConflictUnitTest.php
index f6751825..bc966384 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/VersionControl/GitMergeConflictUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/VersionControl/GitMergeConflictUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\VersionControl\GitMergeConflictSniff
*/
-class GitMergeConflictUnitTest extends AbstractSniffUnitTest
+final class GitMergeConflictUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/VersionControl/SubversionPropertiesUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/VersionControl/SubversionPropertiesUnitTest.php
index 32c7fc9d..7be9cc0e 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/VersionControl/SubversionPropertiesUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/VersionControl/SubversionPropertiesUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\VersionControl\SubversionPropertiesSniff
*/
-class SubversionPropertiesUnitTest extends AbstractSniffUnitTest
+final class SubversionPropertiesUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.1.inc b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.1.inc
index 8e17dbb6..4ce05084 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.1.inc
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.1.inc
@@ -180,3 +180,13 @@ class NonArbitraryParenthesesWithKeywords {
$b = match ( $a ) {
1 => true,
};
+
+// Parentheses after die/exit in a switch case should be ignored.
+switch ( $type ) {
+ case A:
+ exit( 1 );
+ case B:
+ die();
+ default:
+ break;
+}
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.1.inc.fixed b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.1.inc.fixed
index c215753c..a0022808 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.1.inc.fixed
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.1.inc.fixed
@@ -168,3 +168,13 @@ class NonArbitraryParenthesesWithKeywords {
$b = match ( $a ) {
1 => true,
};
+
+// Parentheses after die/exit in a switch case should be ignored.
+switch ( $type ) {
+ case A:
+ exit( 1 );
+ case B:
+ die();
+ default:
+ break;
+}
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.php
index 48875433..64ca21a9 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\ArbitraryParenthesesSpacingSniff
*/
-class ArbitraryParenthesesSpacingUnitTest extends AbstractSniffUnitTest
+final class ArbitraryParenthesesSpacingUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.php
index 799568a1..2f21d2ee 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\DisallowSpaceIndentSniff
*/
-class DisallowSpaceIndentUnitTest extends AbstractSniffUnitTest
+final class DisallowSpaceIndentUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.php
index de688e08..7a5f15e9 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\DisallowTabIndentSniff
*/
-class DisallowTabIndentUnitTest extends AbstractSniffUnitTest
+final class DisallowTabIndentUnitTest extends AbstractSniffUnitTest
{
@@ -103,7 +103,7 @@ public function getErrorList($testFile='')
];
case 'DisallowTabIndentUnitTest.3.inc':
- if (\PHP_VERSION_ID >= 70300) {
+ if (PHP_VERSION_ID >= 70300) {
return [
7 => 1,
13 => 1,
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.inc b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.inc
index b674466b..535053b0 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.inc
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.inc
@@ -35,3 +35,9 @@ $obj->prop['key'] ++;
--ClassName::$prop;
-- ClassName::$prop;
+
+getObject()->count
+++;
+getObject()->count++;
+++ getObject()->count;
+++getObject()->count;
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.inc.fixed b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.inc.fixed
index 1049e7e0..c30332b2 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.inc.fixed
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.inc.fixed
@@ -34,3 +34,8 @@ $obj->prop['key']++;
--ClassName::$prop;
--ClassName::$prop;
+
+getObject()->count++;
+getObject()->count++;
+++getObject()->count;
+++getObject()->count;
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.php
index ce6e114d..91e34933 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\IncrementDecrementSpacingSniff
*/
-class IncrementDecrementSpacingUnitTest extends AbstractSniffUnitTest
+final class IncrementDecrementSpacingUnitTest extends AbstractSniffUnitTest
{
@@ -53,6 +53,8 @@ public function getErrorList($testFile='')
$errors[31] = 1;
$errors[34] = 1;
$errors[37] = 1;
+ $errors[40] = 1;
+ $errors[42] = 1;
return $errors;
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.php
index 0ac7e6d8..adac2c84 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\LanguageConstructSpacingSniff
*/
-class LanguageConstructSpacingUnitTest extends AbstractSniffUnitTest
+final class LanguageConstructSpacingUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php
index feb4fd67..2533b434 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\ScopeIndentSniff
*/
-class ScopeIndentUnitTest extends AbstractSniffUnitTest
+final class ScopeIndentUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.php
index 7192f668..90842320 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\SpreadOperatorSpacingAfterSniff
*/
-class SpreadOperatorSpacingAfterUnitTest extends AbstractSniffUnitTest
+final class SpreadOperatorSpacingAfterUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/CSS/BrowserSpecificStylesSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/CSS/BrowserSpecificStylesSniff.php
index 9d02672d..904769e1 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/CSS/BrowserSpecificStylesSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/CSS/BrowserSpecificStylesSniff.php
@@ -5,6 +5,8 @@
* @author Greg Sherwood
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
+ *
+ * @deprecated 3.9.0
*/
namespace PHP_CodeSniffer\Standards\MySource\Sniffs\CSS;
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/DisallowSelfActionsSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/DisallowSelfActionsSniff.php
index 241104d0..91004a84 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/DisallowSelfActionsSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/DisallowSelfActionsSniff.php
@@ -5,6 +5,8 @@
* @author Greg Sherwood
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
+ *
+ * @deprecated 3.9.0
*/
namespace PHP_CodeSniffer\Standards\MySource\Sniffs\Channels;
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/IncludeOwnSystemSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/IncludeOwnSystemSniff.php
index 2ff91c97..83bb5ff3 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/IncludeOwnSystemSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/IncludeOwnSystemSniff.php
@@ -5,6 +5,8 @@
* @author Greg Sherwood
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
+ *
+ * @deprecated 3.9.0
*/
namespace PHP_CodeSniffer\Standards\MySource\Sniffs\Channels;
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/IncludeSystemSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/IncludeSystemSniff.php
index 85d7f765..063dab4a 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/IncludeSystemSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/IncludeSystemSniff.php
@@ -5,6 +5,8 @@
* @author Greg Sherwood
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
+ *
+ * @deprecated 3.9.0
*/
namespace PHP_CodeSniffer\Standards\MySource\Sniffs\Channels;
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/UnusedSystemSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/UnusedSystemSniff.php
index 7f960510..0f20f70b 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/UnusedSystemSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/UnusedSystemSniff.php
@@ -5,6 +5,8 @@
* @author Greg Sherwood
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
+ *
+ * @deprecated 3.9.0
*/
namespace PHP_CodeSniffer\Standards\MySource\Sniffs\Channels;
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Commenting/FunctionCommentSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Commenting/FunctionCommentSniff.php
index d5f09b6f..da00c903 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Commenting/FunctionCommentSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Commenting/FunctionCommentSniff.php
@@ -7,6 +7,8 @@
* @author Greg Sherwood
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
+ *
+ * @deprecated 3.9.0
*/
namespace PHP_CodeSniffer\Standards\MySource\Sniffs\Commenting;
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Debug/DebugCodeSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Debug/DebugCodeSniff.php
index 1ae6ba30..d40e064e 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Debug/DebugCodeSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Debug/DebugCodeSniff.php
@@ -5,6 +5,8 @@
* @author Greg Sherwood
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
+ *
+ * @deprecated 3.9.0
*/
namespace PHP_CodeSniffer\Standards\MySource\Sniffs\Debug;
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Debug/FirebugConsoleSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Debug/FirebugConsoleSniff.php
index 77b86669..1f56a0e2 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Debug/FirebugConsoleSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Debug/FirebugConsoleSniff.php
@@ -5,6 +5,8 @@
* @author Greg Sherwood
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
+ *
+ * @deprecated 3.9.0
*/
namespace PHP_CodeSniffer\Standards\MySource\Sniffs\Debug;
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/AssignThisSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/AssignThisSniff.php
index a126dce3..97732872 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/AssignThisSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/AssignThisSniff.php
@@ -5,6 +5,8 @@
* @author Greg Sherwood
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
+ *
+ * @deprecated 3.9.0
*/
namespace PHP_CodeSniffer\Standards\MySource\Sniffs\Objects;
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/CreateWidgetTypeCallbackSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/CreateWidgetTypeCallbackSniff.php
index 25e48dc7..5d8dc996 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/CreateWidgetTypeCallbackSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/CreateWidgetTypeCallbackSniff.php
@@ -5,6 +5,8 @@
* @author Greg Sherwood
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
+ *
+ * @deprecated 3.9.0
*/
namespace PHP_CodeSniffer\Standards\MySource\Sniffs\Objects;
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/DisallowNewWidgetSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/DisallowNewWidgetSniff.php
index ecb57e53..693a0371 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/DisallowNewWidgetSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/DisallowNewWidgetSniff.php
@@ -5,6 +5,8 @@
* @author Greg Sherwood
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
+ *
+ * @deprecated 3.9.0
*/
namespace PHP_CodeSniffer\Standards\MySource\Sniffs\Objects;
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/AjaxNullComparisonSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/AjaxNullComparisonSniff.php
index 71c31da3..06c25127 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/AjaxNullComparisonSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/AjaxNullComparisonSniff.php
@@ -8,6 +8,8 @@
* @author Greg Sherwood
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
+ *
+ * @deprecated 3.9.0
*/
namespace PHP_CodeSniffer\Standards\MySource\Sniffs\PHP;
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/EvalObjectFactorySniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/EvalObjectFactorySniff.php
index 3b775aff..6684691f 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/EvalObjectFactorySniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/EvalObjectFactorySniff.php
@@ -5,6 +5,8 @@
* @author Greg Sherwood
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
+ *
+ * @deprecated 3.9.0
*/
namespace PHP_CodeSniffer\Standards\MySource\Sniffs\PHP;
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/GetRequestDataSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/GetRequestDataSniff.php
index bdb34527..a0767796 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/GetRequestDataSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/GetRequestDataSniff.php
@@ -5,6 +5,8 @@
* @author Greg Sherwood
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
+ *
+ * @deprecated 3.9.0
*/
namespace PHP_CodeSniffer\Standards\MySource\Sniffs\PHP;
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/ReturnFunctionValueSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/ReturnFunctionValueSniff.php
index 1696837e..697e91dc 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/ReturnFunctionValueSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/ReturnFunctionValueSniff.php
@@ -5,6 +5,8 @@
* @author Greg Sherwood
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
+ *
+ * @deprecated 3.9.0
*/
namespace PHP_CodeSniffer\Standards\MySource\Sniffs\PHP;
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Strings/JoinStringsSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Strings/JoinStringsSniff.php
index 968873e7..ee527b41 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Strings/JoinStringsSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Strings/JoinStringsSniff.php
@@ -5,6 +5,8 @@
* @author Greg Sherwood
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
+ *
+ * @deprecated 3.9.0
*/
namespace PHP_CodeSniffer\Standards\MySource\Sniffs\Strings;
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/CSS/BrowserSpecificStylesUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/CSS/BrowserSpecificStylesUnitTest.php
index 30049591..7f10457c 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/CSS/BrowserSpecificStylesUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/CSS/BrowserSpecificStylesUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers PHP_CodeSniffer\Standards\MySource\Sniffs\CSS\BrowserSpecificStylesSniff
*/
-class BrowserSpecificStylesUnitTest extends AbstractSniffUnitTest
+final class BrowserSpecificStylesUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.php
index 9233a2f5..30a62d13 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers PHP_CodeSniffer\Standards\MySource\Sniffs\Channels\DisallowSelfActionsSniff
*/
-class DisallowSelfActionsUnitTest extends AbstractSniffUnitTest
+final class DisallowSelfActionsUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.php
index 40753565..635054d3 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers PHP_CodeSniffer\Standards\MySource\Sniffs\Channels\IncludeSystemSniff
*/
-class IncludeSystemUnitTest extends AbstractSniffUnitTest
+final class IncludeSystemUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/UnusedSystemUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/UnusedSystemUnitTest.php
index b3455ac3..05359a48 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/UnusedSystemUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/UnusedSystemUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers PHP_CodeSniffer\Standards\MySource\Sniffs\Channels\UnusedSystemSniff
*/
-class UnusedSystemUnitTest extends AbstractSniffUnitTest
+final class UnusedSystemUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Commenting/FunctionCommentUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Commenting/FunctionCommentUnitTest.php
index 8a3d7066..07c62a95 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Commenting/FunctionCommentUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Commenting/FunctionCommentUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers PHP_CodeSniffer\Standards\MySource\Sniffs\Commenting\FunctionCommentSniff
*/
-class FunctionCommentUnitTest extends AbstractSniffUnitTest
+final class FunctionCommentUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/DebugCodeUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/DebugCodeUnitTest.php
index d8f80118..1f85b23e 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/DebugCodeUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/DebugCodeUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers PHP_CodeSniffer\Standards\MySource\Sniffs\Debug\DebugCodeSniff
*/
-class DebugCodeUnitTest extends AbstractSniffUnitTest
+final class DebugCodeUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/FirebugConsoleUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/FirebugConsoleUnitTest.php
index 3a88a0ec..8b9d6043 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/FirebugConsoleUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/FirebugConsoleUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers PHP_CodeSniffer\Standards\MySource\Sniffs\Debug\FirebugConsoleSniff
*/
-class FirebugConsoleUnitTest extends AbstractSniffUnitTest
+final class FirebugConsoleUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/AssignThisUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/AssignThisUnitTest.php
index 4b056a7f..7e44a857 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/AssignThisUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/AssignThisUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers PHP_CodeSniffer\Standards\MySource\Sniffs\Objects\AssignThisSniff
*/
-class AssignThisUnitTest extends AbstractSniffUnitTest
+final class AssignThisUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.php
index 55b93375..5c9ca8e5 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers PHP_CodeSniffer\Standards\MySource\Sniffs\Objects\CreateWidgetTypeCallbackSniff
*/
-class CreateWidgetTypeCallbackUnitTest extends AbstractSniffUnitTest
+final class CreateWidgetTypeCallbackUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/DisallowNewWidgetUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/DisallowNewWidgetUnitTest.php
index 3fa24532..04935604 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/DisallowNewWidgetUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/DisallowNewWidgetUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers PHP_CodeSniffer\Standards\MySource\Sniffs\Objects\DisallowNewWidgetSniff
*/
-class DisallowNewWidgetUnitTest extends AbstractSniffUnitTest
+final class DisallowNewWidgetUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/AjaxNullComparisonUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/AjaxNullComparisonUnitTest.php
index 606b9f40..fa39de07 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/AjaxNullComparisonUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/AjaxNullComparisonUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers PHP_CodeSniffer\Standards\MySource\Sniffs\PHP\AjaxNullComparisonSniff
*/
-class AjaxNullComparisonUnitTest extends AbstractSniffUnitTest
+final class AjaxNullComparisonUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.php
index 85a8c3c0..e98ee285 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers PHP_CodeSniffer\Standards\MySource\Sniffs\PHP\EvalObjectFactorySniff
*/
-class EvalObjectFactoryUnitTest extends AbstractSniffUnitTest
+final class EvalObjectFactoryUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/GetRequestDataUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/GetRequestDataUnitTest.php
index 747fae12..f079325b 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/GetRequestDataUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/GetRequestDataUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers PHP_CodeSniffer\Standards\MySource\Sniffs\PHP\GetRequestDataSniff
*/
-class GetRequestDataUnitTest extends AbstractSniffUnitTest
+final class GetRequestDataUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/ReturnFunctionValueUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/ReturnFunctionValueUnitTest.php
index 3859a03b..ce860461 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/ReturnFunctionValueUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/ReturnFunctionValueUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers PHP_CodeSniffer\Standards\MySource\Sniffs\PHP\ReturnFunctionValueSniff
*/
-class ReturnFunctionValueUnitTest extends AbstractSniffUnitTest
+final class ReturnFunctionValueUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Strings/JoinStringsUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Strings/JoinStringsUnitTest.php
index a2c43dce..b3392233 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Strings/JoinStringsUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Strings/JoinStringsUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers PHP_CodeSniffer\Standards\MySource\Sniffs\Strings\JoinStringsSniff
*/
-class JoinStringsUnitTest extends AbstractSniffUnitTest
+final class JoinStringsUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php
index 1c12e301..c47466a0 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php
@@ -122,18 +122,18 @@ public function process(File $phpcsFile, $stackPtr)
if ($tokens[$commentStart]['code'] === T_CLOSE_TAG) {
// We are only interested if this is the first open tag.
- return ($phpcsFile->numTokens + 1);
+ return $phpcsFile->numTokens;
} else if ($tokens[$commentStart]['code'] === T_COMMENT) {
$error = 'You must use "/**" style comments for a file comment';
$phpcsFile->addError($error, $errorToken, 'WrongStyle');
$phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'yes');
- return ($phpcsFile->numTokens + 1);
+ return $phpcsFile->numTokens;
} else if ($commentStart === false
|| $tokens[$commentStart]['code'] !== T_DOC_COMMENT_OPEN_TAG
) {
$phpcsFile->addError('Missing file doc comment', $errorToken, 'Missing');
$phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'no');
- return ($phpcsFile->numTokens + 1);
+ return $phpcsFile->numTokens;
}
$commentEnd = $tokens[$commentStart]['comment_closer'];
@@ -178,7 +178,7 @@ public function process(File $phpcsFile, $stackPtr)
if (in_array($tokens[$nextToken]['code'], $ignore, true) === true) {
$phpcsFile->addError('Missing file doc comment', $stackPtr, 'Missing');
$phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'no');
- return ($phpcsFile->numTokens + 1);
+ return $phpcsFile->numTokens;
}
$phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'yes');
@@ -205,7 +205,7 @@ public function process(File $phpcsFile, $stackPtr)
$this->processTags($phpcsFile, $stackPtr, $commentStart);
// Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
+ return $phpcsFile->numTokens;
}//end process()
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/FunctionCommentSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/FunctionCommentSniff.php
index 48ff5f25..ee242cf6 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/FunctionCommentSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/FunctionCommentSniff.php
@@ -60,10 +60,10 @@ public function register()
public function process(File $phpcsFile, $stackPtr)
{
$scopeModifier = $phpcsFile->getMethodProperties($stackPtr)['scope'];
- if ($scopeModifier === 'protected'
- && $this->minimumVisibility === 'public'
- || $scopeModifier === 'private'
- && ($this->minimumVisibility === 'public' || $this->minimumVisibility === 'protected')
+ if (($scopeModifier === 'protected'
+ && $this->minimumVisibility === 'public')
+ || ($scopeModifier === 'private'
+ && ($this->minimumVisibility === 'public' || $this->minimumVisibility === 'protected'))
) {
return;
}
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.php
index b751fd8d..12648cc0 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\Classes\ClassDeclarationSniff
*/
-class ClassDeclarationUnitTest extends AbstractSniffUnitTest
+final class ClassDeclarationUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.php
index 72421766..d60c0fe8 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting\ClassCommentSniff
*/
-class ClassCommentUnitTest extends AbstractSniffUnitTest
+final class ClassCommentUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.php
index 52bcd587..661885d2 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting\FileCommentSniff
*/
-class FileCommentUnitTest extends AbstractSniffUnitTest
+final class FileCommentUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.php
index bf379c65..62863be6 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting\FunctionCommentSniff
*/
-class FunctionCommentUnitTest extends AbstractSniffUnitTest
+final class FunctionCommentUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php
index ca2ac643..457b5d89 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting\InlineCommentSniff
*/
-class InlineCommentUnitTest extends AbstractSniffUnitTest
+final class InlineCommentUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.php
index ef8b9468..b387a93e 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\ControlStructures\ControlSignatureSniff
*/
-class ControlSignatureUnitTest extends AbstractSniffUnitTest
+final class ControlSignatureUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.php
index aadaea94..263906d1 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\ControlStructures\MultiLineConditionSniff
*/
-class MultiLineConditionUnitTest extends AbstractSniffUnitTest
+final class MultiLineConditionUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.php
index 5b7aecfd..70d63ec4 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\Files\IncludingFileSniff
*/
-class IncludingFileUnitTest extends AbstractSniffUnitTest
+final class IncludingFileUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.php
index d817996a..1be3296c 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\Formatting\MultiLineAssignmentSniff
*/
-class MultiLineAssignmentUnitTest extends AbstractSniffUnitTest
+final class MultiLineAssignmentUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.php
index f6d456ac..5884bd8f 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\FunctionCallSignatureSniff
*/
-class FunctionCallSignatureUnitTest extends AbstractSniffUnitTest
+final class FunctionCallSignatureUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.php
index 43cffff0..04f846bc 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\FunctionDeclarationSniff
*/
-class FunctionDeclarationUnitTest extends AbstractSniffUnitTest
+final class FunctionDeclarationUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.php
index 5c2450b9..c91e2dc6 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\ValidDefaultValueSniff
*/
-class ValidDefaultValueUnitTest extends AbstractSniffUnitTest
+final class ValidDefaultValueUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.php
index 1b38fde7..504e8d66 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\NamingConventions\ValidClassNameSniff
*/
-class ValidClassNameUnitTest extends AbstractSniffUnitTest
+final class ValidClassNameUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.php
index 6d921238..80a40d48 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\NamingConventions\ValidFunctionNameSniff
*/
-class ValidFunctionNameUnitTest extends AbstractSniffUnitTest
+final class ValidFunctionNameUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.php
index 5b3e58f0..c98af3bc 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\NamingConventions\ValidVariableNameSniff
*/
-class ValidVariableNameUnitTest extends AbstractSniffUnitTest
+final class ValidVariableNameUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.php
index fa34ed48..9beb77fe 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace\ObjectOperatorIndentSniff
*/
-class ObjectOperatorIndentUnitTest extends AbstractSniffUnitTest
+final class ObjectOperatorIndentUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php
index 2683d6b1..45689433 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace\ScopeClosingBraceSniff
*/
-class ScopeClosingBraceUnitTest extends AbstractSniffUnitTest
+final class ScopeClosingBraceUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php
index cb350e70..3c6fd4a5 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace\ScopeIndentSniff
*/
-class ScopeIndentUnitTest extends AbstractSniffUnitTest
+final class ScopeIndentUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Sniffs/Files/SideEffectsSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Sniffs/Files/SideEffectsSniff.php
index 5f22b1f9..68a18d8c 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Sniffs/Files/SideEffectsSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Sniffs/Files/SideEffectsSniff.php
@@ -56,7 +56,7 @@ public function process(File $phpcsFile, $stackPtr)
}
// Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
+ return $phpcsFile->numTokens;
}//end process()
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.php
index 46c3a39e..b8c2b6cc 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR1\Sniffs\Classes\ClassDeclarationSniff
*/
-class ClassDeclarationUnitTest extends AbstractSniffUnitTest
+final class ClassDeclarationUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.php
index 73c3c794..c7408ad2 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR1\Sniffs\Files\SideEffectsSniff
*/
-class SideEffectsUnitTest extends AbstractSniffUnitTest
+final class SideEffectsUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Methods/CamelCapsMethodNameUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Methods/CamelCapsMethodNameUnitTest.php
index 3b1efeb2..ffbbb36b 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Methods/CamelCapsMethodNameUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Methods/CamelCapsMethodNameUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR1\Sniffs\Methods\CamelCapsMethodNameSniff
*/
-class CamelCapsMethodNameUnitTest extends AbstractSniffUnitTest
+final class CamelCapsMethodNameUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/ControlStructures/ControlStructureSpacingStandard.xml b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/ControlStructures/ControlStructureSpacingStandard.xml
new file mode 100644
index 00000000..db4fe802
--- /dev/null
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/ControlStructures/ControlStructureSpacingStandard.xml
@@ -0,0 +1,124 @@
+
+
+
+
+
+
+ ($expr) {
+}
+ ]]>
+
+
+ ( $expr) {
+}
+ ]]>
+
+
+
+
+ ($expr) {
+}
+ ]]>
+
+
+ ) {
+}
+ ]]>
+
+
+
+
+
+
+
+ $expr1
+ && $expr2
+) {
+}
+ ]]>
+
+
+ ($expr1
+ && $expr2
+) {
+}
+ ]]>
+
+
+
+
+ $expr1
+ && $expr2
+) {
+}
+ ]]>
+
+
+ $expr1
+ && $expr2
+ && $expr3
+) {
+}
+ ]]>
+
+
+
+
+
+
+
+ ) {
+}
+ ]]>
+
+
+ && $expr2) {
+}
+ ]]>
+
+
+
+
+ ) {
+}
+ ]]>
+
+
+ ) {
+}
+ ]]>
+
+
+
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Files/ImportStatementStandard.xml b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Files/ImportStatementStandard.xml
new file mode 100644
index 00000000..66b58de0
--- /dev/null
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Files/ImportStatementStandard.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+ \Vendor\Package\ClassA as A;
+
+class FooBar extends A
+{
+ // Class content.
+}
+ ]]>
+
+
+
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Functions/NullableTypeDeclarationStandard.xml b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Functions/NullableTypeDeclarationStandard.xml
index 2032c9a6..ac411ffb 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Functions/NullableTypeDeclarationStandard.xml
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Functions/NullableTypeDeclarationStandard.xml
@@ -1,12 +1,12 @@
-
-
-
-
+
+
+
+
+
+ string {
+ // Closure body.
+};
+ ]]>
+
+
+ string {
+ // Closure body.
+};
+ ]]>
+
+
+
+
+ : string {
+ // Function body.
+};
+ ]]>
+
+
+ : string {
+ // Function body.
+};
+ ]]>
+
+
+
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Properties/ConstantVisibilityStandard.xml b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Properties/ConstantVisibilityStandard.xml
new file mode 100644
index 00000000..da9b60a4
--- /dev/null
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Properties/ConstantVisibilityStandard.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+ private const BAR = 'bar';
+}
+ ]]>
+
+
+ const BAR = 'bar';
+}
+ ]]>
+
+
+
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Classes/AnonClassDeclarationSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Classes/AnonClassDeclarationSniff.php
index d4792f5e..552bfea4 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Classes/AnonClassDeclarationSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Classes/AnonClassDeclarationSniff.php
@@ -98,7 +98,7 @@ public function process(File $phpcsFile, $stackPtr)
$indent = str_repeat(' ', ($tokens[$first]['column'] - 1));
$phpcsFile->fixer->beginChangeset();
- if ($tokens[($prev + 1)]['code'] === \T_WHITESPACE) {
+ if ($tokens[($prev + 1)]['code'] === T_WHITESPACE) {
$phpcsFile->fixer->replaceToken(($prev + 1), '');
}
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Classes/ClassInstantiationSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Classes/ClassInstantiationSniff.php
index 2130b8dd..048cb60c 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Classes/ClassInstantiationSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Classes/ClassInstantiationSniff.php
@@ -64,12 +64,14 @@ public function process(File $phpcsFile, $stackPtr)
continue;
}
- // Skip over potential attributes for anonymous classes.
+ // Bow out when this is an anonymous class.
+ // Anonymous classes are the only situation which would allow for an attribute
+ // or for the readonly keyword between "new" and the class "name".
if ($tokens[$i]['code'] === T_ATTRIBUTE
- && isset($tokens[$i]['attribute_closer']) === true
+ || $tokens[$i]['code'] === T_READONLY
+ || $tokens[$i]['code'] === T_ANON_CLASS
) {
- $i = $tokens[$i]['attribute_closer'];
- continue;
+ return;
}
if ($tokens[$i]['code'] === T_OPEN_SQUARE_BRACKET
@@ -87,11 +89,6 @@ public function process(File $phpcsFile, $stackPtr)
return;
}
- if ($tokens[$classNameEnd]['code'] === T_ANON_CLASS) {
- // Ignore anon classes.
- return;
- }
-
if ($tokens[$classNameEnd]['code'] === T_OPEN_PARENTHESIS) {
// Using parenthesis.
return;
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Files/DeclareStatementSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Files/DeclareStatementSniff.php
index b59d6c5c..d9615f9a 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Files/DeclareStatementSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Files/DeclareStatementSniff.php
@@ -110,6 +110,12 @@ public function process(File $phpcsFile, $stackPtr)
// There should be no space between equal sign and directive value.
$value = $phpcsFile->findNext(T_WHITESPACE, ($equals + 1), null, true);
+
+ if ($value === false) {
+ // Live coding / parse error.
+ return;
+ }
+
if ($equals !== false) {
if ($tokens[($equals + 1)]['type'] !== 'T_LNUMBER') {
$error = 'Expected no space between equal sign and the directive value in a declare statement';
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Operators/OperatorSpacingSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Operators/OperatorSpacingSniff.php
index 0e58f18c..41628ce3 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Operators/OperatorSpacingSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Operators/OperatorSpacingSniff.php
@@ -35,6 +35,9 @@ public function register()
$targets[] = T_STRING_CONCAT;
$targets[] = T_INSTANCEOF;
+ // Also register the contexts we want to specifically skip over.
+ $targets[] = T_DECLARE;
+
return $targets;
}//end register()
@@ -47,12 +50,25 @@ public function register()
* @param int $stackPtr The position of the current token in
* the stack passed in $tokens.
*
- * @return void
+ * @return void|int Optionally returns a stack pointer. The sniff will not be
+ * called again on the current file until the returned stack
+ * pointer is reached. Return `$phpcsFile->numTokens` to skip
+ * the rest of the file.
*/
public function process(File $phpcsFile, $stackPtr)
{
$tokens = $phpcsFile->getTokens();
+ // Skip over declare statements as those should be handled by different sniffs.
+ if ($tokens[$stackPtr]['code'] === T_DECLARE) {
+ if (isset($tokens[$stackPtr]['parenthesis_closer']) === false) {
+ // Parse error / live coding.
+ return $phpcsFile->numTokens;
+ }
+
+ return $tokens[$stackPtr]['parenthesis_closer'];
+ }
+
if ($this->isOperator($phpcsFile, $stackPtr) === false) {
return;
}
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/AnonClassDeclarationUnitTest.inc b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/AnonClassDeclarationUnitTest.inc
index fe3ee02e..386b12c2 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/AnonClassDeclarationUnitTest.inc
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/AnonClassDeclarationUnitTest.inc
@@ -88,3 +88,9 @@ $instance = new class() extends SomeClass implements
SomeInterface{
public function __construct() {}
};
+
+// PHP 8.3 readonly anonymous classes.
+$anon = new readonly class {};
+$anon = new readonly class {};
+$anon = new readonly
+ class {};
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/AnonClassDeclarationUnitTest.inc.fixed b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/AnonClassDeclarationUnitTest.inc.fixed
index 4a6c5a1f..28b38f70 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/AnonClassDeclarationUnitTest.inc.fixed
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/AnonClassDeclarationUnitTest.inc.fixed
@@ -91,3 +91,8 @@ $instance = new class () extends SomeClass implements
{
public function __construct() {}
};
+
+// PHP 8.3 readonly anonymous classes.
+$anon = new readonly class {};
+$anon = new readonly class {};
+$anon = new readonly class {};
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/AnonClassDeclarationUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/AnonClassDeclarationUnitTest.php
index 736d28cf..24035270 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/AnonClassDeclarationUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/AnonClassDeclarationUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Classes\AnonClassDeclarationSniff
*/
-class AnonClassDeclarationUnitTest extends AbstractSniffUnitTest
+final class AnonClassDeclarationUnitTest extends AbstractSniffUnitTest
{
@@ -55,6 +55,8 @@ public function getErrorList()
75 => 1,
87 => 1,
88 => 1,
+ 94 => 1,
+ 96 => 1,
];
}//end getErrorList()
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.inc b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.inc
index 9fd15480..26411677 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.inc
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.inc
@@ -45,3 +45,7 @@ $anonWithAttribute = new #[SomeAttribute('summary')] class {
$foo = new parent();
$foo = new parent;
+
+// PHP 8.3: safeguard that the sniff ignores anonymous classes, even when declared as readonly.
+$anon = new readonly class {};
+$anon = new #[MyAttribute] readonly class {};
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.inc.fixed b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.inc.fixed
index aa9d0c72..1e580f45 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.inc.fixed
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.inc.fixed
@@ -45,3 +45,7 @@ $anonWithAttribute = new #[SomeAttribute('summary')] class {
$foo = new parent();
$foo = new parent();
+
+// PHP 8.3: safeguard that the sniff ignores anonymous classes, even when declared as readonly.
+$anon = new readonly class {};
+$anon = new #[MyAttribute] readonly class {};
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.php
index 1eb233a3..10356921 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Classes\ClassInstantiationSniff
*/
-class ClassInstantiationUnitTest extends AbstractSniffUnitTest
+final class ClassInstantiationUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/ClosingBraceUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/ClosingBraceUnitTest.php
index ba4be7aa..196de8f5 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/ClosingBraceUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/ClosingBraceUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Classes\ClosingBraceSniff
*/
-class ClosingBraceUnitTest extends AbstractSniffUnitTest
+final class ClosingBraceUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/OpeningBraceSpaceUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/OpeningBraceSpaceUnitTest.php
index 212861e6..c4315fb5 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/OpeningBraceSpaceUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Classes/OpeningBraceSpaceUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Classes\OpeningBraceSpaceSniff
*/
-class OpeningBraceSpaceUnitTest extends AbstractSniffUnitTest
+final class OpeningBraceSpaceUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/ControlStructures/BooleanOperatorPlacementUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/ControlStructures/BooleanOperatorPlacementUnitTest.php
index f7adc003..957ea546 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/ControlStructures/BooleanOperatorPlacementUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/ControlStructures/BooleanOperatorPlacementUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\ControlStructures\BooleanOperatorPlacementSniff
*/
-class BooleanOperatorPlacementUnitTest extends AbstractSniffUnitTest
+final class BooleanOperatorPlacementUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/ControlStructures/ControlStructureSpacingUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/ControlStructures/ControlStructureSpacingUnitTest.php
index a3ada241..69ef8b7c 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/ControlStructures/ControlStructureSpacingUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/ControlStructures/ControlStructureSpacingUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\ControlStructures\ControlStructureSpacingSniff
*/
-class ControlStructureSpacingUnitTest extends AbstractSniffUnitTest
+final class ControlStructureSpacingUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/DeclareStatementUnitTest.inc b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/DeclareStatementUnitTest.1.inc
similarity index 100%
rename from vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/DeclareStatementUnitTest.inc
rename to vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/DeclareStatementUnitTest.1.inc
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/DeclareStatementUnitTest.inc.fixed b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/DeclareStatementUnitTest.1.inc.fixed
similarity index 100%
rename from vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/DeclareStatementUnitTest.inc.fixed
rename to vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/DeclareStatementUnitTest.1.inc.fixed
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/DeclareStatementUnitTest.2.inc b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/DeclareStatementUnitTest.2.inc
new file mode 100644
index 00000000..01c3a016
--- /dev/null
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/DeclareStatementUnitTest.2.inc
@@ -0,0 +1,3 @@
+
*/
- public function getErrorList()
+ public function getErrorList($testFile='')
{
- return [
- 2 => 1,
- 3 => 1,
- 4 => 1,
- 5 => 2,
- 6 => 1,
- 7 => 1,
- 9 => 2,
- 10 => 1,
- 11 => 3,
- 12 => 2,
- 13 => 1,
- 14 => 2,
- 16 => 3,
- 19 => 3,
- 22 => 1,
- 24 => 1,
- 26 => 3,
- 28 => 3,
- 34 => 2,
- 43 => 1,
- 46 => 1,
- 47 => 1,
- 49 => 1,
- ];
+ switch ($testFile) {
+ case 'DeclareStatementUnitTest.1.inc':
+ return [
+ 2 => 1,
+ 3 => 1,
+ 4 => 1,
+ 5 => 2,
+ 6 => 1,
+ 7 => 1,
+ 9 => 2,
+ 10 => 1,
+ 11 => 3,
+ 12 => 2,
+ 13 => 1,
+ 14 => 2,
+ 16 => 3,
+ 19 => 3,
+ 22 => 1,
+ 24 => 1,
+ 26 => 3,
+ 28 => 3,
+ 34 => 2,
+ 43 => 1,
+ 46 => 1,
+ 47 => 1,
+ 49 => 1,
+ ];
+ default:
+ return [];
+ }//end switch
}//end getErrorList()
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.php
index 58f1ec91..01122342 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Files\FileHeaderSniff
*/
-class FileHeaderUnitTest extends AbstractSniffUnitTest
+final class FileHeaderUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/ImportStatementUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/ImportStatementUnitTest.php
index 3774a433..86bca2d0 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/ImportStatementUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/ImportStatementUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Files\ImportStatementSniff
*/
-class ImportStatementUnitTest extends AbstractSniffUnitTest
+final class ImportStatementUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/OpenTagUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/OpenTagUnitTest.php
index 815a4c23..898334e4 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/OpenTagUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Files/OpenTagUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Files\OpenTagSniff
*/
-class OpenTagUnitTest extends AbstractSniffUnitTest
+final class OpenTagUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Functions/NullableTypeDeclarationUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Functions/NullableTypeDeclarationUnitTest.php
index ff3e105a..828ec4d8 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Functions/NullableTypeDeclarationUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Functions/NullableTypeDeclarationUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Functions\NullableTypeDeclarationSniff
*/
-class NullableTypeDeclarationUnitTest extends AbstractSniffUnitTest
+final class NullableTypeDeclarationUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Functions/ReturnTypeDeclarationUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Functions/ReturnTypeDeclarationUnitTest.php
index ce059e02..d2962e8d 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Functions/ReturnTypeDeclarationUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Functions/ReturnTypeDeclarationUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Functions\ReturnTypeDeclarationSniff
*/
-class ReturnTypeDeclarationUnitTest extends AbstractSniffUnitTest
+final class ReturnTypeDeclarationUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Keywords/ShortFormTypeKeywordsUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Keywords/ShortFormTypeKeywordsUnitTest.php
index 5713520f..e0fc38f4 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Keywords/ShortFormTypeKeywordsUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Keywords/ShortFormTypeKeywordsUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Keywords\ShortFormTypeKeywordsSniff
*/
-class ShortFormTypeKeywordsUnitTest extends AbstractSniffUnitTest
+final class ShortFormTypeKeywordsUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Namespaces/CompoundNamespaceDepthUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Namespaces/CompoundNamespaceDepthUnitTest.php
index 367f8aa6..4ad77882 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Namespaces/CompoundNamespaceDepthUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Namespaces/CompoundNamespaceDepthUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Namespaces\CompoundNamespaceDepthSniff
*/
-class CompoundNamespaceDepthUnitTest extends AbstractSniffUnitTest
+final class CompoundNamespaceDepthUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.inc b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.1.inc
similarity index 98%
rename from vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.inc
rename to vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.1.inc
index c067e6a2..14cf8e9d 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.inc
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.1.inc
@@ -75,3 +75,5 @@ function setDefault(#[ImportValue(
{
// Do something
}
+
+declare(strict_types=1);
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.inc.fixed b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.1.inc.fixed
similarity index 98%
rename from vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.inc.fixed
rename to vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.1.inc.fixed
index 76764291..0f52f1cf 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.inc.fixed
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.1.inc.fixed
@@ -75,3 +75,5 @@ function setDefault(#[ImportValue(
{
// Do something
}
+
+declare(strict_types=1);
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.2.inc b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.2.inc
new file mode 100644
index 00000000..3a0dbac3
--- /dev/null
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.2.inc
@@ -0,0 +1,3 @@
+
*/
- public function getErrorList()
+ public function getErrorList($testFile='')
{
- return [
- 2 => 1,
- 3 => 2,
- 4 => 1,
- 5 => 2,
- 6 => 4,
- 9 => 3,
- 10 => 2,
- 11 => 3,
- 13 => 3,
- 14 => 2,
- 18 => 1,
- 20 => 1,
- 22 => 2,
- 23 => 2,
- 26 => 1,
- 37 => 4,
- 39 => 1,
- 40 => 1,
- 44 => 2,
- 47 => 2,
- ];
+ switch ($testFile) {
+ case 'OperatorSpacingUnitTest.1.inc':
+ return [
+ 2 => 1,
+ 3 => 2,
+ 4 => 1,
+ 5 => 2,
+ 6 => 4,
+ 9 => 3,
+ 10 => 2,
+ 11 => 3,
+ 13 => 3,
+ 14 => 2,
+ 18 => 1,
+ 20 => 1,
+ 22 => 2,
+ 23 => 2,
+ 26 => 1,
+ 37 => 4,
+ 39 => 1,
+ 40 => 1,
+ 44 => 2,
+ 47 => 2,
+ ];
+ default:
+ return [];
+ }//end switch
}//end getErrorList()
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Properties/ConstantVisibilityUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Properties/ConstantVisibilityUnitTest.php
index 98038db6..6c39e7cc 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Properties/ConstantVisibilityUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Properties/ConstantVisibilityUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Properties\ConstantVisibilitySniff
*/
-class ConstantVisibilityUnitTest extends AbstractSniffUnitTest
+final class ConstantVisibilityUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Traits/UseDeclarationUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Traits/UseDeclarationUnitTest.php
index 76893883..383d59c8 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Traits/UseDeclarationUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Traits/UseDeclarationUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Traits\UseDeclarationSniff
*/
-class UseDeclarationUnitTest extends AbstractSniffUnitTest
+final class UseDeclarationUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php
index 6d59b89a..22cf2abc 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php
@@ -65,42 +65,51 @@ public function processOpen(File $phpcsFile, $stackPtr)
$stackPtrType = strtolower($tokens[$stackPtr]['content']);
// Check alignment of the keyword and braces.
- if ($tokens[($stackPtr - 1)]['code'] === T_WHITESPACE) {
- $prevContent = $tokens[($stackPtr - 1)]['content'];
- if ($prevContent !== $phpcsFile->eolChar) {
- $blankSpace = substr($prevContent, strpos($prevContent, $phpcsFile->eolChar));
- $spaces = strlen($blankSpace);
-
- if (in_array($tokens[($stackPtr - 2)]['code'], [T_ABSTRACT, T_FINAL, T_READONLY], true) === true
- && $spaces !== 1
- ) {
- $prevContent = strtolower($tokens[($stackPtr - 2)]['content']);
- $error = 'Expected 1 space between %s and %s keywords; %s found';
- $data = [
- $prevContent,
- $stackPtrType,
- $spaces,
- ];
-
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceBeforeKeyword', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr - 1), ' ');
- }
- }
- } else if ($tokens[($stackPtr - 2)]['code'] === T_ABSTRACT
- || $tokens[($stackPtr - 2)]['code'] === T_FINAL
- || $tokens[($stackPtr - 2)]['code'] === T_READONLY
- ) {
- $prevContent = strtolower($tokens[($stackPtr - 2)]['content']);
- $error = 'Expected 1 space between %s and %s keywords; newline found';
- $data = [
- $prevContent,
+ $classModifiers = [
+ T_ABSTRACT => T_ABSTRACT,
+ T_FINAL => T_FINAL,
+ T_READONLY => T_READONLY,
+ ];
+
+ $prevNonSpace = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
+ $prevNonEmpty = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($stackPtr - 1), null, true);
+
+ if (isset($classModifiers[$tokens[$prevNonEmpty]['code']]) === true) {
+ $spaces = 0;
+ $errorCode = 'SpaceBeforeKeyword';
+ if ($tokens[$prevNonEmpty]['line'] !== $tokens[$stackPtr]['line']) {
+ $spaces = 'newline';
+ $errorCode = 'NewlineBeforeKeyword';
+ } else if ($tokens[($stackPtr - 1)]['code'] === T_WHITESPACE) {
+ $spaces = $tokens[($stackPtr - 1)]['length'];
+ }
+
+ if ($spaces !== 1) {
+ $error = 'Expected 1 space between %s and %s keywords; %s found';
+ $data = [
+ strtolower($tokens[$prevNonEmpty]['content']),
$stackPtrType,
+ $spaces,
];
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NewlineBeforeKeyword', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr - 1), ' ');
+ if ($prevNonSpace !== $prevNonEmpty) {
+ // Comment found between modifier and class keyword. Do not auto-fix.
+ $phpcsFile->addError($error, $stackPtr, $errorCode, $data);
+ } else {
+ $fix = $phpcsFile->addFixableError($error, $stackPtr, $errorCode, $data);
+ if ($fix === true) {
+ if ($spaces === 0) {
+ $phpcsFile->fixer->addContentBefore($stackPtr, ' ');
+ } else {
+ $phpcsFile->fixer->beginChangeset();
+ $phpcsFile->fixer->replaceToken(($stackPtr - 1), ' ');
+ for ($i = ($stackPtr - 2); $i > $prevNonSpace; $i--) {
+ $phpcsFile->fixer->replaceToken($i, ' ');
+ }
+
+ $phpcsFile->fixer->endChangeset();
+ }
+ }
}
}//end if
}//end if
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Classes/PropertyDeclarationSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Classes/PropertyDeclarationSniff.php
index 550e0458..29d7023e 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Classes/PropertyDeclarationSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Classes/PropertyDeclarationSniff.php
@@ -9,6 +9,7 @@
namespace PHP_CodeSniffer\Standards\PSR2\Sniffs\Classes;
+use Exception;
use PHP_CodeSniffer\Files\File;
use PHP_CodeSniffer\Sniffs\AbstractVariableSniff;
use PHP_CodeSniffer\Util\Tokens;
@@ -66,7 +67,7 @@ protected function processMemberVar(File $phpcsFile, $stackPtr)
if (empty($propertyInfo) === true) {
return;
}
- } catch (\Exception $e) {
+ } catch (Exception $e) {
// Turns out not to be a property after all.
return;
}
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Files/EndFileNewlineSniff.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Files/EndFileNewlineSniff.php
index d5e3e069..5b2d2817 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Files/EndFileNewlineSniff.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Files/EndFileNewlineSniff.php
@@ -43,7 +43,7 @@ public function register()
public function process(File $phpcsFile, $stackPtr)
{
if ($phpcsFile->findNext(T_INLINE_HTML, ($stackPtr + 1)) !== false) {
- return ($phpcsFile->numTokens + 1);
+ return $phpcsFile->numTokens;
}
// Skip to the end of the file.
@@ -64,7 +64,7 @@ public function process(File $phpcsFile, $stackPtr)
}
$phpcsFile->recordMetric($stackPtr, 'Number of newlines at EOF', '0');
- return ($phpcsFile->numTokens + 1);
+ return $phpcsFile->numTokens;
}
// Go looking for the last non-empty line.
@@ -99,7 +99,7 @@ public function process(File $phpcsFile, $stackPtr)
}
// Skip the rest of the file.
- return ($phpcsFile->numTokens + 1);
+ return $phpcsFile->numTokens;
}//end process()
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.inc b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.inc
index f241a1a2..303846b7 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.inc
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.inc
@@ -257,3 +257,28 @@ if (!class_exists('IndentedDeclaration')) {
}
}
+
+// Space between modifier and class keyword would not be flagged nor fixed if newline + indentation.
+final
+ class FinalClassWithIndentation
+ {
+ }
+
+readonly
+ class ReadonlyClassWithIndentation
+ {
+ }
+
+// And would also not be flagged if there was a comment between (not auto-fixable).
+final/*comment*/class FinalClassWithComment
+{
+}
+abstract /*comment*/ class AbstractClassWithComment
+{
+}
+
+readonly
+ // comment
+ class ReadonlyClassWithComment
+ {
+ }
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.inc.fixed b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.inc.fixed
index bb723187..78dbbbb4 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.inc.fixed
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.inc.fixed
@@ -247,3 +247,26 @@ if (!class_exists('IndentedDeclaration')) {
function foo() {}
}
}
+
+// Space between modifier and class keyword would not be flagged nor fixed if newline + indentation.
+final class FinalClassWithIndentation
+{
+ }
+
+readonly class ReadonlyClassWithIndentation
+{
+ }
+
+// And would also not be flagged if there was a comment between (not auto-fixable).
+final/*comment*/class FinalClassWithComment
+{
+}
+abstract /*comment*/ class AbstractClassWithComment
+{
+}
+
+readonly
+ // comment
+ class ReadonlyClassWithComment
+ {
+ }
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.php
index df574cb3..b74d811c 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\Classes\ClassDeclarationSniff
*/
-class ClassDeclarationUnitTest extends AbstractSniffUnitTest
+final class ClassDeclarationUnitTest extends AbstractSniffUnitTest
{
@@ -71,6 +71,11 @@ public function getErrorList()
244 => 1,
248 => 1,
258 => 1,
+ 263 => 1,
+ 268 => 1,
+ 273 => 1,
+ 276 => 1,
+ 282 => 1,
];
}//end getErrorList()
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.php
index 377b664f..bf7dc29a 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\Classes\PropertyDeclarationSniff
*/
-class PropertyDeclarationUnitTest extends AbstractSniffUnitTest
+final class PropertyDeclarationUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.php
index 0ddd9a44..a8ab73e1 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures\ControlStructureSpacingSniff
*/
-class ControlStructureSpacingUnitTest extends AbstractSniffUnitTest
+final class ControlStructureSpacingUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.php
index d6466896..79d46542 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures\ElseIfDeclarationSniff
*/
-class ElseIfDeclarationUnitTest extends AbstractSniffUnitTest
+final class ElseIfDeclarationUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.php
index cd4c19f1..a292503d 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures\SwitchDeclarationSniff
*/
-class SwitchDeclarationUnitTest extends AbstractSniffUnitTest
+final class SwitchDeclarationUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.php
index b840ec0e..85ba6e34 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\Files\ClosingTagSniff
*/
-class ClosingTagUnitTest extends AbstractSniffUnitTest
+final class ClosingTagUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.php
index f50cbf6d..9a983e80 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\Files\EndFileNewlineSniff
*/
-class EndFileNewlineUnitTest extends AbstractSniffUnitTest
+final class EndFileNewlineUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.php
index 6abee067..52cda174 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\FunctionCallSignatureSniff
*/
-class FunctionCallSignatureUnitTest extends AbstractSniffUnitTest
+final class FunctionCallSignatureUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.php
index f3def527..d6886ac9 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\FunctionClosingBraceSniff
*/
-class FunctionClosingBraceUnitTest extends AbstractSniffUnitTest
+final class FunctionClosingBraceUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.php
index e3603c68..3654a0f6 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\MethodDeclarationSniff
*/
-class MethodDeclarationUnitTest extends AbstractSniffUnitTest
+final class MethodDeclarationUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.php b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.php
index 999b5b49..e4282262 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.php
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.php
@@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\Namespaces\NamespaceDeclarationSniff
*/
-class NamespaceDeclarationUnitTest extends AbstractSniffUnitTest
+final class NamespaceDeclarationUnitTest extends AbstractSniffUnitTest
{
diff --git a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.17.inc b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.17.inc
index f0f664ad..5bc9618d 100644
--- a/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.17.inc
+++ b/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.17.inc
@@ -1,3 +1,3 @@
['bar'];
-]]>
+ ]]>
[ 'bar' ];
-]]>
+ ]]>