Browse Source

:octocat: dependency update

smiley 6 months ago
parent
commit
07250c45a7
2 changed files with 11 additions and 8 deletions
  1. 3 3
      composer.json
  2. 8 5
      phpcs.xml.dist

+ 3 - 3
composer.json

@@ -54,13 +54,13 @@
 	"require-dev": {
 		"ext-fileinfo": "*",
 		"chillerlan/php-authenticator": "^4.3.1 || ^5.2.1",
-		"phan/phan": "^5.4.5",
+		"phan/phan": "^5.4.6",
 		"phpcompatibility/php-compatibility": "10.x-dev",
 		"phpunit/phpunit": "^9.6",
 		"phpmd/phpmd": "^2.15",
 		"setasign/fpdf": "^1.8.2",
-		"slevomat/coding-standard": "^8.15",
-		"squizlabs/php_codesniffer": "^3.11"
+		"slevomat/coding-standard": "^8.19",
+		"squizlabs/php_codesniffer": "^3.13"
 	},
 	"suggest": {
 		"chillerlan/php-authenticator": "Yet another Google authenticator! Also creates URIs for mobile apps.",

+ 8 - 5
phpcs.xml.dist

@@ -124,9 +124,9 @@
 		<exclude-pattern>examples</exclude-pattern>
 	</rule>
 
-	<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat">
+	<rule ref="SlevomatCodingStandard.TypeHints.DNFTypeHintFormat">
 		<properties>
-			<property name="enable" value="false"/>
+			<property name="nullPosition" value="last"/>
 		</properties>
 	</rule>
 
@@ -156,8 +156,6 @@
 	<rule ref="Generic.ControlStructures.InlineControlStructure"/>
 	<rule ref="Generic.Formatting.DisallowMultipleStatements"/>
 	<!--<rule ref="Generic.Formatting.MultipleStatementAlignment"/>-->
-	<rule ref="Generic.Formatting.NoSpaceAfterCast"/>
-	<rule ref="Generic.Functions.CallTimePassByReference"/>
 	<rule ref="Generic.NamingConventions.InterfaceNameSuffix"/>
 	<rule ref="Generic.NamingConventions.TraitNameSuffix"/>
 	<rule ref="Generic.PHP.BacktickOperator"/>
@@ -192,7 +190,6 @@
 
 
 	<rule ref="Squiz.Arrays.ArrayBracketSpacing"/>
-	<rule ref="Squiz.Classes.DuplicateProperty"/>
 	<rule ref="Squiz.Classes.LowercaseClassKeywords"/>
 	<rule ref="Squiz.Classes.SelfMemberReference"/>
 	<rule ref="Squiz.Commenting.DocCommentAlignment"/>
@@ -250,6 +247,12 @@
 		<exclude-pattern>examples</exclude-pattern>
 	</rule>
 
+	<rule ref="Generic.Formatting.SpaceAfterCast">
+		<properties>
+			<property name="spacing" value="0"/>
+		</properties>
+	</rule>
+
 	<rule ref="Generic.Formatting.SpaceAfterNot">
 		<properties>
 			<property name="spacing" value="0" />