Skip to content

Commit 5f8b1e3

Browse files
author
Artem Henvald
committed
Update
1 parent 321c2bd commit 5f8b1e3

File tree

9 files changed

+38
-50
lines changed

9 files changed

+38
-50
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: 'Setup PHP'
4242
uses: shivammathur/setup-php@v2
4343
with:
44-
php-version: 8.0
44+
php-version: 8.1
4545
ini-values: memory_limit=-1
4646
coverage: none
4747
tools: composer:v2
@@ -66,7 +66,7 @@ jobs:
6666
- name: 'Setup PHP'
6767
uses: shivammathur/setup-php@v2
6868
with:
69-
php-version: 8.0
69+
php-version: 8.1
7070
ini-values: memory_limit=-1
7171
coverage: none
7272
tools: composer:v2
@@ -86,13 +86,12 @@ jobs:
8686
fail-fast: false
8787
matrix:
8888
php-version:
89-
- '7.3'
9089
- '7.4'
9190
- '8.0'
91+
- '8.1'
9292
symfony-version:
93-
- '5.0'
94-
- '5.1'
95-
- '5.2'
93+
- '5.3'
94+
- '5.4'
9695
steps:
9796
- name: 'Checkout Code'
9897
uses: actions/checkout@v2
@@ -127,7 +126,7 @@ jobs:
127126
- name: 'Setup PHP'
128127
uses: shivammathur/setup-php@v2
129128
with:
130-
php-version: 7.3
129+
php-version: 8.1
131130
ini-values: memory_limit=-1
132131
coverage: pcov
133132
tools: composer:v2

Command/GenerateDocsCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ class GenerateDocsCommand extends Command
2424
{
2525
protected static $defaultName = 'swagger:generate-docs';
2626

27-
/** @var Generator */
28-
private $generator;
27+
private Generator $generator;
2928

3029
/**
3130
* @param Generator $generator

Config/ConfigParser.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
*/
2121
class ConfigParser
2222
{
23-
/** @var string */
24-
private $configFolder;
23+
private string $configFolder;
2524

2625
/**
2726
* @param string $configFolder

Generator/Generator.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,11 @@
2121
*/
2222
class Generator
2323
{
24-
/** @var Environment */
25-
private $twig;
24+
private Environment $twig;
2625

27-
/** @var ConfigParser */
28-
private $configParser;
26+
private ConfigParser $configParser;
2927

30-
/** @var string */
31-
private $docsFolder;
28+
private string$docsFolder;
3229

3330
/**
3431
* @param Environment $twig

Tests/Config/ConfigParserTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717

1818
final class ConfigParserTest extends TestCase
1919
{
20-
/** @var ConfigParser */
21-
private $configParser;
20+
private ConfigParser $configParser;
2221

2322
protected function setUp(): void
2423
{

Tests/Generator/GeneratorTest.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,19 @@
2121

2222
final class GeneratorTest extends TestCase
2323
{
24-
/** @var string */
25-
private $docsFolder = __DIR__.'/Fixtures/';
24+
private string $docsFolder = __DIR__.'/Fixtures/';
2625

27-
/** @var string */
28-
private $docsFile = __DIR__.'/Fixtures/index.html';
26+
private string $docsFile = __DIR__.'/Fixtures/index.html';
2927

3028
/** @var Environment|MockObject */
3129
private $twig;
3230

3331
/** @var ConfigParser|MockObject */
3432
private $parser;
3533

36-
/** @var Filesystem */
37-
private $filesystem;
34+
private Filesystem $filesystem;
3835

39-
/** @var Generator */
40-
private $generator;
36+
private Generator $generator;
4137

4238
protected function setUp(): void
4339
{

composer.json

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,30 @@
99
"issues": "https://github.com/stfalcon-studio/swagger-bundle/issues"
1010
},
1111
"require": {
12-
"php": ">=7.3",
12+
"php": ">=7.4",
1313
"ext-ctype": "*",
1414
"ext-iconv": "*",
15-
"symfony/console": "^4.4 || ^5.0",
16-
"symfony/flex": "^1.6",
17-
"symfony/framework-bundle": "^4.4 || ^5.0",
18-
"symfony/twig-bundle": "^4.4 || ^5.0",
19-
"symfony/yaml": "^4.4 || ^5.0",
20-
"symfony/asset": "^4.4 || ^5.0",
21-
"symfony/finder": "^4.4 || ^5.0",
15+
"symfony/console": "^5.3",
16+
"symfony/flex": "^1.17",
17+
"symfony/framework-bundle": "^5.3",
18+
"symfony/twig-bundle": "^5.3",
19+
"symfony/yaml": "^5.3",
20+
"symfony/asset": "^5.3",
21+
"symfony/finder": "^5.3",
2222
"symfony/polyfill-ctype": "^1.13",
23-
"twig/twig": "^3.0"
23+
"twig/twig": "^3.3"
2424
},
2525
"require-dev": {
2626
"escapestudios/symfony2-coding-standard": "^3.12",
27-
"friendsofphp/php-cs-fixer": "^3.0",
28-
"phpstan/phpstan": "^0.12",
29-
"phpstan/phpstan-deprecation-rules": "^0.12",
30-
"phpstan/phpstan-doctrine": "^0.12",
31-
"phpstan/phpstan-phpunit": "^0.12",
32-
"thecodingmachine/phpstan-strict-rules": "^0.12",
27+
"phpstan/phpstan": "^1.2",
28+
"phpstan/phpstan-doctrine": "^1.0",
29+
"phpstan/phpstan-phpunit": "^1.0",
30+
"phpstan/phpstan-symfony": "^1.0",
31+
"thecodingmachine/phpstan-strict-rules": "^1.0",
3332
"phpunit/phpunit": "^9.5",
34-
"symfony/dotenv": "^4.4 || ^5.0",
35-
"symfony/filesystem": "^4.4 || ^5.0",
36-
"symfony/phpunit-bridge": "^4.4 || ^5.0"
33+
"symfony/dotenv": "^5.3",
34+
"symfony/filesystem": "^5.3",
35+
"symfony/phpunit-bridge": "^5.3"
3736
},
3837
"autoload": {
3938
"psr-4": {

phpstan.neon

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ includes:
22
- 'vendor/phpstan/phpstan-phpunit/extension.neon'
33
- 'vendor/phpstan/phpstan-phpunit/rules.neon'
44
- 'vendor/phpstan/phpstan-doctrine/extension.neon'
5+
- 'vendor/phpstan/phpstan-symfony/extension.neon'
56
parameters:
6-
level: 8
7-
excludes_analyse:
7+
level: 9
8+
excludePaths:
89
- '%rootDir%/../../../Tests/*'
9-
- '%rootDir%/../../../tests/*'
1010
- '%rootDir%/../../../vendor/*'
1111
fileExtensions:
1212
- 'php'
13-
checkMissingIterableValueType: false
13+
checkGenericClassInNonGenericObjectType: false

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

33
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/9.5/phpunit.xsd"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
55
colors="true"
66
bootstrap="vendor/autoload.php"
77
>

0 commit comments

Comments
 (0)