Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
- '6.4.*'
- '7.0.*'
include:
- description: 'Symfony 8'
php: '8.4'
symfony-versions: '8.0.*'
coverage: 'none'
- description: 'Log Code Coverage'
php: '8.3'
symfony-versions: '^7.0'
Expand Down Expand Up @@ -60,6 +64,8 @@ jobs:
composer require symfony/dependency-injection:${{ matrix.symfony-versions }} --no-update --no-scripts
composer require symfony/http-kernel:${{ matrix.symfony-versions }} --no-update --no-scripts
composer require symfony/routing:${{ matrix.symfony-versions }} --no-update --no-scripts
composer require symfony/event-dispatcher:${{ matrix.symfony-versions }} --no-update --no-scripts
composer require --dev symfony/framework-bundle:${{ matrix.symfony-versions }} --no-update --no-scripts
composer require --dev symfony/yaml:${{ matrix.symfony-versions }} --no-update --no-scripts
composer require --dev symfony/browser-kit:${{ matrix.symfony-versions }} --no-update --no-scripts
- name: Install dependencies
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.PHONY: cs-fix rector

cs-fix:
vendor/bin/phpcbf

rector:
vendor/bin/rector process --config rector.php
29 changes: 18 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@
"type": "library",
"require": {
"php": "^8.1",
"symfony/config": "^6.4 || ^7.0",
"symfony/dependency-injection": "^6.4 || ^7.0",
"symfony/http-kernel": "^6.4 || ^7.0",
"symfony/routing": "^6.4 || ^7.0",
"symfony/event-dispatcher": "^6.4 || ^7.0"
"symfony/config": "^6.4 || ^7.0 || ^8.0",
"symfony/dependency-injection": "^6.4 || ^7.0 || ^8.0",
"symfony/http-kernel": "^6.4 || ^7.0 || ^8.0",
"symfony/routing": "^6.4 || ^7.0 || ^8.0",
"symfony/event-dispatcher": "^6.4 || ^7.0 || ^8.0"
},
"require-dev": {
"symfony/browser-kit": "^6.0",
"phpunit/phpunit": "^10.5",
"squizlabs/php_codesniffer": "^3.8",
"symfony/yaml": "^6.4 || ^7.0",
"symfony/framework-bundle": "^6.4 || ^7.0",
"phpstan/phpstan-symfony": "^1.3 || ^2.0"
"symfony/browser-kit": "^6.4 || ^7.0 || ^8.0",
"phpunit/phpunit": "^12.5",
"squizlabs/php_codesniffer": "^4.0",
"symfony/yaml": "^6.4 || ^7.0 || ^8.0",
"symfony/framework-bundle": "^6.4 || ^7.0 || ^8.0",
"phpstan/phpstan-symfony": "^2.0",
"rector/rector": "^2.3"
},
"autoload": {
"psr-4": {
Expand All @@ -35,6 +36,12 @@
}
},
"scripts": {
"cs-fix": [
"vendor/bin/phpcbf"
],
"rector": [
"vendor/bin/rector process --config rector.php"
],
"validate": [
"composer validate"
]
Expand Down
14 changes: 13 additions & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,19 @@

<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array" value="eval=>NULL,dd=>NULL,die=>NULL,var_dump=>NULL,dump=>NULL,sizeof=>count,delete=>unset,print=>echo,echo=>NULL,print_r=>NULL,create_function=>NULL"/>
<property name="forbiddenFunctions" type="array">
<element key="eval"/>
<element key="dd"/>
<element key="die"/>
<element key="var_dump"/>
<element key="dump"/>
<element key="sizeof" value="count"/>
<element key="delete" value="unset"/>
<element key="print" value="echo"/>
<element key="echo"/>
<element key="print_r"/>
<element key="create_function"/>
</property>
</properties>
</rule>
<rule ref="Squiz.WhiteSpace.FunctionSpacing">
Expand Down
14 changes: 14 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;

return RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withTypeCoverageLevel(0)
->withDeadCodeLevel(0)
->withCodeQualityLevel(0);
2 changes: 1 addition & 1 deletion src/DeprecatedRoutesBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

final class DeprecatedRoutesBundle extends Bundle
{
public function build(ContainerBuilder $container)
public function build(ContainerBuilder $container): void
{
parent::build($container);
}
Expand Down
Loading