diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml
index f68450a..918d16e 100644
--- a/.github/workflows/php.yml
+++ b/.github/workflows/php.yml
@@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
- php-versions: [ '7.4', '8.0', '8.1' ]
+ php-versions: [ '8.2', '8.3' ]
steps:
- uses: actions/checkout@v2
diff --git a/.gitignore b/.gitignore
index 6c601b6..173d2bd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,5 @@
/vendor/
/composer.phar
/composer.lock
-.phpunit.result.cache
+/.phpunit.cache/
phpcs.cache
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 0e8e4ab..0000000
--- a/Makefile
+++ /dev/null
@@ -1,45 +0,0 @@
-ARGS = $(filter-out $@,$(MAKECMDGOALS))
-MAKEFLAGS += --silent
-
-list:
- sh -c "echo; $(MAKE) -p no_targets__ | awk -F':' '/^[a-zA-Z0-9][^\$$#\/\\t=]*:([^=]|$$)/ {split(\$$1,A,/ /);for(i in A)print A[i]}' | grep -v '__\$$' | grep -v 'Makefile'| sort"
-
-
-#############################
-# Docker machine states
-#############################
-
-up:
- docker-compose up -d
-
-start:
- docker-compose start
-
-build:
- docker-compose build
-
-stop:
- docker-compose stop
-
-state:
- docker-compose ps
-
-rebuild:
- docker-compose stop
- docker-compose pull
- docker-compose rm --force app
- docker-compose build --no-cache --pull
- docker-compose up -d --force-recreate
-
-
-bash:
- docker-compose exec --user application app /bin/bash
-
-root:
- docker-compose exec --user root app /bin/bash
-
-#############################
-# Argument fix workaround
-#############################
-%:
- @:
diff --git a/composer.json b/composer.json
index 9ef89df..7915fc1 100644
--- a/composer.json
+++ b/composer.json
@@ -30,35 +30,35 @@
}
],
"require": {
- "php": "^7.4|^8.0",
+ "php": "^8.2",
- "symfony/framework-bundle": "^4.4|^5.4|^6.0",
- "symfony/config": "^4.4|^5.4|^6.0",
- "symfony/http-kernel": "^4.4|^5.4|^6.0",
- "symfony/dependency-injection": "^4.4|^5.4|^6.0",
- "symfony/form": "^4.4|^5.4|^6.0",
- "symfony/yaml": "^4.4|^5.4|^6.0",
- "symfony/options-resolver": "^4.4|^5.4|^6.0",
- "symfony/property-access": "^4.4|^5.4|^6.0",
- "symfony/property-info": "^4.4|^5.4|^6.0",
+ "symfony/framework-bundle": "^5.4 || ^6.4 || ^7.0",
+ "symfony/config": "^5.4 || ^6.4 || ^7.0",
+ "symfony/http-kernel": "^5.4 || ^6.4 || ^7.0",
+ "symfony/dependency-injection": "^5.4 || ^6.4 || ^7.0",
+ "symfony/form": "^5.4 || ^6.4 || ^7.0",
+ "symfony/yaml": "^5.4 || ^6.4 || ^7.0",
+ "symfony/options-resolver": "^5.4 || ^6.4 || ^7.0",
+ "symfony/property-access": "^5.4 || ^6.4 || ^7.0",
+ "symfony/property-info": "^5.4 || ^6.4 || ^7.0",
- "doctrine/persistence": "^1.3|^2.0|^3.0",
+ "doctrine/persistence": "^3.0",
"webmozart/assert": "^1.9"
},
"require-dev": {
- "icanhazstring/composer-unused": "~0.7",
- "doctrine/coding-standard": "^9.0",
+ "icanhazstring/composer-unused": "~0.8",
+ "doctrine/coding-standard": "^12.0",
"roave/security-advisories": "dev-master",
- "squizlabs/php_codesniffer": "^3.6",
- "phpstan/phpstan": "~1.2",
- "phpstan/phpstan-deprecation-rules": "~1.0",
- "phpstan/phpstan-phpunit": "~1.0",
- "phpstan/phpstan-strict-rules": "~1.1",
- "phpstan/phpstan-webmozart-assert": "~1.0",
- "maglnet/composer-require-checker": "^4.0",
- "phpunit/phpunit": "^9.5",
- "symfony/var-dumper": "^6.0",
- "phpstan/phpstan-symfony": "^1.0"
+ "squizlabs/php_codesniffer": "^3.7",
+ "phpstan/phpstan": "~1.10",
+ "phpstan/phpstan-deprecation-rules": "~1.1",
+ "phpstan/phpstan-phpunit": "~1.3",
+ "phpstan/phpstan-strict-rules": "~1.5",
+ "phpstan/phpstan-webmozart-assert": "~1.2",
+ "maglnet/composer-require-checker": "^4.7",
+ "phpstan/phpstan-symfony": "^1.3",
+ "phpunit/phpunit": "^10.5",
+ "symfony/var-dumper": "^7.0"
},
"autoload": {
"psr-4": {
@@ -74,7 +74,6 @@
"check": [
"@crc",
"@unused",
- "@cs-fix",
"@cs-check",
"@phpstan",
"@phpunit"
diff --git a/docker-compose.yml b/docker-compose.yml
index cb760f3..9fe60d4 100755
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,8 +1,9 @@
version: '3.6'
services:
app:
- image: webdevops/php:7.4
+ image: webdevops/php:8.3
volumes:
- ./:/app/
- env_file:
- - etc/environment.yml
+ environment:
+ PHP_MEMORY_LIMIT: 4G
+ PHP_DATE_TIMEZONE: Europe/Berlin
diff --git a/etc/environment.yml b/etc/environment.yml
deleted file mode 100644
index deb0e78..0000000
--- a/etc/environment.yml
+++ /dev/null
@@ -1,28 +0,0 @@
-#######################################
-# PHP settings
-
-# PHP.ini
-
-php.memory_limit=4G
-php.date.timezone=Europe/Berlin
-
-# php.display_errors=1
-# php.max_execution_time=600
-# php.post_max_size=50M
-# php.upload_max_filesize=50M
-
-# FPM global (master)
-
-# fpm.global.process_control_timeout=5m
-# fpm.global.process.max=100
-
-# FPM pool
-
-# fpm.pool.pm=dynamic
-# fpm.pool.pm.max_children=100
-# fpm.pool.pm.start_servers=20
-# fpm.pool.pm.min_spare_servers=10
-# fpm.pool.pm.max_spare_servers=33
-# fpm.pool.pm.process_idle_timeout=10s
-# fpm.pool.pm.max_requests=1000
-# fpm.pool.request_terminate_timeout=5m
\ No newline at end of file
diff --git a/phpcs.xml b/phpcs.xml
index 13f7d95..1653c8a 100644
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -7,7 +7,7 @@
-
+
src/
tests/
diff --git a/phpunit.xml b/phpunit.xml
index 295e8e9..c971de6 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -1,22 +1,22 @@
+ cacheDirectory=".phpunit.cache"
+ requireCoverageMetadata="true"
+ beStrictAboutCoverageMetadata="true"
+>
+
tests
-
-
-
+
-
+
+
diff --git a/src/DependencyInjection/ShapecodeHiddenEntityTypeExtension.php b/src/DependencyInjection/ShapecodeHiddenEntityTypeExtension.php
index 7eaa949..e87e573 100755
--- a/src/DependencyInjection/ShapecodeHiddenEntityTypeExtension.php
+++ b/src/DependencyInjection/ShapecodeHiddenEntityTypeExtension.php
@@ -11,9 +11,7 @@
class ShapecodeHiddenEntityTypeExtension extends Extension
{
- /**
- * @inheritDoc
- */
+ /** @inheritDoc */
public function load(array $configs, ContainerBuilder $container): void
{
$locator = new FileLocator(__DIR__ . '/../Resources/config');
diff --git a/src/Form/DataTransformer/ObjectToIdTransformer.php b/src/Form/DataTransformer/ObjectToIdTransformer.php
index b428f30..2100d73 100755
--- a/src/Form/DataTransformer/ObjectToIdTransformer.php
+++ b/src/Form/DataTransformer/ObjectToIdTransformer.php
@@ -13,52 +13,40 @@
use function is_string;
use function sprintf;
-/**
- * @template-extends Transformer