Skip to content

Commit 2876076

Browse files
committed
Update dependencies.
composer install now works without having to ignore platform dependencies.
1 parent cd8b2e7 commit 2876076

File tree

5 files changed

+18
-24
lines changed

5 files changed

+18
-24
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
uses: ramsey/composer-install@v3
3535
with:
3636
dependency-versions: ${{ matrix.dependencies }}
37-
composer-options: --ignore-platform-reqs
3837

3938
- name: Run PHPUnit
4039
run: composer phpunit
@@ -55,8 +54,6 @@ jobs:
5554

5655
- name: Composer install
5756
uses: ramsey/composer-install@v3
58-
with:
59-
composer-options: --ignore-platform-reqs
6057

6158
- name: Run PHP CodeSniffer
6259
run: vendor/bin/phpcs --report=checkstyle | cs2pr

CakePHP/Sniffs/Classes/ReturnTypeHintSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function process(File $phpcsFile, $stackPtr)
5858

5959
// We skip for interface methods
6060
if (empty($tokens[$stackPtr]['scope_opener']) || empty($tokens[$stackPtr]['scope_closer'])) {
61-
return [];
61+
return;
6262
}
6363

6464
$returnTokenCode = $tokens[$startIndex]['code'];

CakePHP/Tests/Classes/ReturnTypeHintUnitTestinc.fixed renamed to CakePHP/Tests/Classes/ReturnTypeHintUnitTest.inc.fixed

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<?php
22
namespace Beakman;
33

4-
use Other\Crap;
5-
use Other\Error as OtherError;
6-
74
class Foo
85
{
96
/**

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
"require": {
2121
"php": ">=8.1.0",
2222
"phpstan/phpdoc-parser": "^1.4.5",
23-
"slevomat/coding-standard": "^8.4",
24-
"squizlabs/php_codesniffer": "^3.7.1"
23+
"slevomat/coding-standard": "^8.15",
24+
"squizlabs/php_codesniffer": "^3.9"
2525
},
2626
"require-dev": {
27-
"phpunit/phpunit": "^7.1"
27+
"phpunit/phpunit": "^9.3.4"
2828
},
2929
"autoload": {
3030
"psr-4": {

docs/README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Generic (25 sniffs)
5454
- Generic.WhiteSpace.ScopeIndent
5555

5656
PEAR (1 sniff)
57-
---------------
57+
--------------
5858
- PEAR.Functions.ValidDefaultValue
5959

6060
PSR1 (3 sniffs)
@@ -63,6 +63,18 @@ PSR1 (3 sniffs)
6363
- PSR1.Files.SideEffects
6464
- PSR1.Methods.CamelCapsMethodName
6565

66+
PSR2 (9 sniffs)
67+
---------------
68+
- PSR2.Classes.ClassDeclaration
69+
- PSR2.Classes.PropertyDeclaration
70+
- PSR2.ControlStructures.ElseIfDeclaration
71+
- PSR2.ControlStructures.SwitchDeclaration
72+
- PSR2.Files.ClosingTag
73+
- PSR2.Files.EndFileNewline
74+
- PSR2.Methods.FunctionCallSignature
75+
- PSR2.Methods.FunctionClosingBrace
76+
- PSR2.Methods.MethodDeclaration
77+
6678
PSR12 (17 sniffs)
6779
-----------------
6880
- PSR12.Classes.AnonClassDeclaration
@@ -83,18 +95,6 @@ PSR12 (17 sniffs)
8395
- PSR12.Properties.ConstantVisibility
8496
- PSR12.Traits.UseDeclaration
8597

86-
PSR2 (9 sniffs)
87-
---------------
88-
- PSR2.Classes.ClassDeclaration
89-
- PSR2.Classes.PropertyDeclaration
90-
- PSR2.ControlStructures.ElseIfDeclaration
91-
- PSR2.ControlStructures.SwitchDeclaration
92-
- PSR2.Files.ClosingTag
93-
- PSR2.Files.EndFileNewline
94-
- PSR2.Methods.FunctionCallSignature
95-
- PSR2.Methods.FunctionClosingBrace
96-
- PSR2.Methods.MethodDeclaration
97-
9898
SlevomatCodingStandard (40 sniffs)
9999
----------------------------------
100100
- SlevomatCodingStandard.Arrays.TrailingArrayComma
@@ -170,5 +170,5 @@ Squiz (28 sniffs)
170170
- Squiz.WhiteSpace.SuperfluousWhitespace
171171

172172
Zend (1 sniff)
173-
---------------
173+
--------------
174174
- Zend.NamingConventions.ValidVariableName

0 commit comments

Comments
 (0)