mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 09:18:24 +00:00 
			
		
		
		
	Compare commits
	
		
			11 Commits
		
	
	
		
			upgrade-ph
			...
			issue719_f
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 0b7651f519 | |||
| 033e1f9aa1 | |||
| 08df1c4ac8 | |||
| 8d6cd0cf63 | |||
| f762f35386 | |||
| 3cc56e7431 | |||
| 243e148c00 | |||
| 382d3ddd42 | |||
| 7fd823f1ee | |||
| 1c80e0b5f5 | |||
| 3923a13b30 | 
| @@ -9,7 +9,7 @@ cache: | ||||
| # Bring in any services we need http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service | ||||
| # See http://docs.gitlab.com/ee/ci/services/README.html for examples. | ||||
| services: | ||||
|     - name: postgis/postgis:14-3.3-alpine | ||||
|     - name: postgis/postgis:12-3.1-alpine | ||||
|       alias: db | ||||
|     - name: redis | ||||
|       alias: redis | ||||
| @@ -21,7 +21,7 @@ variables: | ||||
|     POSTGRES_USER: postgres | ||||
|     POSTGRES_PASSWORD: postgres | ||||
|     # configure database access | ||||
|     DATABASE_URL: postgresql://postgres:postgres@db:5432/postgres?serverVersion=14&charset=utf8 | ||||
|     DATABASE_URL: postgresql://postgres:postgres@db:5432/postgres?serverVersion=12&charset=utf8 | ||||
|     # fetch the chill-app using git submodules | ||||
|     GIT_SUBMODULE_STRATEGY: recursive | ||||
|     REDIS_HOST: redis | ||||
| @@ -37,11 +37,12 @@ stages: | ||||
|  | ||||
| build: | ||||
|     stage: Composer install | ||||
|     image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:php82 | ||||
|     image: registry.gitlab.com/chill-projet/chill-app/php-base-image:7.4 | ||||
|     before_script: | ||||
|         - composer config -g cache-dir "$(pwd)/.cache" | ||||
|         - curl -sS https://getcomposer.org/installer | php | ||||
|         - php -d memory_limit=2G composer.phar config -g cache-dir "$(pwd)/.cache" | ||||
|     script: | ||||
|         - composer install --optimize-autoloader --no-ansi --no-interaction --no-progress | ||||
|         - php -d memory_limit=2G composer.phar install --optimize-autoloader --no-ansi --no-interaction --no-progress | ||||
|     cache: | ||||
|         paths: | ||||
|             - .cache/ | ||||
| @@ -53,12 +54,9 @@ build: | ||||
|  | ||||
| code_style: | ||||
|     stage: Tests | ||||
|     image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:php82 | ||||
|     image: registry.gitlab.com/chill-projet/chill-app/php-base-image:7.4 | ||||
|     script: | ||||
|         - php-cs-fixer fix --dry-run -v --show-progress=none | ||||
|     cache: | ||||
|         paths: | ||||
|             - .cache/ | ||||
|         - bin/grumphp run --tasks=phpcsfixer | ||||
|     artifacts: | ||||
|         expire_in: 30 min | ||||
|         paths: | ||||
| @@ -67,12 +65,9 @@ code_style: | ||||
|  | ||||
| phpstan_tests: | ||||
|     stage: Tests | ||||
|     image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:php82 | ||||
|     image: registry.gitlab.com/chill-projet/chill-app/php-base-image:7.4 | ||||
|     script: | ||||
|         - bin/phpstan | ||||
|     cache: | ||||
|         paths: | ||||
|             - .cache/ | ||||
|         - bin/grumphp run --tasks=phpstan | ||||
|     artifacts: | ||||
|         expire_in: 30 min | ||||
|         paths: | ||||
| @@ -81,9 +76,9 @@ phpstan_tests: | ||||
|  | ||||
| psalm_tests: | ||||
|     stage: Tests | ||||
|     image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:php82 | ||||
|     image: registry.gitlab.com/chill-projet/chill-app/php-base-image:7.4 | ||||
|     script: | ||||
|         - bin/psalm | ||||
|         - bin/grumphp run --tasks=psalm | ||||
|     allow_failure: true | ||||
|     artifacts: | ||||
|         expire_in: 30 min | ||||
| @@ -93,7 +88,7 @@ psalm_tests: | ||||
|  | ||||
| unit_tests: | ||||
|     stage: Tests | ||||
|     image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:php82 | ||||
|     image: registry.gitlab.com/chill-projet/chill-app/php-base-image:7.4 | ||||
|     script: | ||||
|         - php tests/app/bin/console doctrine:migrations:migrate -n | ||||
|         - php -d memory_limit=2G tests/app/bin/console cache:clear --env=dev | ||||
|   | ||||
| @@ -9,24 +9,13 @@ declare(strict_types=1); | ||||
|  * the LICENSE file that was distributed with this source code. | ||||
|  */ | ||||
| 
 | ||||
| $finder = PhpCsFixer\Finder::create(); | ||||
| $config = require __DIR__ . '/tests/app/vendor/drupol/php-conventions/config/php73/php_cs_fixer.config.php'; | ||||
| 
 | ||||
| $finder | ||||
|     ->in(__DIR__.'/src') | ||||
|     ->append([__FILE__]) | ||||
|     ->exclude(['docs/', 'tests/app']) | ||||
|     ->notPath('tests/app') | ||||
|     ->ignoreDotFiles(true) | ||||
|     ->name('**.php') | ||||
| ; | ||||
| 
 | ||||
| $config = new PhpCsFixer\Config(); | ||||
| $config | ||||
|     ->setFinder($finder) | ||||
|     ->setRiskyAllowed(true) | ||||
|     ->setCacheFile('.cache/php-cs-fixer.cache') | ||||
|     ->setUsingCache(true) | ||||
| ; | ||||
|     ->getFinder() | ||||
|     ->ignoreDotFiles(false) | ||||
|     ->notPath('tests/app') | ||||
|     ->name(['.php_cs.dist.php']); | ||||
| 
 | ||||
| $rules = $config->getRules(); | ||||
| 
 | ||||
| @@ -79,42 +68,9 @@ $riskyRules = [ | ||||
|     //    'psr_autoloading' => false,
 | ||||
| ]; | ||||
| 
 | ||||
| $untilFullSwitchToPhp8 = [ | ||||
|     'blank_line_between_import_groups' => false, | ||||
|     'declare_strict_types' => true, | ||||
|     'multiline_whitespace_before_semicolons' => false, | ||||
|     'phpdoc_no_empty_return' => false, | ||||
| ]; | ||||
| 
 | ||||
| $rules = array_merge( | ||||
|     [ | ||||
|         '@PhpCsFixer' => true, | ||||
|         '@PhpCsFixer:risky' => false, | ||||
|         '@Symfony' => false, | ||||
|         '@Symfony:risky' => false, | ||||
|         'ordered_class_elements' => [ | ||||
|             'order' => [ | ||||
|                 'use_trait', | ||||
|                 'constant_public', | ||||
|                 'constant_protected', | ||||
|                 'constant_private', | ||||
|                 'property_public', | ||||
|                 'property_protected', | ||||
|                 'property_private', | ||||
|                 'construct', | ||||
|                 'destruct', | ||||
|                 'magic', | ||||
|                 'phpunit', | ||||
|                 'method_public', | ||||
|                 'method_protected', | ||||
|                 'method_private', | ||||
|             ], | ||||
|             'sort_algorithm' => 'alpha', | ||||
|         ] | ||||
|     ], | ||||
|     $rules, | ||||
|     $riskyRules, | ||||
|     $untilFullSwitchToPhp8, | ||||
|     $riskyRules | ||||
| ); | ||||
| 
 | ||||
| $rules['header_comment']['header'] = trim(file_get_contents(__DIR__ . '/resource/header.txt')); | ||||
| @@ -8,7 +8,7 @@ | ||||
|         "social worker" | ||||
|     ], | ||||
|     "require": { | ||||
|         "php": "^7.4|^8.2", | ||||
|         "php": "^7.4", | ||||
|         "ext-json": "*", | ||||
|         "ext-openssl": "*", | ||||
|         "ext-redis": "*", | ||||
| @@ -64,24 +64,18 @@ | ||||
|     }, | ||||
|     "require-dev": { | ||||
|         "doctrine/doctrine-fixtures-bundle": "^3.3", | ||||
|         "drupol/php-conventions": "^5", | ||||
|         "fakerphp/faker": "^1.13", | ||||
|         "jangregor/phpstan-prophecy": "^1.0", | ||||
|         "nelmio/alice": "^3.8", | ||||
|         "phpspec/prophecy-phpunit": "^2.0", | ||||
|         "phpstan/extension-installer": "^1.2", | ||||
|         "phpstan/phpstan": "^1.9", | ||||
|         "phpstan/phpstan-deprecation-rules": "^1.1", | ||||
|         "phpstan/phpstan-strict-rules": "^1.0", | ||||
|         "phpunit/phpunit": ">= 7.5", | ||||
|         "psalm/plugin-phpunit": "^0.18.4", | ||||
|         "psalm/plugin-symfony": "^4.0.2", | ||||
|         "symfony/debug-bundle": "^5.1", | ||||
|         "symfony/dotenv": "^4.4", | ||||
|         "symfony/maker-bundle": "^1.20", | ||||
|         "symfony/phpunit-bridge": "^4.4", | ||||
|         "symfony/stopwatch": "^4.4", | ||||
|         "symfony/var-dumper": "^4.4", | ||||
|         "vimeo/psalm": "^4.30.0" | ||||
|         "symfony/var-dumper": "^4.4" | ||||
|     }, | ||||
|     "conflict": { | ||||
|         "symfony/symfony": "*" | ||||
|   | ||||
| @@ -129,12 +129,12 @@ This script will : | ||||
|  | ||||
| .. note:: | ||||
|  | ||||
|    In some cases it can happen that an old image (chill_base_php82 or chill_php82) stored in the docker cache will make the script fail. To solve this problem you have to delete the image and the container, before the make init : | ||||
|    In some cases it can happen that an old image (chill_base_php or chill_php) stored in the docker cache will make the script fail. To solve this problem you have to delete the image and the container, before the make init : | ||||
|  | ||||
|     .. code-block:: bash | ||||
|  | ||||
|        docker-compose images php | ||||
|        docker rmi -f chill_php82:prod | ||||
|        docker rmi -f chill_php:prod | ||||
|        docker-compose rm php | ||||
|  | ||||
|  | ||||
|   | ||||
							
								
								
									
										40
									
								
								grumphp.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								grumphp.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,40 @@ | ||||
| imports: | ||||
|     - { | ||||
|           resource: tests/app/vendor/drupol/php-conventions/config/php73/grumphp.yml, | ||||
|       } | ||||
|  | ||||
| parameters: | ||||
|     tasks.phpcsfixer.config: .php_cs.dist.php | ||||
|     tasks.license.name: AGPL-3.0 | ||||
|     tasks.license.holder: Champs-Libres | ||||
|     tasks.license.date_from: 2001 | ||||
|  | ||||
|     tasks.phpcsfixer.allow_risky: true | ||||
|     tasks.phpcsfixer.diff: true | ||||
|     tasks.phpstan.level: 1 | ||||
|     tasks.phpstan.blocking: true | ||||
|     tasks.phpstan.ignore_patterns: | ||||
|         - "/.github/" | ||||
|         - "/.idea/" | ||||
|         - "/build/" | ||||
|         - "/benchmarks/" | ||||
|         - "/docs/" | ||||
|         - "/node_modules/" | ||||
|         - "/resource/" | ||||
|         - "/spec/" | ||||
|         - "/var/" | ||||
|         - "/vendor/" | ||||
|         - "/tests/app" | ||||
|  | ||||
|     # Psalm | ||||
|     tasks.psalm.blocking: true | ||||
|     tasks.psalm.ignore_patterns: | ||||
|         - "/.github/" | ||||
|         - "/.idea/" | ||||
|         - "/build/" | ||||
|         - "/benchmarks/" | ||||
|         - "/node_modules/" | ||||
|         - "/resource/" | ||||
|         - "/spec/" | ||||
|         - "/var/" | ||||
|         - "/vendor/" | ||||
							
								
								
									
										18
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								package.json
									
									
									
									
									
								
							| @@ -1,7 +1,7 @@ | ||||
| { | ||||
|   "name": "chill", | ||||
|   "version": "2.0.0", | ||||
|   "devDependencies": { | ||||
|     "name": "chill", | ||||
|     "version": "2.0.0", | ||||
|     "devDependencies": { | ||||
|     "@alexlafroscia/yaml-merge": "^4.0.0", | ||||
|     "@apidevtools/swagger-cli": "^4.0.4", | ||||
|     "@babel/core": "^7.20.5", | ||||
| @@ -34,12 +34,12 @@ | ||||
|     "webpack-cli": "^5.0.1" | ||||
|   }, | ||||
|   "dependencies": { | ||||
|     "@fullcalendar/core": "^6.1.4", | ||||
|     "@fullcalendar/daygrid": "^6.1.4", | ||||
|     "@fullcalendar/interaction": "^6.1.4", | ||||
|     "@fullcalendar/list": "^6.1.4", | ||||
|     "@fullcalendar/timegrid": "^6.1.4", | ||||
|     "@fullcalendar/vue3": "^6.1.4", | ||||
|     "@fullcalendar/core": "^5.11.0", | ||||
|     "@fullcalendar/daygrid": "^5.11.0", | ||||
|     "@fullcalendar/interaction": "^5.11.0", | ||||
|     "@fullcalendar/list": "^5.11.0", | ||||
|     "@fullcalendar/timegrid": "^5.11.0", | ||||
|     "@fullcalendar/vue3": "^5.11.1", | ||||
|     "@popperjs/core": "^2.9.2", | ||||
|     "dropzone": "^5.7.6", | ||||
|     "es6-promise": "^4.2.8", | ||||
|   | ||||
| @@ -1,301 +0,0 @@ | ||||
| parameters: | ||||
| 	ignoreErrors: | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, Chill\\\\ActivityBundle\\\\Entity\\\\Activity\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillActivityBundle/Controller/ActivityController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a ternary operator condition, Chill\\\\MainBundle\\\\Entity\\\\Scope\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillActivityBundle/Controller/ActivityController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a ternary operator condition, Chill\\\\PersonBundle\\\\Entity\\\\Person\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillActivityBundle/Controller/ActivityController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a ternary operator condition, DateTime\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillActivityBundle/Controller/ActivityController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, Chill\\\\ActivityBundle\\\\Entity\\\\ActivityReasonCategory\\|null given\\.$#" | ||||
| 			count: 3 | ||||
| 			path: src/Bundle/ChillActivityBundle/Controller/ActivityReasonCategoryController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, Chill\\\\ActivityBundle\\\\Entity\\\\ActivityReason\\|null given\\.$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillActivityBundle/Controller/ActivityReasonController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Call to method DateTime\\:\\:setTimezone\\(\\) with incorrect case\\: setTimeZone$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillActivityBundle/Form/ActivityType.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in &&, Chill\\\\PersonBundle\\\\Entity\\\\AccompanyingPeriod\\|null given on the right side\\.$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillActivityBundle/Form/ActivityType.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in an if condition, Chill\\\\AsideActivityBundle\\\\Entity\\\\AsideActivityCategory\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillAsideActivityBundle/src/Entity/AsideActivityCategory.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Call to method DateTimeImmutable\\:\\:setTimezone\\(\\) with incorrect case\\: setTimeZone$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillAsideActivityBundle/src/Form/AsideActivityFormType.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a ternary operator condition, Chill\\\\MainBundle\\\\Entity\\\\Location\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCalendarBundle/Controller/CalendarController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in an if condition, Symfony\\\\Component\\\\Validator\\\\ConstraintViolationListInterface given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCustomFieldsBundle/Command/CreateFieldsOnGroupCommand.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, Chill\\\\CustomFieldsBundle\\\\Entity\\\\CustomFieldsGroup\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCustomFieldsBundle/Controller/CustomFieldController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, Chill\\\\CustomFieldsBundle\\\\Entity\\\\CustomField\\|null given\\.$#" | ||||
| 			count: 3 | ||||
| 			path: src/Bundle/ChillCustomFieldsBundle/Controller/CustomFieldController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a ternary operator condition, Chill\\\\CustomFieldsBundle\\\\Entity\\\\CustomFieldsGroup given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCustomFieldsBundle/Controller/CustomFieldController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, Chill\\\\CustomFieldsBundle\\\\Entity\\\\CustomFieldsGroup\\|null given\\.$#" | ||||
| 			count: 4 | ||||
| 			path: src/Bundle/ChillCustomFieldsBundle/Controller/CustomFieldsGroupController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a ternary operator condition, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldLongChoice.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCustomFieldsBundle/Form/DataTransformer/CustomFieldsGroupToIdTransformer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Call to method Chill\\\\PersonBundle\\\\Entity\\\\Person\\:\\:getFirstName\\(\\) with incorrect case\\: getFirstname$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillEventBundle/Controller/EventController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Call to method Chill\\\\PersonBundle\\\\Entity\\\\Person\\:\\:getLastName\\(\\) with incorrect case\\: getLastname$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillEventBundle/Controller/EventController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Call to method Chill\\\\PersonBundle\\\\Entity\\\\Person\\:\\:getMobilenumber\\(\\) with incorrect case\\: getMobileNumber$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillEventBundle/Controller/EventController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Call to method Chill\\\\PersonBundle\\\\Entity\\\\Person\\:\\:getPhonenumber\\(\\) with incorrect case\\: getPhoneNumber$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillEventBundle/Controller/EventController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, Chill\\\\EventBundle\\\\Entity\\\\Event given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillEventBundle/Controller/EventController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, Chill\\\\EventBundle\\\\Entity\\\\Event\\|null given\\.$#" | ||||
| 			count: 3 | ||||
| 			path: src/Bundle/ChillEventBundle/Controller/EventController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a ternary operator condition, int given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillEventBundle/Controller/EventController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only numeric types are allowed in pre\\-increment, string given\\.$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillEventBundle/Controller/EventController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, Chill\\\\EventBundle\\\\Entity\\\\EventType\\|null given\\.$#" | ||||
| 			count: 4 | ||||
| 			path: src/Bundle/ChillEventBundle/Controller/EventTypeController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, Chill\\\\EventBundle\\\\Entity\\\\Participation\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillEventBundle/Controller/ParticipationController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, Chill\\\\EventBundle\\\\Entity\\\\Role\\|null given\\.$#" | ||||
| 			count: 4 | ||||
| 			path: src/Bundle/ChillEventBundle/Controller/RoleController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, Chill\\\\EventBundle\\\\Entity\\\\Status\\|null given\\.$#" | ||||
| 			count: 4 | ||||
| 			path: src/Bundle/ChillEventBundle/Controller/StatusController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, Chill\\\\MainBundle\\\\Entity\\\\Language\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Command/LoadAndUpdateLanguagesCommand.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in an if condition, Chill\\\\MainBundle\\\\Entity\\\\Language\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Command/LoadAndUpdateLanguagesCommand.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in an if condition, int given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Command/LoadPostalCodesCommand.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, Chill\\\\MainBundle\\\\Entity\\\\Center\\|null given\\.$#" | ||||
| 			count: 3 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/CenterController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Call to method Redis\\:\\:setex\\(\\) with incorrect case\\: setEx$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/ExportController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, Chill\\\\MainBundle\\\\Entity\\\\PermissionsGroup\\|null given\\.$#" | ||||
| 			count: 5 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/PermissionsGroupController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, Chill\\\\MainBundle\\\\Entity\\\\RoleScope\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/PermissionsGroupController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, Chill\\\\MainBundle\\\\Entity\\\\Scope\\|null given\\.$#" | ||||
| 			count: 3 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/ScopeController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, Chill\\\\MainBundle\\\\Entity\\\\GroupCenter\\|null given\\.$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/UserController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, Chill\\\\MainBundle\\\\Entity\\\\User\\|null given\\.$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/UserController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in an if condition, int given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadPostalCodes.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only numeric types are allowed in pre\\-increment, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Export/Formatter/SpreadsheetListFormatter.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in an if condition, int given\\.$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillMainBundle/Form/DataTransformer/IdToEntityDataTransformer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a ternary operator condition, string\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Form/Type/PickUserLocationType.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a ternary operator condition, int\\<0, max\\> given\\.$#" | ||||
| 			count: 4 | ||||
| 			path: src/Bundle/ChillMainBundle/Search/SearchApiQuery.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Call to method Chill\\\\MainBundle\\\\Entity\\\\Address\\:\\:getPostcode\\(\\) with incorrect case\\: getPostCode$#" | ||||
| 			count: 6 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/AddressNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in an if condition, Symfony\\\\Component\\\\Serializer\\\\Mapping\\\\ClassDiscriminatorMapping\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/DoctrineExistingEntityNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Entity/Person.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a ternary operator condition, Chill\\\\PersonBundle\\\\Entity\\\\AccompanyingPeriodParticipation\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Entity/Person.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Call to method Chill\\\\PersonBundle\\\\Entity\\\\Person\\:\\:getFirstName\\(\\) with incorrect case\\: getFirstname$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Form/Type/PickPersonType.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Call to method Chill\\\\PersonBundle\\\\Entity\\\\Person\\:\\:getLastName\\(\\) with incorrect case\\: getLastname$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Form/Type/PickPersonType.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in an if condition, int\\<0, max\\> given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Search/SimilarPersonMatcher.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in &&, null given on the left side\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/MembersEditorNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a ternary operator condition, Chill\\\\PersonBundle\\\\Entity\\\\Household\\\\Household\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonJsonNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a ternary operator condition, array\\<Chill\\\\PersonBundle\\\\Entity\\\\Person\\\\ResidentialAddress\\> given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonJsonNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Call to method Chill\\\\PersonBundle\\\\Entity\\\\Person\\:\\:getDeathdate\\(\\) with incorrect case\\: getDeathDate$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillPersonBundle/Templating/Entity/PersonRender.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, Chill\\\\PersonBundle\\\\Entity\\\\Person\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillReportBundle/Controller/ReportController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Only booleans are allowed in a negated boolean, Chill\\\\ReportBundle\\\\Entity\\\\Report given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillReportBundle/Controller/ReportController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Call to method Chill\\\\ThirdPartyBundle\\\\Entity\\\\ThirdParty\\:\\:setFirstname\\(\\) with incorrect case\\: setFirstName$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillThirdPartyBundle/EventListener/ThirdPartyEventListener.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Dynamic call to static method Chill\\\\ThirdPartyBundle\\\\ThirdPartyType\\\\ThirdPartyTypeProviderInterface\\:\\:getKey\\(\\)\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillThirdPartyBundle/ThirdPartyType/ThirdPartyTypeManager.php | ||||
| @@ -1,819 +0,0 @@ | ||||
| parameters: | ||||
| 	ignoreErrors: | ||||
| 		- | ||||
| 			message: "#^Return type \\(array\\<Chill\\\\ActivityBundle\\\\Entity\\\\Activity\\>\\) of method Chill\\\\ActivityBundle\\\\Repository\\\\ActivityACLAwareRepository\\:\\:findByPerson\\(\\) should be covariant with return type \\(array\\<Chill\\\\ActivityBundle\\\\Repository\\\\Activity\\>\\) of method Chill\\\\ActivityBundle\\\\Repository\\\\ActivityACLAwareRepositoryInterface\\:\\:findByPerson\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillActivityBundle/Repository/ActivityACLAwareRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Return type \\(array\\<Chill\\\\ActivityBundle\\\\Entity\\\\ActivityReason\\>\\) of method Chill\\\\ActivityBundle\\\\Repository\\\\ActivityReasonRepository\\:\\:findAll\\(\\) should be covariant with return type \\(array\\<int, object\\>\\) of method Doctrine\\\\ORM\\\\EntityRepository\\<object\\>\\:\\:findAll\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillActivityBundle/Repository/ActivityReasonRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Return type \\(array\\<array\\<string\\>\\>\\) of method Chill\\\\AsideActivityBundle\\\\Security\\\\AsideActivityVoter\\:\\:getRolesWithHierarchy\\(\\) should be covariant with return type \\(array\\<string, array\\<int, string\\>\\>\\) of method Chill\\\\MainBundle\\\\Security\\\\ProvideRoleHierarchyInterface\\:\\:getRolesWithHierarchy\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillAsideActivityBundle/src/Security/AsideActivityVoter.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$criteria \\(array\\<string, mixed\\>\\) of method Chill\\\\CalendarBundle\\\\Repository\\\\CalendarDocRepository\\:\\:findBy\\(\\) should be contravariant with parameter \\$criteria \\(array\\) of method Chill\\\\CalendarBundle\\\\Repository\\\\CalendarDocRepositoryInterface\\:\\:findBy\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCalendarBundle/Repository/CalendarDocRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$criteria \\(array\\<string, mixed\\>\\) of method Chill\\\\CalendarBundle\\\\Repository\\\\CalendarDocRepository\\:\\:findOneBy\\(\\) should be contravariant with parameter \\$criteria \\(array\\) of method Chill\\\\CalendarBundle\\\\Repository\\\\CalendarDocRepositoryInterface\\:\\:findOneBy\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCalendarBundle/Repository/CalendarDocRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$orderBy \\(array\\<string, 'ASC'\\|'asc'\\|'DESC'\\|'desc'\\>\\|null\\) of method Chill\\\\CalendarBundle\\\\Repository\\\\CalendarDocRepository\\:\\:findBy\\(\\) should be contravariant with parameter \\$orderBy \\(array\\|null\\) of method Chill\\\\CalendarBundle\\\\Repository\\\\CalendarDocRepositoryInterface\\:\\:findBy\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCalendarBundle/Repository/CalendarDocRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Return type \\(array\\<object\\>\\) of method Chill\\\\CalendarBundle\\\\Repository\\\\CalendarDocRepository\\:\\:findAll\\(\\) should be covariant with return type \\(array\\<Chill\\\\CalendarBundle\\\\Entity\\\\CalendarDoc\\>\\) of method Chill\\\\CalendarBundle\\\\Repository\\\\CalendarDocRepositoryInterface\\:\\:findAll\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCalendarBundle/Repository/CalendarDocRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Return type \\(array\\<object\\>\\) of method Chill\\\\CalendarBundle\\\\Repository\\\\CalendarDocRepository\\:\\:findBy\\(\\) should be covariant with return type \\(array\\<Chill\\\\CalendarBundle\\\\Entity\\\\CalendarDoc\\>\\) of method Chill\\\\CalendarBundle\\\\Repository\\\\CalendarDocRepositoryInterface\\:\\:findBy\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCalendarBundle/Repository/CalendarDocRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$subject \\(Chill\\\\CalendarBundle\\\\Entity\\\\CalendarDoc\\) of method Chill\\\\CalendarBundle\\\\Security\\\\Voter\\\\CalendarDocVoter\\:\\:voteOnAttribute\\(\\) should be contravariant with parameter \\$subject \\(mixed\\) of method Symfony\\\\Component\\\\Security\\\\Core\\\\Authorization\\\\Voter\\\\Voter\\:\\:voteOnAttribute\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCalendarBundle/Security/Voter/CalendarDocVoter.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$subject \\(Chill\\\\CalendarBundle\\\\Entity\\\\Invite\\) of method Chill\\\\CalendarBundle\\\\Security\\\\Voter\\\\InviteVoter\\:\\:voteOnAttribute\\(\\) should be contravariant with parameter \\$subject \\(mixed\\) of method Symfony\\\\Component\\\\Security\\\\Core\\\\Authorization\\\\Voter\\\\Voter\\:\\:voteOnAttribute\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCalendarBundle/Security/Voter/InviteVoter.php | ||||
|  | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Return type \\(int\\|void\\|null\\) of method Chill\\\\CustomFieldsBundle\\\\Command\\\\CreateFieldsOnGroupCommand\\:\\:execute\\(\\) should be covariant with return type \\(int\\) of method Symfony\\\\Component\\\\Console\\\\Command\\\\Command\\:\\:execute\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCustomFieldsBundle/Command/CreateFieldsOnGroupCommand.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$customFieldsGroup \\(Chill\\\\CustomFieldsBundle\\\\Entity\\\\CustomFieldsGroup\\|null\\) of method Chill\\\\CustomFieldsBundle\\\\Form\\\\DataTransformer\\\\CustomFieldsGroupToIdTransformer\\:\\:transform\\(\\) should be contravariant with parameter \\$value \\(mixed\\) of method Symfony\\\\Component\\\\Form\\\\DataTransformerInterface\\:\\:transform\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCustomFieldsBundle/Form/DataTransformer/CustomFieldsGroupToIdTransformer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$id \\(string\\) of method Chill\\\\CustomFieldsBundle\\\\Form\\\\DataTransformer\\\\CustomFieldsGroupToIdTransformer\\:\\:reverseTransform\\(\\) should be contravariant with parameter \\$value \\(mixed\\) of method Symfony\\\\Component\\\\Form\\\\DataTransformerInterface\\:\\:reverseTransform\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCustomFieldsBundle/Form/DataTransformer/CustomFieldsGroupToIdTransformer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$query \\(Doctrine\\\\ORM\\\\QueryBuilder\\) of method Chill\\\\DocGeneratorBundle\\\\Controller\\\\AdminDocGeneratorTemplateController\\:\\:orderQuery\\(\\) should be contravariant with parameter \\$query \\(mixed\\) of method Chill\\\\MainBundle\\\\CRUD\\\\Controller\\\\CRUDController\\:\\:orderQuery\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillDocGeneratorBundle/Controller/AdminDocGeneratorTemplateController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$object \\(Doctrine\\\\Common\\\\Collections\\\\Collection\\) of method Chill\\\\DocGeneratorBundle\\\\Serializer\\\\Normalizer\\\\CollectionDocGenNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$object \\(mixed\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/CollectionDocGenNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\DocGeneratorBundle\\\\Serializer\\\\Normalizer\\\\CollectionDocGenNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\ContextAwareNormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/CollectionDocGenNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\DocGeneratorBundle\\\\Serializer\\\\Normalizer\\\\CollectionDocGenNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/CollectionDocGenNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Return type \\(array\\|ArrayObject\\|bool\\|float\\|int\\|string\\|void\\|null\\) of method Chill\\\\DocGeneratorBundle\\\\Serializer\\\\Normalizer\\\\CollectionDocGenNormalizer\\:\\:normalize\\(\\) should be covariant with return type \\(array\\|ArrayObject\\|bool\\|float\\|int\\|string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/CollectionDocGenNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\DocGeneratorBundle\\\\Serializer\\\\Normalizer\\\\DocGenObjectNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/DocGenObjectNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\DocGeneratorBundle\\\\Serializer\\\\Normalizer\\\\DocGenObjectNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/DocGenObjectNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Return type \\(Chill\\\\MainBundle\\\\Entity\\\\Scope\\|null\\) of method Chill\\\\DocStoreBundle\\\\Entity\\\\PersonDocument\\:\\:getScope\\(\\) should be covariant with return type \\(Chill\\\\MainBundle\\\\Entity\\\\Scope\\) of method Chill\\\\MainBundle\\\\Entity\\\\HasScopeInterface\\:\\:getScope\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillDocStoreBundle/Entity/PersonDocument.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$subject \\(Chill\\\\DocStoreBundle\\\\Entity\\\\PersonDocument\\) of method Chill\\\\DocStoreBundle\\\\Security\\\\Authorization\\\\PersonDocumentVoter\\:\\:voteOnAttribute\\(\\) should be contravariant with parameter \\$subject \\(mixed\\) of method Symfony\\\\Component\\\\Security\\\\Core\\\\Authorization\\\\Voter\\\\Voter\\:\\:voteOnAttribute\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillDocStoreBundle/Security/Authorization/PersonDocumentVoter.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\DocStoreBundle\\\\Serializer\\\\Normalizer\\\\StoredObjectDenormalizer\\:\\:denormalize\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:denormalize\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillDocStoreBundle/Serializer/Normalizer/StoredObjectDenormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\DocStoreBundle\\\\Serializer\\\\Normalizer\\\\StoredObjectDenormalizer\\:\\:supportsDenormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:supportsDenormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillDocStoreBundle/Serializer/Normalizer/StoredObjectDenormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$object \\(Chill\\\\DocStoreBundle\\\\Entity\\\\AccompanyingCourseDocument\\) of method Chill\\\\DocStoreBundle\\\\Workflow\\\\AccompanyingCourseDocumentWorkflowHandler\\:\\:getRelatedObjects\\(\\) should be contravariant with parameter \\$object \\(object\\) of method Chill\\\\MainBundle\\\\Workflow\\\\EntityWorkflowHandlerInterface\\:\\:getRelatedObjects\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillDocStoreBundle/Workflow/AccompanyingCourseDocumentWorkflowHandler.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$value \\(null\\) of method Chill\\\\EventBundle\\\\Form\\\\ChoiceLoader\\\\EventChoiceLoader\\:\\:loadChoiceList\\(\\) should be contravariant with parameter \\$value \\(\\(callable\\(\\)\\: mixed\\)\\|null\\) of method Symfony\\\\Component\\\\Form\\\\ChoiceList\\\\Loader\\\\ChoiceLoaderInterface\\:\\:loadChoiceList\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillEventBundle/Form/ChoiceLoader/EventChoiceLoader.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$value \\(null\\) of method Chill\\\\EventBundle\\\\Form\\\\ChoiceLoader\\\\EventChoiceLoader\\:\\:loadChoicesForValues\\(\\) should be contravariant with parameter \\$value \\(\\(callable\\(\\)\\: mixed\\)\\|null\\) of method Symfony\\\\Component\\\\Form\\\\ChoiceList\\\\Loader\\\\ChoiceLoaderInterface\\:\\:loadChoicesForValues\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillEventBundle/Form/ChoiceLoader/EventChoiceLoader.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$value \\(null\\) of method Chill\\\\EventBundle\\\\Form\\\\ChoiceLoader\\\\EventChoiceLoader\\:\\:loadValuesForChoices\\(\\) should be contravariant with parameter \\$value \\(\\(callable\\(\\)\\: mixed\\)\\|null\\) of method Symfony\\\\Component\\\\Form\\\\ChoiceList\\\\Loader\\\\ChoiceLoaderInterface\\:\\:loadValuesForChoices\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillEventBundle/Form/ChoiceLoader/EventChoiceLoader.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$subject \\(Chill\\\\EventBundle\\\\Entity\\\\Event\\) of method Chill\\\\EventBundle\\\\Security\\\\Authorization\\\\EventVoter\\:\\:voteOnAttribute\\(\\) should be contravariant with parameter \\$subject \\(mixed\\) of method Symfony\\\\Component\\\\Security\\\\Core\\\\Authorization\\\\Voter\\\\Voter\\:\\:voteOnAttribute\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillEventBundle/Security/Authorization/EventVoter.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$subject \\(Chill\\\\EventBundle\\\\Entity\\\\Participation\\) of method Chill\\\\EventBundle\\\\Security\\\\Authorization\\\\ParticipationVoter\\:\\:voteOnAttribute\\(\\) should be contravariant with parameter \\$subject \\(mixed\\) of method Symfony\\\\Component\\\\Security\\\\Core\\\\Authorization\\\\Voter\\\\Voter\\:\\:voteOnAttribute\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillEventBundle/Security/Authorization/ParticipationVoter.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$entity \\(Chill\\\\EventBundle\\\\Entity\\\\Event\\) of method Chill\\\\EventBundle\\\\Timeline\\\\TimelineEventProvider\\:\\:getEntityTemplate\\(\\) should be contravariant with parameter \\$entity \\(Chill\\\\MainBundle\\\\Timeline\\\\type\\) of method Chill\\\\MainBundle\\\\Timeline\\\\TimelineProviderInterface\\:\\:getEntityTemplate\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillEventBundle/Timeline/TimelineEventProvider.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$type \\(null\\) of method Chill\\\\MainBundle\\\\CRUD\\\\Routing\\\\CRUDRoutesLoader\\:\\:supports\\(\\) should be contravariant with parameter \\$type \\(string\\|null\\) of method Symfony\\\\Component\\\\Config\\\\Loader\\\\LoaderInterface\\:\\:supports\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillMainBundle/CRUD/Routing/CRUDRoutesLoader.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$query \\(Doctrine\\\\ORM\\\\QueryBuilder\\) of method Chill\\\\MainBundle\\\\Controller\\\\LocationApiController\\:\\:orderQuery\\(\\) should be contravariant with parameter \\$query \\(mixed\\) of method Chill\\\\MainBundle\\\\CRUD\\\\Controller\\\\AbstractCRUDController\\:\\:orderQuery\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/LocationApiController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$query \\(Doctrine\\\\ORM\\\\QueryBuilder\\) of method Chill\\\\MainBundle\\\\Controller\\\\UserApiController\\:\\:customizeQuery\\(\\) should be contravariant with parameter \\$query \\(mixed\\) of method Chill\\\\MainBundle\\\\CRUD\\\\Controller\\\\AbstractCRUDController\\:\\:customizeQuery\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/UserApiController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Return type \\(object\\|null\\) of method Chill\\\\MainBundle\\\\DependencyInjection\\\\ChillMainExtension\\:\\:getConfiguration\\(\\) should be covariant with return type \\(Symfony\\\\Component\\\\Config\\\\Definition\\\\ConfigurationInterface\\|null\\) of method Symfony\\\\Component\\\\DependencyInjection\\\\Extension\\\\ConfigurationExtensionInterface\\:\\:getConfiguration\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Return type \\(object\\|null\\) of method Chill\\\\MainBundle\\\\DependencyInjection\\\\ChillMainExtension\\:\\:getConfiguration\\(\\) should be covariant with return type \\(Symfony\\\\Component\\\\Config\\\\Definition\\\\ConfigurationInterface\\|null\\) of method Symfony\\\\Component\\\\DependencyInjection\\\\Extension\\\\Extension\\:\\:getConfiguration\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$value \\(null\\) of method Chill\\\\MainBundle\\\\Form\\\\ChoiceLoader\\\\PostalCodeChoiceLoader\\:\\:loadChoiceList\\(\\) should be contravariant with parameter \\$value \\(\\(callable\\(\\)\\: mixed\\)\\|null\\) of method Symfony\\\\Component\\\\Form\\\\ChoiceList\\\\Loader\\\\ChoiceLoaderInterface\\:\\:loadChoiceList\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Form/ChoiceLoader/PostalCodeChoiceLoader.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$value \\(null\\) of method Chill\\\\MainBundle\\\\Form\\\\ChoiceLoader\\\\PostalCodeChoiceLoader\\:\\:loadChoicesForValues\\(\\) should be contravariant with parameter \\$value \\(\\(callable\\(\\)\\: mixed\\)\\|null\\) of method Symfony\\\\Component\\\\Form\\\\ChoiceList\\\\Loader\\\\ChoiceLoaderInterface\\:\\:loadChoicesForValues\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Form/ChoiceLoader/PostalCodeChoiceLoader.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$value \\(null\\) of method Chill\\\\MainBundle\\\\Form\\\\ChoiceLoader\\\\PostalCodeChoiceLoader\\:\\:loadValuesForChoices\\(\\) should be contravariant with parameter \\$value \\(\\(callable\\(\\)\\: mixed\\)\\|null\\) of method Symfony\\\\Component\\\\Form\\\\ChoiceList\\\\Loader\\\\ChoiceLoaderInterface\\:\\:loadValuesForChoices\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Form/ChoiceLoader/PostalCodeChoiceLoader.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$address \\(Chill\\\\MainBundle\\\\Entity\\\\Address\\) of method Chill\\\\MainBundle\\\\Form\\\\DataMapper\\\\AddressDataMapper\\:\\:mapDataToForms\\(\\) should be contravariant with parameter \\$viewData \\(mixed\\) of method Symfony\\\\Component\\\\Form\\\\DataMapperInterface\\:\\:mapDataToForms\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Form/DataMapper/AddressDataMapper.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$forms \\(Iterator\\) of method Chill\\\\MainBundle\\\\Form\\\\DataMapper\\\\AddressDataMapper\\:\\:mapFormsToData\\(\\) should be contravariant with parameter \\$forms \\(iterable\\<Symfony\\\\Component\\\\Form\\\\FormInterface\\>&Traversable\\) of method Symfony\\\\Component\\\\Form\\\\DataMapperInterface\\:\\:mapFormsToData\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Form/DataMapper/AddressDataMapper.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$address \\(Chill\\\\MainBundle\\\\Entity\\\\Address\\) of method Chill\\\\MainBundle\\\\Form\\\\DataMapper\\\\AddressDataMapper\\:\\:mapFormsToData\\(\\) should be contravariant with parameter \\$viewData \\(mixed\\) of method Symfony\\\\Component\\\\Form\\\\DataMapperInterface\\:\\:mapFormsToData\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Form/DataMapper/AddressDataMapper.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$forms \\(Iterator\\) of method Chill\\\\MainBundle\\\\Form\\\\DataMapper\\\\AddressDataMapper\\:\\:mapDataToForms\\(\\) should be contravariant with parameter \\$forms \\(iterable\\<Symfony\\\\Component\\\\Form\\\\FormInterface\\>&Traversable\\) of method Symfony\\\\Component\\\\Form\\\\DataMapperInterface\\:\\:mapDataToForms\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Form/DataMapper/AddressDataMapper.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$value \\(string\\) of method Chill\\\\MainBundle\\\\Form\\\\DataTransformer\\\\IdToEntityDataTransformer\\:\\:reverseTransform\\(\\) should be contravariant with parameter \\$value \\(mixed\\) of method Symfony\\\\Component\\\\Form\\\\DataTransformerInterface\\:\\:reverseTransform\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Form/DataTransformer/IdToEntityDataTransformer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$value \\(array\\<Chill\\\\MainBundle\\\\Entity\\\\User\\>\\|Chill\\\\MainBundle\\\\Entity\\\\User\\) of method Chill\\\\MainBundle\\\\Form\\\\Type\\\\DataTransformer\\\\EntityToJsonTransformer\\:\\:transform\\(\\) should be contravariant with parameter \\$value \\(mixed\\) of method Symfony\\\\Component\\\\Form\\\\DataTransformerInterface\\:\\:transform\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Form/Type/DataTransformer/EntityToJsonTransformer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$array \\(array\\) of method Chill\\\\MainBundle\\\\Form\\\\Type\\\\DataTransformer\\\\MultipleObjectsToIdTransformer\\:\\:transform\\(\\) should be contravariant with parameter \\$value \\(mixed\\) of method Symfony\\\\Component\\\\Form\\\\DataTransformerInterface\\:\\:transform\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Form/Type/DataTransformer/MultipleObjectsToIdTransformer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$id \\(string\\) of method Chill\\\\MainBundle\\\\Form\\\\Type\\\\DataTransformer\\\\ObjectToIdTransformer\\:\\:reverseTransform\\(\\) should be contravariant with parameter \\$value \\(mixed\\) of method Symfony\\\\Component\\\\Form\\\\DataTransformerInterface\\:\\:reverseTransform\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Form/Type/DataTransformer/ObjectToIdTransformer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$subject \\(Chill\\\\MainBundle\\\\Entity\\\\Workflow\\\\EntityWorkflow\\) of method Chill\\\\MainBundle\\\\Security\\\\Authorization\\\\EntityWorkflowVoter\\:\\:voteOnAttribute\\(\\) should be contravariant with parameter \\$subject \\(mixed\\) of method Symfony\\\\Component\\\\Security\\\\Core\\\\Authorization\\\\Voter\\\\Voter\\:\\:voteOnAttribute\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Security/Authorization/EntityWorkflowVoter.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$entity \\(Chill\\\\MainBundle\\\\Entity\\\\HasCenterInterface\\) of method Chill\\\\MainBundle\\\\Security\\\\Resolver\\\\DefaultCenterResolver\\:\\:resolveCenter\\(\\) should be contravariant with parameter \\$entity \\(object\\) of method Chill\\\\MainBundle\\\\Security\\\\Resolver\\\\CenterResolverInterface\\:\\:resolveCenter\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Security/Resolver/DefaultCenterResolver.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$entity \\(Chill\\\\MainBundle\\\\Entity\\\\HasScopeInterface\\|Chill\\\\MainBundle\\\\Entity\\\\HasScopesInterface\\) of method Chill\\\\MainBundle\\\\Security\\\\Resolver\\\\DefaultScopeResolver\\:\\:resolveScope\\(\\) should be contravariant with parameter \\$entity \\(mixed\\) of method Chill\\\\MainBundle\\\\Security\\\\Resolver\\\\ScopeResolverInterface\\:\\:resolveScope\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Security/Resolver/DefaultScopeResolver.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$address \\(Chill\\\\MainBundle\\\\Entity\\\\Address\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\AddressNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$object \\(mixed\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/AddressNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\AddressNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\ContextAwareNormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/AddressNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\AddressNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/AddressNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\CenterNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/CenterNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\CenterNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/CenterNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\CenterNormalizer\\:\\:denormalize\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:denormalize\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/CenterNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\CenterNormalizer\\:\\:supportsDenormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:supportsDenormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/CenterNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$collection \\(Chill\\\\MainBundle\\\\Serializer\\\\Model\\\\Collection\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\CollectionNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$object \\(mixed\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/CollectionNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\CollectionNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/CollectionNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$object \\(Chill\\\\MainBundle\\\\Entity\\\\Embeddable\\\\CommentEmbeddable\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\CommentEmbeddableDocGenNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$object \\(mixed\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/CommentEmbeddableDocGenNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\DateNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/DateNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\DateNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\ContextAwareNormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/DateNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\DateNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/DateNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\DateNormalizer\\:\\:denormalize\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:denormalize\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/DateNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\DateNormalizer\\:\\:supportsDenormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:supportsDenormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/DateNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\DiscriminatedObjectDenormalizer\\:\\:denormalize\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:denormalize\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/DiscriminatedObjectDenormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\DiscriminatedObjectDenormalizer\\:\\:supportsDenormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\ContextAwareDenormalizerInterface\\:\\:supportsDenormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/DiscriminatedObjectDenormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\DiscriminatedObjectDenormalizer\\:\\:supportsDenormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:supportsDenormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/DiscriminatedObjectDenormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\DoctrineExistingEntityNormalizer\\:\\:denormalize\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:denormalize\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/DoctrineExistingEntityNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\DoctrineExistingEntityNormalizer\\:\\:supportsDenormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:supportsDenormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/DoctrineExistingEntityNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$object \\(Chill\\\\MainBundle\\\\Entity\\\\Workflow\\\\EntityWorkflow\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\EntityWorkflowNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$object \\(mixed\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/EntityWorkflowNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$object \\(Chill\\\\MainBundle\\\\Entity\\\\Workflow\\\\EntityWorkflowStep\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\EntityWorkflowStepNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$object \\(mixed\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/EntityWorkflowStepNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$object \\(Chill\\\\MainBundle\\\\Entity\\\\Notification\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\NotificationNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$object \\(mixed\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/NotificationNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Return type \\(array\\|ArrayObject\\|bool\\|float\\|int\\|string\\|void\\|null\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\NotificationNormalizer\\:\\:normalize\\(\\) should be covariant with return type \\(array\\|ArrayObject\\|bool\\|float\\|int\\|string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/NotificationNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$data \\(string\\|null\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\PhonenumberNormalizer\\:\\:denormalize\\(\\) should be contravariant with parameter \\$data \\(mixed\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:denormalize\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/PhonenumberNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\PhonenumberNormalizer\\:\\:supportsDenormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:supportsDenormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/PhonenumberNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\PointNormalizer\\:\\:denormalize\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:denormalize\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/PointNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\PointNormalizer\\:\\:supportsDenormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:supportsDenormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/PointNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\PrivateCommentEmbeddableNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/PrivateCommentEmbeddableNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\UserNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/UserNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\UserNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\ContextAwareNormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/UserNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\MainBundle\\\\Serializer\\\\Normalizer\\\\UserNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/UserNormalizer.php | ||||
|  | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$value \\(string\\) of method Chill\\\\MainBundle\\\\Validation\\\\Validator\\\\ValidPhonenumber\\:\\:validate\\(\\) should be contravariant with parameter \\$value \\(mixed\\) of method Symfony\\\\Component\\\\Validator\\\\ConstraintValidatorInterface\\:\\:validate\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillMainBundle/Validation/Validator/ValidPhonenumber.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$constraint \\(Chill\\\\MainBundle\\\\Validation\\\\Constraint\\\\PhonenumberConstraint\\) of method Chill\\\\MainBundle\\\\Validation\\\\Validator\\\\ValidPhonenumber\\:\\:validate\\(\\) should be contravariant with parameter \\$constraint \\(Symfony\\\\Component\\\\Validator\\\\Constraint\\) of method Symfony\\\\Component\\\\Validator\\\\ConstraintValidatorInterface\\:\\:validate\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillMainBundle/Validation/Validator/ValidPhonenumber.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$value \\(object\\) of method Chill\\\\MainBundle\\\\Validator\\\\Constraints\\\\Entity\\\\UserCircleConsistencyValidator\\:\\:validate\\(\\) should be contravariant with parameter \\$value \\(mixed\\) of method Symfony\\\\Component\\\\Validator\\\\ConstraintValidatorInterface\\:\\:validate\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillMainBundle/Validator/Constraints/Entity/UserCircleConsistencyValidator.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$constraint \\(Chill\\\\MainBundle\\\\Validator\\\\Constraints\\\\Entity\\\\UserCircleConsistency\\) of method Chill\\\\MainBundle\\\\Validator\\\\Constraints\\\\Entity\\\\UserCircleConsistencyValidator\\:\\:validate\\(\\) should be contravariant with parameter \\$constraint \\(Symfony\\\\Component\\\\Validator\\\\Constraint\\) of method Symfony\\\\Component\\\\Validator\\\\ConstraintValidatorInterface\\:\\:validate\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillMainBundle/Validator/Constraints/Entity/UserCircleConsistencyValidator.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$value \\(Chill\\\\MainBundle\\\\Entity\\\\Workflow\\\\EntityWorkflow\\) of method Chill\\\\MainBundle\\\\Workflow\\\\Validator\\\\EntityWorkflowCreationValidator\\:\\:validate\\(\\) should be contravariant with parameter \\$value \\(mixed\\) of method Symfony\\\\Component\\\\Validator\\\\ConstraintValidatorInterface\\:\\:validate\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillMainBundle/Workflow/Validator/EntityWorkflowCreationValidator.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$value \\(Chill\\\\MainBundle\\\\Entity\\\\Workflow\\\\EntityWorkflowStep\\) of method Chill\\\\MainBundle\\\\Workflow\\\\Validator\\\\StepDestValidValidator\\:\\:validate\\(\\) should be contravariant with parameter \\$value \\(mixed\\) of method Symfony\\\\Component\\\\Validator\\\\ConstraintValidatorInterface\\:\\:validate\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillMainBundle/Workflow/Validator/StepDestValidValidator.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Return type \\(int\\|void\\|null\\) of method Chill\\\\PersonBundle\\\\Command\\\\ImportPeopleFromCSVCommand\\:\\:execute\\(\\) should be covariant with return type \\(int\\) of method Symfony\\\\Component\\\\Console\\\\Command\\\\Command\\:\\:execute\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Command/ImportPeopleFromCSVCommand.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$query \\(Doctrine\\\\ORM\\\\QueryBuilder\\) of method Chill\\\\PersonBundle\\\\Controller\\\\HouseholdCompositionTypeApiController\\:\\:customizeQuery\\(\\) should be contravariant with parameter \\$query \\(mixed\\) of method Chill\\\\MainBundle\\\\CRUD\\\\Controller\\\\AbstractCRUDController\\:\\:customizeQuery\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Controller/HouseholdCompositionTypeApiController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Return type \\(Doctrine\\\\Common\\\\Collections\\\\Collection\\) of method Chill\\\\PersonBundle\\\\Entity\\\\AccompanyingPeriod\\:\\:getScopes\\(\\) should be covariant with return type \\(iterable\\<Chill\\\\MainBundle\\\\Entity\\\\Scope\\>\\) of method Chill\\\\MainBundle\\\\Entity\\\\HasScopesInterface\\:\\:getScopes\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Return type \\(Chill\\\\MainBundle\\\\Entity\\\\Center\\|null\\) of method Chill\\\\PersonBundle\\\\Entity\\\\Person\\:\\:getCenter\\(\\) should be covariant with return type \\(Chill\\\\MainBundle\\\\Entity\\\\Center\\) of method Chill\\\\MainBundle\\\\Entity\\\\HasCenterInterface\\:\\:getCenter\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Entity/Person.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$value \\(null\\) of method Chill\\\\PersonBundle\\\\Form\\\\ChoiceLoader\\\\PersonChoiceLoader\\:\\:loadChoiceList\\(\\) should be contravariant with parameter \\$value \\(\\(callable\\(\\)\\: mixed\\)\\|null\\) of method Symfony\\\\Component\\\\Form\\\\ChoiceList\\\\Loader\\\\ChoiceLoaderInterface\\:\\:loadChoiceList\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Form/ChoiceLoader/PersonChoiceLoader.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$value \\(null\\) of method Chill\\\\PersonBundle\\\\Form\\\\ChoiceLoader\\\\PersonChoiceLoader\\:\\:loadChoicesForValues\\(\\) should be contravariant with parameter \\$value \\(\\(callable\\(\\)\\: mixed\\)\\|null\\) of method Symfony\\\\Component\\\\Form\\\\ChoiceList\\\\Loader\\\\ChoiceLoaderInterface\\:\\:loadChoicesForValues\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Form/ChoiceLoader/PersonChoiceLoader.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$value \\(null\\) of method Chill\\\\PersonBundle\\\\Form\\\\ChoiceLoader\\\\PersonChoiceLoader\\:\\:loadValuesForChoices\\(\\) should be contravariant with parameter \\$value \\(\\(callable\\(\\)\\: mixed\\)\\|null\\) of method Symfony\\\\Component\\\\Form\\\\ChoiceList\\\\Loader\\\\ChoiceLoaderInterface\\:\\:loadValuesForChoices\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Form/ChoiceLoader/PersonChoiceLoader.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$viewData \\(Doctrine\\\\Common\\\\Collections\\\\Collection\\) of method Chill\\\\PersonBundle\\\\Form\\\\DataMapper\\\\PersonAltNameDataMapper\\:\\:mapFormsToData\\(\\) should be contravariant with parameter \\$viewData \\(mixed\\) of method Symfony\\\\Component\\\\Form\\\\DataMapperInterface\\:\\:mapFormsToData\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Form/DataMapper/PersonAltNameDataMapper.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$limit \\(int\\) of method Chill\\\\PersonBundle\\\\Repository\\\\AccompanyingPeriod\\\\AccompanyingPeriodWorkEvaluationRepository\\:\\:findBy\\(\\) should be contravariant with parameter \\$limit \\(int\\|null\\) of method Doctrine\\\\Persistence\\\\ObjectRepository\\<object\\>\\:\\:findBy\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriod/AccompanyingPeriodWorkEvaluationRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#4 \\$offset \\(int\\) of method Chill\\\\PersonBundle\\\\Repository\\\\AccompanyingPeriod\\\\AccompanyingPeriodWorkEvaluationRepository\\:\\:findBy\\(\\) should be contravariant with parameter \\$offset \\(int\\|null\\) of method Doctrine\\\\Persistence\\\\ObjectRepository\\<object\\>\\:\\:findBy\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriod/AccompanyingPeriodWorkEvaluationRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$limit \\(int\\) of method Chill\\\\PersonBundle\\\\Repository\\\\Household\\\\HouseholdCompositionRepository\\:\\:findBy\\(\\) should be contravariant with parameter \\$limit \\(int\\|null\\) of method Doctrine\\\\Persistence\\\\ObjectRepository\\<object\\>\\:\\:findBy\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Repository/Household/HouseholdCompositionRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#4 \\$offset \\(int\\) of method Chill\\\\PersonBundle\\\\Repository\\\\Household\\\\HouseholdCompositionRepository\\:\\:findBy\\(\\) should be contravariant with parameter \\$offset \\(int\\|null\\) of method Doctrine\\\\Persistence\\\\ObjectRepository\\<object\\>\\:\\:findBy\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Repository/Household/HouseholdCompositionRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$limit \\(int\\) of method Chill\\\\PersonBundle\\\\Repository\\\\Household\\\\HouseholdCompositionRepositoryInterface\\:\\:findBy\\(\\) should be contravariant with parameter \\$limit \\(int\\|null\\) of method Doctrine\\\\Persistence\\\\ObjectRepository\\<object\\>\\:\\:findBy\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Repository/Household/HouseholdCompositionRepositoryInterface.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#4 \\$offset \\(int\\) of method Chill\\\\PersonBundle\\\\Repository\\\\Household\\\\HouseholdCompositionRepositoryInterface\\:\\:findBy\\(\\) should be contravariant with parameter \\$offset \\(int\\|null\\) of method Doctrine\\\\Persistence\\\\ObjectRepository\\<object\\>\\:\\:findBy\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Repository/Household/HouseholdCompositionRepositoryInterface.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Return type \\(class\\-string\\) of method Chill\\\\PersonBundle\\\\Repository\\\\SocialWork\\\\EvaluationRepository\\:\\:getClassName\\(\\) should be covariant with return type \\(class\\-string\\<object\\>\\) of method Doctrine\\\\Persistence\\\\ObjectRepository\\<object\\>\\:\\:getClassName\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Repository/SocialWork/EvaluationRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Return type \\(class\\-string\\) of method Chill\\\\PersonBundle\\\\Repository\\\\SocialWork\\\\EvaluationRepositoryInterface\\:\\:getClassName\\(\\) should be covariant with return type \\(class\\-string\\<object\\>\\) of method Doctrine\\\\Persistence\\\\ObjectRepository\\<object\\>\\:\\:getClassName\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Repository/SocialWork/EvaluationRepositoryInterface.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Return type \\(class\\-string\\) of method Chill\\\\PersonBundle\\\\Repository\\\\SocialWork\\\\GoalRepository\\:\\:getClassName\\(\\) should be covariant with return type \\(class\\-string\\<object\\>\\) of method Doctrine\\\\Persistence\\\\ObjectRepository\\<object\\>\\:\\:getClassName\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Repository/SocialWork/GoalRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Return type \\(class\\-string\\) of method Chill\\\\PersonBundle\\\\Repository\\\\SocialWork\\\\ResultRepository\\:\\:getClassName\\(\\) should be covariant with return type \\(class\\-string\\<object\\>\\) of method Doctrine\\\\Persistence\\\\ObjectRepository\\<object\\>\\:\\:getClassName\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Repository/SocialWork/ResultRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Return type \\(class\\-string\\) of method Chill\\\\PersonBundle\\\\Repository\\\\SocialWork\\\\SocialActionRepository\\:\\:getClassName\\(\\) should be covariant with return type \\(class\\-string\\<object\\>\\) of method Doctrine\\\\Persistence\\\\ObjectRepository\\<object\\>\\:\\:getClassName\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Repository/SocialWork/SocialActionRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Return type \\(class\\-string\\) of method Chill\\\\PersonBundle\\\\Repository\\\\SocialWork\\\\SocialIssueRepository\\:\\:getClassName\\(\\) should be covariant with return type \\(class\\-string\\<object\\>\\) of method Doctrine\\\\Persistence\\\\ObjectRepository\\<object\\>\\:\\:getClassName\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Repository/SocialWork/SocialIssueRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$subject \\(Chill\\\\PersonBundle\\\\Entity\\\\AccompanyingPeriod\\\\AccompanyingPeriodWorkEvaluationDocument\\) of method Chill\\\\PersonBundle\\\\Security\\\\Authorization\\\\AccompanyingPeriodWorkEvaluationDocumentVoter\\:\\:voteOnAttribute\\(\\) should be contravariant with parameter \\$subject \\(mixed\\) of method Symfony\\\\Component\\\\Security\\\\Core\\\\Authorization\\\\Voter\\\\Voter\\:\\:voteOnAttribute\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodWorkEvaluationDocumentVoter.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$subject \\(Chill\\\\PersonBundle\\\\Entity\\\\AccompanyingPeriod\\\\AccompanyingPeriodWorkEvaluation\\) of method Chill\\\\PersonBundle\\\\Security\\\\Authorization\\\\AccompanyingPeriodWorkEvaluationVoter\\:\\:voteOnAttribute\\(\\) should be contravariant with parameter \\$subject \\(mixed\\) of method Symfony\\\\Component\\\\Security\\\\Core\\\\Authorization\\\\Voter\\\\Voter\\:\\:voteOnAttribute\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodWorkEvaluationVoter.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$subject \\(Chill\\\\PersonBundle\\\\Entity\\\\AccompanyingPeriod\\\\AccompanyingPeriodWork\\) of method Chill\\\\PersonBundle\\\\Security\\\\Authorization\\\\AccompanyingPeriodWorkVoter\\:\\:voteOnAttribute\\(\\) should be contravariant with parameter \\$subject \\(mixed\\) of method Symfony\\\\Component\\\\Security\\\\Core\\\\Authorization\\\\Voter\\\\Voter\\:\\:voteOnAttribute\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodWorkVoter.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$period \\(Chill\\\\PersonBundle\\\\Entity\\\\AccompanyingPeriod\\|null\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\AccompanyingPeriodDocGenNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$object \\(mixed\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodDocGenNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\AccompanyingPeriodDocGenNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\ContextAwareNormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodDocGenNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\AccompanyingPeriodDocGenNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodDocGenNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$origin \\(Chill\\\\PersonBundle\\\\Entity\\\\AccompanyingPeriod\\\\Origin\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\AccompanyingPeriodOriginNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$object \\(mixed\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodOriginNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\AccompanyingPeriodOriginNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodOriginNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$participation \\(Chill\\\\PersonBundle\\\\Entity\\\\AccompanyingPeriodParticipation\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\AccompanyingPeriodParticipationNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$object \\(mixed\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodParticipationNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\AccompanyingPeriodParticipationNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodParticipationNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\AccompanyingPeriodResourceNormalizer\\:\\:denormalize\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:denormalize\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodResourceNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\AccompanyingPeriodResourceNormalizer\\:\\:supportsDenormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:supportsDenormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodResourceNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\AccompanyingPeriodWorkDenormalizer\\:\\:denormalize\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:denormalize\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodWorkDenormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\AccompanyingPeriodWorkDenormalizer\\:\\:supportsDenormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\ContextAwareDenormalizerInterface\\:\\:supportsDenormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodWorkDenormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\AccompanyingPeriodWorkDenormalizer\\:\\:supportsDenormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:supportsDenormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodWorkDenormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\AccompanyingPeriodWorkEvaluationDenormalizer\\:\\:denormalize\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:denormalize\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodWorkEvaluationDenormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\AccompanyingPeriodWorkEvaluationDenormalizer\\:\\:supportsDenormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\ContextAwareDenormalizerInterface\\:\\:supportsDenormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodWorkEvaluationDenormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\AccompanyingPeriodWorkEvaluationDenormalizer\\:\\:supportsDenormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:supportsDenormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodWorkEvaluationDenormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$object \\(Chill\\\\PersonBundle\\\\Entity\\\\AccompanyingPeriod\\\\AccompanyingPeriodWorkEvaluation\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\AccompanyingPeriodWorkEvaluationNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$object \\(mixed\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodWorkEvaluationNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$object \\(Chill\\\\PersonBundle\\\\Entity\\\\AccompanyingPeriod\\\\AccompanyingPeriodWork\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\AccompanyingPeriodWorkNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$object \\(mixed\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/AccompanyingPeriodWorkNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\MembersEditorNormalizer\\:\\:denormalize\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:denormalize\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/MembersEditorNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\MembersEditorNormalizer\\:\\:supportsDenormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:supportsDenormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/MembersEditorNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\PersonDocGenNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonDocGenNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\PersonDocGenNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\ContextAwareNormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonDocGenNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\PersonDocGenNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonDocGenNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$person \\(Chill\\\\PersonBundle\\\\Entity\\\\Person\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\PersonJsonNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$object \\(mixed\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonJsonNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\PersonJsonNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonJsonNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\PersonJsonNormalizer\\:\\:denormalize\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:denormalize\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonJsonNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\PersonJsonNormalizer\\:\\:supportsDenormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\DenormalizerInterface\\:\\:supportsDenormalization\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonJsonNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$relation \\(Chill\\\\PersonBundle\\\\Entity\\\\Relationships\\\\Relationship\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\RelationshipDocGenNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$object \\(mixed\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/RelationshipDocGenNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\RelationshipDocGenNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\ContextAwareNormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/RelationshipDocGenNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\RelationshipDocGenNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/RelationshipDocGenNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\SocialActionNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/SocialActionNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\SocialActionNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/SocialActionNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\SocialIssueNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/SocialIssueNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\SocialIssueNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\ContextAwareNormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/SocialIssueNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\SocialIssueNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/SocialIssueNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$object \\(Chill\\\\MainBundle\\\\Entity\\\\Workflow\\\\EntityWorkflow\\) of method Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\WorkflowNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$object \\(mixed\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/WorkflowNormalizer.php | ||||
|  | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$object \\(Chill\\\\PersonBundle\\\\Entity\\\\AccompanyingPeriod\\\\AccompanyingPeriodWorkEvaluationDocument\\) of method Chill\\\\PersonBundle\\\\Workflow\\\\AccompanyingPeriodWorkEvaluationDocumentWorkflowHandler\\:\\:getRelatedObjects\\(\\) should be contravariant with parameter \\$object \\(object\\) of method Chill\\\\MainBundle\\\\Workflow\\\\EntityWorkflowHandlerInterface\\:\\:getRelatedObjects\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Workflow/AccompanyingPeriodWorkEvaluationDocumentWorkflowHandler.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$object \\(Chill\\\\PersonBundle\\\\Entity\\\\AccompanyingPeriod\\\\AccompanyingPeriodWorkEvaluation\\) of method Chill\\\\PersonBundle\\\\Workflow\\\\AccompanyingPeriodWorkEvaluationWorkflowHandler\\:\\:getRelatedObjects\\(\\) should be contravariant with parameter \\$object \\(object\\) of method Chill\\\\MainBundle\\\\Workflow\\\\EntityWorkflowHandlerInterface\\:\\:getRelatedObjects\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Workflow/AccompanyingPeriodWorkEvaluationWorkflowHandler.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$object \\(Chill\\\\PersonBundle\\\\Entity\\\\AccompanyingPeriod\\\\AccompanyingPeriodWork\\) of method Chill\\\\PersonBundle\\\\Workflow\\\\AccompanyingPeriodWorkWorkflowHandler\\:\\:getRelatedObjects\\(\\) should be contravariant with parameter \\$object \\(object\\) of method Chill\\\\MainBundle\\\\Workflow\\\\EntityWorkflowHandlerInterface\\:\\:getRelatedObjects\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Workflow/AccompanyingPeriodWorkWorkflowHandler.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Return type \\(Chill\\\\MainBundle\\\\Entity\\\\Center\\|null\\) of method Chill\\\\TaskBundle\\\\Entity\\\\AbstractTask\\:\\:getCenter\\(\\) should be covariant with return type \\(Chill\\\\MainBundle\\\\Entity\\\\Center\\) of method Chill\\\\MainBundle\\\\Entity\\\\HasCenterInterface\\:\\:getCenter\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillTaskBundle/Entity/AbstractTask.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Return type \\(Chill\\\\MainBundle\\\\Entity\\\\Scope\\|null\\) of method Chill\\\\TaskBundle\\\\Entity\\\\AbstractTask\\:\\:getScope\\(\\) should be covariant with return type \\(Chill\\\\MainBundle\\\\Entity\\\\Scope\\) of method Chill\\\\MainBundle\\\\Entity\\\\HasScopeInterface\\:\\:getScope\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillTaskBundle/Entity/AbstractTask.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$entity \\(Chill\\\\ThirdPartyBundle\\\\Entity\\\\ThirdParty\\) of method Chill\\\\ThirdPartyBundle\\\\Controller\\\\ThirdPartyController\\:\\:onPostFetchEntity\\(\\) should be contravariant with parameter \\$entity \\(mixed\\) of method Chill\\\\MainBundle\\\\CRUD\\\\Controller\\\\CRUDController\\:\\:onPostFetchEntity\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillThirdPartyBundle/Controller/ThirdPartyController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$createdAt \\(DateTimeImmutable\\) of method Chill\\\\ThirdPartyBundle\\\\Entity\\\\ThirdParty\\:\\:setCreatedAt\\(\\) should be contravariant with parameter \\$datetime \\(DateTimeInterface\\) of method Chill\\\\MainBundle\\\\Doctrine\\\\Model\\\\TrackCreationInterface\\:\\:setCreatedAt\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$updatedAt \\(DateTimeImmutable\\) of method Chill\\\\ThirdPartyBundle\\\\Entity\\\\ThirdParty\\:\\:setUpdatedAt\\(\\) should be contravariant with parameter \\$datetime \\(DateTimeInterface\\) of method Chill\\\\MainBundle\\\\Doctrine\\\\Model\\\\TrackUpdateInterface\\:\\:setUpdatedAt\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$limit \\(null\\) of method Chill\\\\ThirdPartyBundle\\\\Repository\\\\ThirdPartyRepository\\:\\:findBy\\(\\) should be contravariant with parameter \\$limit \\(int\\|null\\) of method Doctrine\\\\Persistence\\\\ObjectRepository\\<object\\>\\:\\:findBy\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillThirdPartyBundle/Repository/ThirdPartyRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#4 \\$offset \\(null\\) of method Chill\\\\ThirdPartyBundle\\\\Repository\\\\ThirdPartyRepository\\:\\:findBy\\(\\) should be contravariant with parameter \\$offset \\(int\\|null\\) of method Doctrine\\\\Persistence\\\\ObjectRepository\\<object\\>\\:\\:findBy\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillThirdPartyBundle/Repository/ThirdPartyRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$subject \\(Chill\\\\ThirdPartyBundle\\\\Entity\\\\ThirdParty\\|null\\) of method Chill\\\\ThirdPartyBundle\\\\Security\\\\Voter\\\\ThirdPartyVoter\\:\\:voteOnAttribute\\(\\) should be contravariant with parameter \\$subject \\(mixed\\) of method Symfony\\\\Component\\\\Security\\\\Core\\\\Authorization\\\\Voter\\\\Voter\\:\\:voteOnAttribute\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillThirdPartyBundle/Security/Voter/ThirdPartyVoter.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$thirdParty \\(Chill\\\\ThirdPartyBundle\\\\Entity\\\\ThirdParty\\) of method Chill\\\\ThirdPartyBundle\\\\Serializer\\\\Normalizer\\\\ThirdPartyNormalizer\\:\\:normalize\\(\\) should be contravariant with parameter \\$object \\(mixed\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:normalize\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillThirdPartyBundle/Serializer/Normalizer/ThirdPartyNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$format \\(string\\) of method Chill\\\\ThirdPartyBundle\\\\Serializer\\\\Normalizer\\\\ThirdPartyNormalizer\\:\\:supportsNormalization\\(\\) should be contravariant with parameter \\$format \\(string\\|null\\) of method Symfony\\\\Component\\\\Serializer\\\\Normalizer\\\\NormalizerInterface\\:\\:supportsNormalization\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillThirdPartyBundle/Serializer/Normalizer/ThirdPartyNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$document \\(Chill\\\\DocStoreBundle\\\\Entity\\\\StoredObject\\) of method Chill\\\\WopiBundle\\\\Service\\\\Wopi\\\\ChillDocumentManager\\:\\:getBasename\\(\\) should be contravariant with parameter \\$document \\(ChampsLibres\\\\WopiLib\\\\Contract\\\\Entity\\\\Document\\) of method ChampsLibres\\\\WopiLib\\\\Contract\\\\Service\\\\DocumentManagerInterface\\:\\:getBasename\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentManager.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$document \\(Chill\\\\DocStoreBundle\\\\Entity\\\\StoredObject\\) of method Chill\\\\WopiBundle\\\\Service\\\\Wopi\\\\ChillDocumentManager\\:\\:getCreationDate\\(\\) should be contravariant with parameter \\$document \\(ChampsLibres\\\\WopiLib\\\\Contract\\\\Entity\\\\Document\\) of method ChampsLibres\\\\WopiLib\\\\Contract\\\\Service\\\\DocumentManagerInterface\\:\\:getCreationDate\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentManager.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$document \\(Chill\\\\DocStoreBundle\\\\Entity\\\\StoredObject\\) of method Chill\\\\WopiBundle\\\\Service\\\\Wopi\\\\ChillDocumentManager\\:\\:getDocumentId\\(\\) should be contravariant with parameter \\$document \\(ChampsLibres\\\\WopiLib\\\\Contract\\\\Entity\\\\Document\\) of method ChampsLibres\\\\WopiLib\\\\Contract\\\\Service\\\\DocumentManagerInterface\\:\\:getDocumentId\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentManager.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$document \\(Chill\\\\DocStoreBundle\\\\Entity\\\\StoredObject\\) of method Chill\\\\WopiBundle\\\\Service\\\\Wopi\\\\ChillDocumentManager\\:\\:getLastModifiedDate\\(\\) should be contravariant with parameter \\$document \\(ChampsLibres\\\\WopiLib\\\\Contract\\\\Entity\\\\Document\\) of method ChampsLibres\\\\WopiLib\\\\Contract\\\\Service\\\\DocumentManagerInterface\\:\\:getLastModifiedDate\\(\\)$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentManager.php | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -1,701 +0,0 @@ | ||||
| parameters: | ||||
| 	ignoreErrors: | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$event of method Symfony\\\\Contracts\\\\EventDispatcher\\\\EventDispatcherInterface\\:\\:dispatch\\(\\) expects object, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillActivityBundle/Controller/ActivityController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$context of method Chill\\\\ActivityBundle\\\\Timeline\\\\TimelineActivityProvider\\:\\:checkContext\\(\\) expects string, Chill\\\\MainBundle\\\\Timeline\\\\type given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillActivityBundle/Timeline/TimelineActivityProvider.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$callback of function array_map expects \\(callable\\(Chill\\\\BudgetBundle\\\\Repository\\\\ChargeType\\)\\: mixed\\)\\|null, Closure\\(Chill\\\\BudgetBundle\\\\Entity\\\\ChargeKind\\)\\: int\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillBudgetBundle/Service/Summary/SummaryBudget.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$callback of function array_map expects \\(callable\\(Chill\\\\BudgetBundle\\\\Repository\\\\ResourceType\\)\\: mixed\\)\\|null, Closure\\(Chill\\\\BudgetBundle\\\\Entity\\\\ResourceKind\\)\\: int\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillBudgetBundle/Service/Summary/SummaryBudget.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$byUser of class Chill\\\\CalendarBundle\\\\Messenger\\\\Message\\\\InviteUpdateMessage constructor expects Chill\\\\MainBundle\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCalendarBundle/Controller/InviteApiController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$byUser of class Chill\\\\CalendarBundle\\\\Messenger\\\\Message\\\\CalendarRemovedMessage constructor expects Chill\\\\MainBundle\\\\Entity\\\\User\\|null, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCalendarBundle/Messenger/Doctrine/CalendarEntityListener.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$byUser of class Chill\\\\CalendarBundle\\\\Messenger\\\\Message\\\\CalendarMessage constructor expects Chill\\\\MainBundle\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillCalendarBundle/Messenger/Doctrine/CalendarEntityListener.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$byUser of class Chill\\\\CalendarBundle\\\\Messenger\\\\Message\\\\CalendarRangeRemovedMessage constructor expects Chill\\\\MainBundle\\\\Entity\\\\User\\|null, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCalendarBundle/Messenger/Doctrine/CalendarRangeEntityListener.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$byUser of class Chill\\\\CalendarBundle\\\\Messenger\\\\Message\\\\CalendarRangeMessage constructor expects Chill\\\\MainBundle\\\\Entity\\\\User\\|null, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillCalendarBundle/Messenger/Doctrine/CalendarRangeEntityListener.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$token of method Chill\\\\CalendarBundle\\\\RemoteCalendar\\\\Connector\\\\MSGraph\\\\OnBehalfOfUserTokenStorage\\:\\:setToken\\(\\) expects TheNetworg\\\\OAuth2\\\\Client\\\\Token\\\\AccessToken, League\\\\OAuth2\\\\Client\\\\Token\\\\AccessTokenInterface given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCalendarBundle/RemoteCalendar/Connector/MSGraph/OnBehalfOfUserTokenStorage.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$code of class Exception constructor expects int, array\\<string, int\\|string\\|null\\> given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCalendarBundle/RemoteCalendar/Connector/MSGraphRemoteCalendarConnector.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#4 \\$offset of method Chill\\\\CalendarBundle\\\\Repository\\\\CalendarRepository\\:\\:findBy\\(\\) expects int\\|null, array\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCalendarBundle/Repository/CalendarRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$prefix of function uniqid expects string, int\\<0, max\\> given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillCustomFieldsBundle/Form/Type/ChoicesListType.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$callback of function array_filter expects callable\\(Symfony\\\\Component\\\\Serializer\\\\Mapping\\\\AttributeMetadataInterface\\)\\: mixed, Closure\\(Symfony\\\\Component\\\\Serializer\\\\Mapping\\\\AttributeMetadata\\)\\: bool given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/DocGenObjectNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$metadata of method Chill\\\\DocGeneratorBundle\\\\Serializer\\\\Normalizer\\\\DocGenObjectNormalizer\\:\\:normalizeNullData\\(\\) expects Symfony\\\\Component\\\\Serializer\\\\Mapping\\\\ClassMetadata, Symfony\\\\Component\\\\Serializer\\\\Mapping\\\\ClassMetadataInterface given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/DocGenObjectNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#4 \\$attributes of method Chill\\\\DocGeneratorBundle\\\\Serializer\\\\Normalizer\\\\DocGenObjectNormalizer\\:\\:normalizeNullData\\(\\) expects array\\<Symfony\\\\Component\\\\Serializer\\\\Mapping\\\\AttributeMetadata\\>, array\\<Symfony\\\\Component\\\\Serializer\\\\Mapping\\\\AttributeMetadataInterface\\> given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/DocGenObjectNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#5 \\$metadata of method Chill\\\\DocGeneratorBundle\\\\Serializer\\\\Normalizer\\\\DocGenObjectNormalizer\\:\\:normalizeObject\\(\\) expects Symfony\\\\Component\\\\Serializer\\\\Mapping\\\\ClassMetadata, Symfony\\\\Component\\\\Serializer\\\\Mapping\\\\ClassMetadataInterface given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/DocGenObjectNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#6 \\$attributes of method Chill\\\\DocGeneratorBundle\\\\Serializer\\\\Normalizer\\\\DocGenObjectNormalizer\\:\\:normalizeObject\\(\\) expects array\\<Symfony\\\\Component\\\\Serializer\\\\Mapping\\\\AttributeMetadata\\>, array\\<Symfony\\\\Component\\\\Serializer\\\\Mapping\\\\AttributeMetadataInterface\\> given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/DocGenObjectNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$event of method Symfony\\\\Contracts\\\\EventDispatcher\\\\EventDispatcherInterface\\:\\:dispatch\\(\\) expects object, string given\\.$#" | ||||
| 			count: 4 | ||||
| 			path: src/Bundle/ChillDocStoreBundle/Controller/DocumentPersonController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$event of method Symfony\\\\Contracts\\\\EventDispatcher\\\\EventDispatcherInterface\\:\\:dispatch\\(\\) expects object, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillEventBundle/Controller/EventController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$name of method Symfony\\\\Component\\\\Form\\\\FormFactoryInterface\\:\\:createNamedBuilder\\(\\) expects string, null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillEventBundle/Controller/EventController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, Chill\\\\MainBundle\\\\Entity\\\\Center given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillEventBundle/Controller/EventController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$participations of method Chill\\\\EventBundle\\\\Controller\\\\ParticipationController\\:\\:createEditFormMultiple\\(\\) expects ArrayIterator, Traversable given\\.$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillEventBundle/Controller/ParticipationController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, null given\\.$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillEventBundle/Form/ChoiceLoader/EventChoiceLoader.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$previous of class Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\BadRequestHttpException constructor expects Throwable\\|null, int given\\.$#" | ||||
| 			count: 3 | ||||
| 			path: src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$code of class Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\BadRequestHttpException constructor expects int, Symfony\\\\Component\\\\Serializer\\\\Exception\\\\NotEncodableValueException given\\.$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$code of class Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\BadRequestHttpException constructor expects int, Symfony\\\\Component\\\\Serializer\\\\Exception\\\\UnexpectedValueException given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$role of method Chill\\\\MainBundle\\\\Security\\\\Authorization\\\\AuthorizationHelper\\:\\:getReachableCenters\\(\\) expects string, Symfony\\\\Component\\\\Security\\\\Core\\\\Role\\\\Role given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$formClass of method Chill\\\\MainBundle\\\\CRUD\\\\Controller\\\\CRUDController\\:\\:createFormFor\\(\\) expects string\\|null, Chill\\\\MainBundle\\\\CRUD\\\\Controller\\\\type\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$scope of method Chill\\\\MainBundle\\\\Security\\\\Authorization\\\\AuthorizationHelper\\:\\:getReachableCenters\\(\\) expects Chill\\\\MainBundle\\\\Entity\\\\Scope\\|null, Chill\\\\MainBundle\\\\CRUD\\\\Controller\\\\Scope\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$name of method Chill\\\\MainBundle\\\\Entity\\\\Country\\:\\:setName\\(\\) expects string, array\\<int\\|string, string\\> given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Command/LoadCountriesCommand.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#4 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, Chill\\\\MainBundle\\\\Entity\\\\the given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Command/LoadPostalCodesCommand.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$alias of method Chill\\\\MainBundle\\\\Export\\\\ExportManager\\:\\:getExport\\(\\) expects string, Symfony\\\\Component\\\\HttpFoundation\\\\Request given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/ExportController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$name of method Symfony\\\\Component\\\\Form\\\\FormFactoryInterface\\:\\:createNamedBuilder\\(\\) expects string, null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/ExportController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$alias of method Chill\\\\MainBundle\\\\Controller\\\\ExportController\\:\\:exportFormStep\\(\\) expects string, Symfony\\\\Component\\\\HttpFoundation\\\\Request given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/ExportController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$alias of method Chill\\\\MainBundle\\\\Controller\\\\ExportController\\:\\:formatterFormStep\\(\\) expects string, Symfony\\\\Component\\\\HttpFoundation\\\\Request given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/ExportController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$alias of method Chill\\\\MainBundle\\\\Controller\\\\ExportController\\:\\:forwardToGenerate\\(\\) expects string, Symfony\\\\Component\\\\HttpFoundation\\\\Request given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/ExportController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$alias of method Chill\\\\MainBundle\\\\Controller\\\\ExportController\\:\\:selectCentersStep\\(\\) expects string, Symfony\\\\Component\\\\HttpFoundation\\\\Request given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/ExportController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$user of method Chill\\\\MainBundle\\\\Repository\\\\NotificationRepository\\:\\:countUnreadByUser\\(\\) expects Chill\\\\MainBundle\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/NotificationApiController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$user of method Chill\\\\MainBundle\\\\Repository\\\\NotificationRepository\\:\\:findUnreadByUser\\(\\) expects Chill\\\\MainBundle\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/NotificationApiController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$addressee of method Chill\\\\MainBundle\\\\Repository\\\\NotificationRepository\\:\\:countAllForAttendee\\(\\) expects Chill\\\\MainBundle\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/NotificationController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$addressee of method Chill\\\\MainBundle\\\\Repository\\\\NotificationRepository\\:\\:findAllForAttendee\\(\\) expects Chill\\\\MainBundle\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/NotificationController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$sender of method Chill\\\\MainBundle\\\\Repository\\\\NotificationRepository\\:\\:countAllForSender\\(\\) expects Chill\\\\MainBundle\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/NotificationController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$sender of method Chill\\\\MainBundle\\\\Repository\\\\NotificationRepository\\:\\:findAllForSender\\(\\) expects Chill\\\\MainBundle\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/NotificationController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$user of method Chill\\\\MainBundle\\\\Repository\\\\NotificationRepository\\:\\:countUnreadByUserWhereAddressee\\(\\) expects Chill\\\\MainBundle\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/NotificationController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$user of method Chill\\\\MainBundle\\\\Repository\\\\NotificationRepository\\:\\:countUnreadByUserWhereSender\\(\\) expects Chill\\\\MainBundle\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/NotificationController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$event of method Symfony\\\\Contracts\\\\EventDispatcher\\\\EventDispatcherInterface\\:\\:dispatch\\(\\) expects object, string given\\.$#" | ||||
| 			count: 4 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/PasswordController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$token of class Chill\\\\MainBundle\\\\Security\\\\PasswordRecover\\\\PasswordRecoverEvent constructor expects Chill\\\\MainBundle\\\\Security\\\\PasswordRecover\\\\type\\|null, string given\\.$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/PasswordController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$ip of class Chill\\\\MainBundle\\\\Security\\\\PasswordRecover\\\\PasswordRecoverEvent constructor expects Chill\\\\MainBundle\\\\Security\\\\PasswordRecover\\\\type\\|null, string\\|null given\\.$#" | ||||
| 			count: 4 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/PasswordController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$context of method Chill\\\\MainBundle\\\\Timeline\\\\TimelineBuilder\\:\\:countItems\\(\\) expects Chill\\\\MainBundle\\\\Timeline\\\\unknown, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/TimelineCenterController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$user of method Chill\\\\MainBundle\\\\Entity\\\\Workflow\\\\EntityWorkflow\\:\\:addSubscriberToFinal\\(\\) expects Chill\\\\MainBundle\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/WorkflowApiController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$user of method Chill\\\\MainBundle\\\\Entity\\\\Workflow\\\\EntityWorkflow\\:\\:addSubscriberToStep\\(\\) expects Chill\\\\MainBundle\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/WorkflowApiController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$user of method Chill\\\\MainBundle\\\\Entity\\\\Workflow\\\\EntityWorkflow\\:\\:isUserSubscribedToFinal\\(\\) expects Chill\\\\MainBundle\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/WorkflowApiController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$user of method Chill\\\\MainBundle\\\\Entity\\\\Workflow\\\\EntityWorkflow\\:\\:isUserSubscribedToStep\\(\\) expects Chill\\\\MainBundle\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/WorkflowApiController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$user of method Chill\\\\MainBundle\\\\Entity\\\\Workflow\\\\EntityWorkflow\\:\\:removeSubscriberToFinal\\(\\) expects Chill\\\\MainBundle\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/WorkflowApiController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$user of method Chill\\\\MainBundle\\\\Entity\\\\Workflow\\\\EntityWorkflow\\:\\:removeSubscriberToStep\\(\\) expects Chill\\\\MainBundle\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Controller/WorkflowApiController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$place of method Chill\\\\MainBundle\\\\DependencyInjection\\\\Configuration\\:\\:filterWidgetByPlace\\(\\) expects string, Chill\\\\MainBundle\\\\DependencyInjection\\\\Widget\\\\type given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/DependencyInjection/Configuration.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$place of method Chill\\\\MainBundle\\\\DependencyInjection\\\\Configuration\\:\\:getWidgetAliasesbyPlace\\(\\) expects Chill\\\\MainBundle\\\\DependencyInjection\\\\Widget\\\\type, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/DependencyInjection/Configuration.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$array of function implode expects array\\|null, Chill\\\\MainBundle\\\\DependencyInjection\\\\Widget\\\\type given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/DependencyInjection/Configuration.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$place of method Chill\\\\MainBundle\\\\DependencyInjection\\\\Widget\\\\Factory\\\\WidgetFactoryInterface\\:\\:createDefinition\\(\\) expects Chill\\\\MainBundle\\\\DependencyInjection\\\\Widget\\\\Factory\\\\type, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/DependencyInjection/Widget/AbstractWidgetsCompilerPass.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$order of method Chill\\\\MainBundle\\\\DependencyInjection\\\\Widget\\\\Factory\\\\WidgetFactoryInterface\\:\\:createDefinition\\(\\) expects Chill\\\\MainBundle\\\\DependencyInjection\\\\Widget\\\\Factory\\\\type, float given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/DependencyInjection/Widget/AbstractWidgetsCompilerPass.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$place of method Chill\\\\MainBundle\\\\DependencyInjection\\\\Widget\\\\Factory\\\\WidgetFactoryInterface\\:\\:getServiceId\\(\\) expects string, Chill\\\\MainBundle\\\\DependencyInjection\\\\Widget\\\\Factory\\\\type given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/DependencyInjection/Widget/Factory/AbstractWidgetFactory.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$order of method Chill\\\\MainBundle\\\\DependencyInjection\\\\Widget\\\\Factory\\\\WidgetFactoryInterface\\:\\:getServiceId\\(\\) expects float, Chill\\\\MainBundle\\\\DependencyInjection\\\\Widget\\\\Factory\\\\type given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/DependencyInjection/Widget/Factory/AbstractWidgetFactory.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$iterator of function iterator_to_array expects Traversable, array\\<Chill\\\\MainBundle\\\\Export\\\\AggregatorInterface\\> given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Export/ExportManager.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$nbAggregators of method Chill\\\\MainBundle\\\\Export\\\\Formatter\\\\CSVFormatter\\:\\:appendAggregatorForm\\(\\) expects string, int\\<0, max\\> given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Export/Formatter/CSVFormatter.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$array of function array_map expects array, Chill\\\\MainBundle\\\\Export\\\\Formatter\\\\type given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Export/Formatter/SpreadSheetFormatter.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$nbAggregators of method Chill\\\\MainBundle\\\\Export\\\\Formatter\\\\SpreadSheetFormatter\\:\\:appendAggregatorForm\\(\\) expects string, int\\<0, max\\> given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Export/Formatter/SpreadSheetFormatter.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, null given\\.$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillMainBundle/Form/ChoiceLoader/PostalCodeChoiceLoader.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$user of method Chill\\\\MainBundle\\\\Entity\\\\Embeddable\\\\PrivateCommentEmbeddable\\:\\:getCommentForUser\\(\\) expects Chill\\\\MainBundle\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Form/DataMapper/PrivateCommentDataMapper.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$em of class Chill\\\\MainBundle\\\\Form\\\\Type\\\\DataTransformer\\\\ObjectToIdTransformer constructor expects Doctrine\\\\ORM\\\\EntityManagerInterface, Doctrine\\\\Persistence\\\\ObjectManager given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Form/Type/Select2CountryType.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$em of class Chill\\\\MainBundle\\\\Form\\\\Type\\\\DataTransformer\\\\MultipleObjectsToIdTransformer constructor expects Doctrine\\\\ORM\\\\EntityManagerInterface, Doctrine\\\\Persistence\\\\ObjectManager given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Form/Type/Select2LanguageType.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$translatableStrings of method Chill\\\\MainBundle\\\\Templating\\\\TranslatableStringHelper\\:\\:localize\\(\\) expects array, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Form/Type/Select2LanguageType.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$datetime of class DateTime constructor expects string, Chill\\\\MainBundle\\\\Search\\\\type given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Search/AbstractSearch.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#4 \\$paginator of method Chill\\\\MainBundle\\\\Search\\\\SearchApi\\:\\:fetchRawResult\\(\\) expects Chill\\\\MainBundle\\\\Pagination\\\\Paginator, Chill\\\\MainBundle\\\\Pagination\\\\PaginatorInterface given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Search/SearchApi.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$callback of function uasort expects callable\\(Chill\\\\MainBundle\\\\Search\\\\HasAdvancedSearchForm, Chill\\\\MainBundle\\\\Search\\\\HasAdvancedSearchForm\\)\\: int, Closure\\(Chill\\\\MainBundle\\\\Search\\\\SearchInterface, Chill\\\\MainBundle\\\\Search\\\\SearchInterface\\)\\: \\-1\\|0\\|1 given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Search/SearchProvider.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$subject of function preg_match_all expects string, Chill\\\\MainBundle\\\\Search\\\\type given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Search/SearchProvider.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$object of function get_class expects object, array\\<Chill\\\\MainBundle\\\\Entity\\\\Center\\> given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Security/Authorization/AuthorizationHelper.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$user of method Chill\\\\MainBundle\\\\Entity\\\\Notification\\:\\:isReadBy\\(\\) expects Chill\\\\MainBundle\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/NotificationNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$user of method Chill\\\\MainBundle\\\\Entity\\\\Embeddable\\\\PrivateCommentEmbeddable\\:\\:setCommentForUser\\(\\) expects Chill\\\\MainBundle\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Serializer/Normalizer/PrivateCommentEmbeddableNormalizer.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$event of method Symfony\\\\Contracts\\\\EventDispatcher\\\\EventDispatcherInterface\\:\\:dispatch\\(\\) expects object, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Templating/Widget/WidgetRenderingTwig.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$context of method Chill\\\\MainBundle\\\\Timeline\\\\TimelineBuilder\\:\\:buildUnionQuery\\(\\) expects string, Chill\\\\MainBundle\\\\Timeline\\\\unknown given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Timeline/TimelineBuilder.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$context of method Chill\\\\MainBundle\\\\Timeline\\\\TimelineProviderInterface\\:\\:getEntityTemplate\\(\\) expects Chill\\\\MainBundle\\\\Timeline\\\\type, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Timeline/TimelineBuilder.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$phoneNumber of method Chill\\\\MainBundle\\\\Phonenumber\\\\PhoneNumberHelperInterface\\:\\:format\\(\\) expects libphonenumber\\\\PhoneNumber\\|null, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Validation/Validator/ValidPhonenumber.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$transitionBy of method Chill\\\\MainBundle\\\\Entity\\\\Workflow\\\\EntityWorkflowStep\\:\\:setTransitionBy\\(\\) expects Chill\\\\MainBundle\\\\Entity\\\\User\\|null, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Workflow/EventSubscriber/EntityWorkflowTransitionEventSubscriber.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$event of method Symfony\\\\Contracts\\\\EventDispatcher\\\\EventDispatcherInterface\\:\\:dispatch\\(\\) expects object, string given\\.$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillPersonBundle/Actions/Remove/PersonMove.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$event of method Symfony\\\\Contracts\\\\EventDispatcher\\\\EventDispatcherInterface\\:\\:dispatch\\(\\) expects object, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Command/ImportPeopleFromCSVCommand.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$mobilenumber of method Chill\\\\PersonBundle\\\\Entity\\\\Person\\:\\:setMobilenumber\\(\\) expects libphonenumber\\\\PhoneNumber\\|null, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Command/ImportPeopleFromCSVCommand.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$phonenumber of method Chill\\\\PersonBundle\\\\Entity\\\\Person\\:\\:setPhonenumber\\(\\) expects libphonenumber\\\\PhoneNumber\\|null, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Command/ImportPeopleFromCSVCommand.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$event of method Symfony\\\\Contracts\\\\EventDispatcher\\\\EventDispatcherInterface\\:\\:dispatch\\(\\) expects object, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseApiController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$event of method Symfony\\\\Contracts\\\\EventDispatcher\\\\EventDispatcherInterface\\:\\:dispatch\\(\\) expects object, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$callback of function usort expects callable\\(mixed, mixed\\)\\: int, Closure\\(mixed, mixed\\)\\: bool given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$user of method Chill\\\\PersonBundle\\\\Repository\\\\AccompanyingPeriod\\\\AccompanyingPeriodWorkEvaluationRepository\\:\\:countNearMaxDateByUser\\(\\) expects Chill\\\\MainBundle\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkEvaluationApiController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$user of method Chill\\\\PersonBundle\\\\Repository\\\\AccompanyingPeriod\\\\AccompanyingPeriodWorkEvaluationRepository\\:\\:findNearMaxDateByUser\\(\\) expects Chill\\\\MainBundle\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkEvaluationApiController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$object of static method DateTimeImmutable\\:\\:createFromMutable\\(\\) expects DateTime, DateTimeInterface given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Controller/HouseholdApiController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$callback of function usort expects callable\\(mixed, mixed\\)\\: int, Closure\\(mixed, mixed\\)\\: bool given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Controller/HouseholdController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$previous of class Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\BadRequestHttpException constructor expects Throwable\\|null, int given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Controller/HouseholdMemberController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$code of class Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\BadRequestHttpException constructor expects int, Symfony\\\\Component\\\\Serializer\\\\Exception\\\\InvalidArgumentException\\|Symfony\\\\Component\\\\Serializer\\\\Exception\\\\UnexpectedValueException given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Controller/HouseholdMemberController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$event of method Symfony\\\\Contracts\\\\EventDispatcher\\\\EventDispatcherInterface\\:\\:dispatch\\(\\) expects object, string given\\.$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillPersonBundle/Controller/PersonController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$form of method Chill\\\\PersonBundle\\\\Controller\\\\PersonController\\:\\:isLastPostDataChanges\\(\\) expects Symfony\\\\Component\\\\Form\\\\Form, Symfony\\\\Component\\\\Form\\\\FormInterface given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Controller/PersonController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$event of method Symfony\\\\Contracts\\\\EventDispatcher\\\\EventDispatcherInterface\\:\\:dispatch\\(\\) expects object, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Controller/PersonDuplicateController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$precision of method Chill\\\\PersonBundle\\\\Search\\\\SimilarPersonMatcher\\:\\:matchPerson\\(\\) expects float, Chill\\\\PersonBundle\\\\Repository\\\\PersonNotDuplicateRepository given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Controller/PersonDuplicateController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$orderBy of method Chill\\\\PersonBundle\\\\Search\\\\SimilarPersonMatcher\\:\\:matchPerson\\(\\) expects string, float given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Controller/PersonDuplicateController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#4 \\$addYearComparison of method Chill\\\\PersonBundle\\\\Search\\\\SimilarPersonMatcher\\:\\:matchPerson\\(\\) expects bool, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Controller/PersonDuplicateController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$context of method Chill\\\\MainBundle\\\\Timeline\\\\TimelineBuilder\\:\\:countItems\\(\\) expects Chill\\\\MainBundle\\\\Timeline\\\\unknown, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Controller/TimelinePersonController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$event of method Symfony\\\\Contracts\\\\EventDispatcher\\\\EventDispatcherInterface\\:\\:dispatch\\(\\) expects object, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Controller/TimelinePersonController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$period of method Chill\\\\PersonBundle\\\\Entity\\\\AccompanyingPeriod\\\\AccompanyingPeriodLocationHistory\\:\\:setPeriod\\(\\) expects Chill\\\\PersonBundle\\\\Entity\\\\AccompanyingPeriod, null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$now of method Chill\\\\PersonBundle\\\\Entity\\\\Household\\\\Household\\:\\:getCurrentMembers\\(\\) expects DateTimeImmutable\\|null, DateTimeInterface\\|null given\\.$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillPersonBundle/Entity/Household/Household.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$now of method Chill\\\\PersonBundle\\\\Entity\\\\Household\\\\Household\\:\\:getNonCurrentMembers\\(\\) expects DateTimeImmutable\\|null, DateTimeInterface\\|null given\\.$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillPersonBundle/Entity/Household/Household.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$key of method Doctrine\\\\Common\\\\Collections\\\\Collection\\<\\(int\\|string\\),mixed\\>\\:\\:remove\\(\\) expects \\(int\\|string\\), Chill\\\\PersonBundle\\\\Entity\\\\SocialWork\\\\SocialAction given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Entity/SocialWork/Evaluation.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$translatableStrings of method Chill\\\\MainBundle\\\\Templating\\\\TranslatableStringHelper\\:\\:localize\\(\\) expects array, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Export/Helper/ListPersonHelper.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, null given\\.$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillPersonBundle/Form/ChoiceLoader/PersonChoiceLoader.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$entityName of method Doctrine\\\\ORM\\\\EntityManager\\:\\:getRepository\\(\\) expects class\\-string\\<ChillPersonBundle\\:AccompanyingPeriod\\>, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Timeline/AbstractTimelineAccompanyingPeriod.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$user of method Chill\\\\MainBundle\\\\Security\\\\Authorization\\\\AuthorizationHelper\\:\\:filterReachableCenters\\(\\) expects Chill\\\\MainBundle\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Timeline/AbstractTimelineAccompanyingPeriod.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$context of method Chill\\\\PersonBundle\\\\Timeline\\\\AbstractTimelineAccompanyingPeriod\\:\\:getBasicEntityTemplate\\(\\) expects string, Chill\\\\MainBundle\\\\Timeline\\\\type given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Timeline/TimelineAccompanyingPeriodClosing.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#3 \\$context of method Chill\\\\PersonBundle\\\\Timeline\\\\AbstractTimelineAccompanyingPeriod\\:\\:getBasicEntityTemplate\\(\\) expects string, Chill\\\\MainBundle\\\\Timeline\\\\type given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Timeline/TimelineAccompanyingPeriodOpening.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$role of method Chill\\\\MainBundle\\\\Security\\\\Authorization\\\\AuthorizationHelperInterface\\:\\:getReachableCenters\\(\\) expects string, Symfony\\\\Component\\\\Security\\\\Core\\\\Role\\\\Role given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Widget/PersonListWidget.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$className of method Doctrine\\\\Persistence\\\\ObjectManager\\:\\:getRepository\\(\\) expects class\\-string\\<ChillReportBundle\\:Report\\>, string given\\.$#" | ||||
| 			count: 4 | ||||
| 			path: src/Bundle/ChillReportBundle/Controller/ReportController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$entity of method Chill\\\\ReportBundle\\\\Controller\\\\ReportController\\:\\:createEditForm\\(\\) expects Chill\\\\ReportBundle\\\\Entity\\\\Report, ChillReportBundle\\:Report given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillReportBundle/Controller/ReportController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$event of method Symfony\\\\Contracts\\\\EventDispatcher\\\\EventDispatcherInterface\\:\\:dispatch\\(\\) expects object, string given\\.$#" | ||||
| 			count: 4 | ||||
| 			path: src/Bundle/ChillReportBundle/Controller/ReportController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$role of method Chill\\\\MainBundle\\\\Security\\\\Authorization\\\\AuthorizationHelper\\:\\:getReachableScopes\\(\\) expects string, Symfony\\\\Component\\\\Security\\\\Core\\\\Role\\\\Role given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillReportBundle/Controller/ReportController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$em of class Chill\\\\MainBundle\\\\Form\\\\Type\\\\DataTransformer\\\\ScopeTransformer constructor expects Doctrine\\\\ORM\\\\EntityManagerInterface, Doctrine\\\\Persistence\\\\ObjectManager given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillReportBundle/Form/ReportType.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$role of method Chill\\\\MainBundle\\\\Security\\\\Authorization\\\\AuthorizationHelper\\:\\:getReachableScopes\\(\\) expects string, Symfony\\\\Component\\\\Security\\\\Core\\\\Role\\\\Role given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillReportBundle/Form/ReportType.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$role of method Chill\\\\MainBundle\\\\Security\\\\Authorization\\\\AuthorizationHelper\\:\\:getReachableCenters\\(\\) expects string, Symfony\\\\Component\\\\Security\\\\Core\\\\Role\\\\Role given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillReportBundle/Search/ReportSearch.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$role of method Chill\\\\MainBundle\\\\Security\\\\Authorization\\\\AuthorizationHelper\\:\\:getReachableScopes\\(\\) expects string, Symfony\\\\Component\\\\Security\\\\Core\\\\Role\\\\Role given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillReportBundle/Search/ReportSearch.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$context of method Chill\\\\ReportBundle\\\\Timeline\\\\TimelineReportProvider\\:\\:checkContext\\(\\) expects string, Chill\\\\MainBundle\\\\Timeline\\\\type given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillReportBundle/Timeline/TimelineReportProvider.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$entity of method Chill\\\\ReportBundle\\\\Timeline\\\\TimelineReportProvider\\:\\:getFieldsToRender\\(\\) expects Chill\\\\ReportBundle\\\\Entity\\\\Report, Chill\\\\MainBundle\\\\Timeline\\\\type given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillReportBundle/Timeline/TimelineReportProvider.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$entityName of method Doctrine\\\\ORM\\\\EntityManager\\:\\:getRepository\\(\\) expects class\\-string\\<ChillReportBundle\\:Report\\>, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillReportBundle/Timeline/TimelineReportProvider.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$event of method Symfony\\\\Contracts\\\\EventDispatcher\\\\EventDispatcherInterface\\:\\:dispatch\\(\\) expects object, string given\\.$#" | ||||
| 			count: 6 | ||||
| 			path: src/Bundle/ChillTaskBundle/Controller/SingleTaskController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$event of method Symfony\\\\Contracts\\\\EventDispatcher\\\\EventDispatcherInterface\\:\\:dispatch\\(\\) expects object, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillTaskBundle/Controller/TaskController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$keys of function array_fill_keys expects array, Chill\\\\TaskBundle\\\\Entity\\\\json given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillTaskBundle/Entity/AbstractTask.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$task of method Chill\\\\TaskBundle\\\\Entity\\\\Task\\\\SingleTaskPlaceEvent\\:\\:setTask\\(\\) expects Chill\\\\TaskBundle\\\\Entity\\\\SingleTask, Chill\\\\TaskBundle\\\\Entity\\\\AbstractTask given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillTaskBundle/Event/Lifecycle/TaskLifecycleEvent.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$repository of class Chill\\\\PersonBundle\\\\Form\\\\DataTransformer\\\\PersonToIdTransformer constructor expects Chill\\\\PersonBundle\\\\Repository\\\\PersonRepository, Doctrine\\\\ORM\\\\EntityManagerInterface given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillTaskBundle/Form/SingleTaskListType.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$role of method Chill\\\\MainBundle\\\\Security\\\\Authorization\\\\AuthorizationHelper\\:\\:getReachableCenters\\(\\) expects string, Symfony\\\\Component\\\\Security\\\\Core\\\\Role\\\\Role given\\.$#" | ||||
| 			count: 4 | ||||
| 			path: src/Bundle/ChillTaskBundle/Form/SingleTaskListType.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$extras of method Knp\\\\Menu\\\\MenuItem\\:\\:setExtras\\(\\) expects array\\<string, mixed\\>, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillTaskBundle/Menu/MenuBuilder.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$role of method Chill\\\\MainBundle\\\\Security\\\\Authorization\\\\AuthorizationHelper\\:\\:getReachableCenters\\(\\) expects string, Symfony\\\\Component\\\\Security\\\\Core\\\\Role\\\\Role given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillTaskBundle/Repository/SingleTaskRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$event of method Symfony\\\\Contracts\\\\EventDispatcher\\\\EventDispatcherInterface\\:\\:dispatch\\(\\) expects object, string given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillTaskBundle/Security/Authorization/TaskVoter.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#2 \\$role of method Chill\\\\MainBundle\\\\Security\\\\Authorization\\\\AuthorizationHelper\\:\\:getReachableCenters\\(\\) expects string, Symfony\\\\Component\\\\Security\\\\Core\\\\Role\\\\Role given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillTaskBundle/Timeline/TaskLifeCycleEventTimelineProvider.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$storedObject of method Chill\\\\WopiBundle\\\\Service\\\\Wopi\\\\ChillDocumentManager\\:\\:getContent\\(\\) expects Chill\\\\DocStoreBundle\\\\Entity\\\\StoredObject, ChampsLibres\\\\WopiLib\\\\Contract\\\\Entity\\\\Document given\\.$#" | ||||
| 			count: 3 | ||||
| 			path: src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentManager.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$storedObject of method Chill\\\\WopiBundle\\\\Service\\\\Wopi\\\\ChillDocumentManager\\:\\:setContent\\(\\) expects Chill\\\\DocStoreBundle\\\\Entity\\\\StoredObject, ChampsLibres\\\\WopiLib\\\\Contract\\\\Entity\\\\Document given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentManager.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Parameter \\#1 \\$type of method Chill\\\\DocStoreBundle\\\\Entity\\\\StoredObject\\:\\:setType\\(\\) expects string\\|null, false given\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentManager.php | ||||
| @@ -1,5 +1,10 @@ | ||||
| parameters: | ||||
| 	ignoreErrors: | ||||
| 		- | ||||
| 			message: "#^Variable property access on \\$this\\(Chill\\\\ActivityBundle\\\\Entity\\\\ActivityType\\)\\.$#" | ||||
| 			count: 3 | ||||
| 			path: src/Bundle/ChillActivityBundle/Entity/ActivityType.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Foreach overwrites \\$key with its key variable\\.$#" | ||||
| 			count: 1 | ||||
| @@ -15,6 +20,11 @@ parameters: | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillEventBundle/Form/ChoiceLoader/EventChoiceLoader.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Variable method call on object\\.$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Cannot unset offset '_token' on array\\{formatter\\: mixed, export\\: mixed, centers\\: mixed, alias\\: string\\}\\.$#" | ||||
| 			count: 1 | ||||
| @@ -40,11 +50,46 @@ parameters: | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Form/ChoiceLoader/PostalCodeChoiceLoader.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Variable \\$message on left side of \\?\\? always exists and is not nullable\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Templating/ChillTwigHelper.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Variable \\$sqls on left side of \\?\\? always exists and is not nullable\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Actions/Remove/PersonMove.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Class Chill\\\\PersonBundle\\\\Entity\\\\Person constructor invoked with 1 parameter, 0 required\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Command/ImportPeopleFromCSVCommand.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Variable \\$street1Value might not be defined\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Command/ImportPeopleFromCSVCommand.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Variable method call on mixed\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPeople.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Foreach overwrites \\$value with its value variable\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Form/ChoiceLoader/PersonChoiceLoader.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Foreach overwrites \\$action with its value variable\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Repository/SocialWork/GoalRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Foreach overwrites \\$action with its value variable\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Repository/SocialWork/ResultRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Foreach overwrites \\$value with its value variable\\.$#" | ||||
| 			count: 1 | ||||
|   | ||||
| @@ -1,6 +1,76 @@ | ||||
| parameters: | ||||
|     ignoreErrors: | ||||
|         - | ||||
|             message: "#^Implicit array creation is not allowed \\- variable \\$centers might not exist\\.$#" | ||||
|             count: 1 | ||||
|             path: src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php | ||||
|  | ||||
|         - | ||||
|             message: "#^Access to an undefined property Chill\\\\PersonBundle\\\\Entity\\\\AccompanyingPeriod\\:\\:\\$work\\.$#" | ||||
|             count: 1 | ||||
|             path: src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php | ||||
|  | ||||
|         - | ||||
|             message: "#^Undefined variable\\: \\$person$#" | ||||
|             count: 1 | ||||
|             path: src/Bundle/ChillActivityBundle/Repository/ActivityACLAwareRepository.php | ||||
|  | ||||
|         - | ||||
|             message: "#^Variable variables are not allowed\\.$#" | ||||
|             count: 4 | ||||
|             path: src/Bundle/ChillPersonBundle/Search/PersonSearch.php | ||||
|  | ||||
|         - | ||||
|             message: "#^Function Chill\\\\PersonBundle\\\\Serializer\\\\Normalizer\\\\·\\\\is_array not found\\.$#" | ||||
|             count: 1 | ||||
|             path: src/Bundle/ChillPersonBundle/Serializer/Normalizer/MembersEditorNormalizer.php | ||||
|  | ||||
|         - | ||||
|             message: "#^Undefined variable\\: \\$choiceSlug$#" | ||||
|             count: 1 | ||||
|             path: src/Bundle/ChillReportBundle/Export/Export/ReportList.php | ||||
|  | ||||
|         - | ||||
|             message: "#^Undefined variable\\: \\$type$#" | ||||
|             count: 1 | ||||
|             path: src/Bundle/ChillTaskBundle/Controller/TaskController.php | ||||
|  | ||||
|         - | ||||
|             message: "#^Call to an undefined method Chill\\\\MainBundle\\\\CRUD\\\\Controller\\\\AbstractCRUDController\\:\\:getRoleFor\\(\\)\\.$#" | ||||
|             count: 1 | ||||
|             path: src/Bundle/ChillMainBundle/CRUD/Controller/AbstractCRUDController.php | ||||
|  | ||||
|         - | ||||
|             message: "#^Call to an undefined method Chill\\\\MainBundle\\\\Controller\\\\UserController\\:\\:createEditForm\\(\\)\\.$#" | ||||
|             count: 1 | ||||
|             path: src/Bundle/ChillMainBundle/Controller/UserController.php | ||||
|  | ||||
|         - | ||||
|             message: "#^Undefined variable\\: \\$current$#" | ||||
|             count: 1 | ||||
|             path: src/Bundle/ChillMainBundle/Pagination/PageGenerator.php | ||||
|  | ||||
|         - | ||||
|             message: "#^Call to an undefined method Chill\\\\MainBundle\\\\Security\\\\Authorization\\\\AbstractChillVoter\\:\\:getSupportedAttributes\\(\\)\\.$#" | ||||
|             count: 1 | ||||
|             path: src/Bundle/ChillMainBundle/Security/Authorization/AbstractChillVoter.php | ||||
|  | ||||
|         - | ||||
|             message: "#^Call to an undefined method Chill\\\\MainBundle\\\\Security\\\\Authorization\\\\AbstractChillVoter\\:\\:getSupportedClasses\\(\\)\\.$#" | ||||
|             count: 1 | ||||
|             path: src/Bundle/ChillMainBundle/Security/Authorization/AbstractChillVoter.php | ||||
|  | ||||
|         - | ||||
|             message: "#^Call to an undefined method Chill\\\\MainBundle\\\\Security\\\\Authorization\\\\AbstractChillVoter\\:\\:isGranted\\(\\)\\.$#" | ||||
|             count: 1 | ||||
|             path: src/Bundle/ChillMainBundle/Security/Authorization/AbstractChillVoter.php | ||||
|  | ||||
|         - | ||||
|             message: "#^Access to an undefined property Chill\\\\PersonBundle\\\\Controller\\\\PersonController\\:\\:\\$security\\.$#" | ||||
|             count: 3 | ||||
|             path: src/Bundle/ChillPersonBundle/Controller/PersonController.php | ||||
|  | ||||
|         - | ||||
|             message: "#^Call to an undefined method Chill\\\\ThirdPartyBundle\\\\Form\\\\Type\\\\PickThirdPartyTypeCategoryType\\:\\:transform\\(\\)\\.$#" | ||||
|             count: 1 | ||||
|             path: src/Bundle/ChillThirdPartyBundle/Form/Type/PickThirdPartyTypeCategoryType.php | ||||
|   | ||||
| @@ -32,6 +32,14 @@ parameters: | ||||
| 			path: src/Bundle/ChillActivityBundle/Form/ActivityType.php | ||||
|  | ||||
|  | ||||
| 		- | ||||
| 			message: """ | ||||
| 				#^Instantiation of deprecated class Symfony\\\\Component\\\\Security\\\\Core\\\\Role\\\\Role\\: | ||||
| 				since Symfony 4\\.3, to be removed in 5\\.0\\. Use strings as roles instead\\.$# | ||||
| 			""" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillActivityBundle/Repository/ActivityACLAwareRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: """ | ||||
| 				#^Parameter \\$centerResolverDispatcher of method Chill\\\\ActivityBundle\\\\Repository\\\\ActivityACLAwareRepository\\:\\:__construct\\(\\) has typehint with deprecated interface Chill\\\\MainBundle\\\\Security\\\\Resolver\\\\CenterResolverDispatcherInterface\\: | ||||
| @@ -191,6 +199,14 @@ parameters: | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadLanguages.php | ||||
|  | ||||
| 		- | ||||
| 			message: """ | ||||
| 				#^Class Chill\\\\MainBundle\\\\Entity\\\\User implements deprecated interface Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\AdvancedUserInterface\\: | ||||
| 				since Symfony 4\\.1$# | ||||
| 			""" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillMainBundle/Entity/User.php | ||||
|  | ||||
| 		- | ||||
| 			message: """ | ||||
| 				#^Return type of method Chill\\\\MainBundle\\\\Entity\\\\User\\:\\:getRoles\\(\\) has typehint with deprecated class Symfony\\\\Component\\\\Security\\\\Core\\\\Role\\\\Role\\: | ||||
| @@ -313,6 +329,22 @@ parameters: | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Actions/ActionEvent.php | ||||
|  | ||||
| 		- | ||||
| 			message: """ | ||||
| 				#^Call to deprecated method getCurrentAccompanyingPeriod\\(\\) of class Chill\\\\PersonBundle\\\\Entity\\\\Person\\: | ||||
| 				since 1\\.1 use `getOpenedAccompanyingPeriod instead$# | ||||
| 			""" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Command/ImportPeopleFromCSVCommand.php | ||||
|  | ||||
| 		- | ||||
| 			message: """ | ||||
| 				#^Instantiation of deprecated class Symfony\\\\Component\\\\EventDispatcher\\\\Event\\: | ||||
| 				since Symfony 4\\.3, use "Symfony\\\\Contracts\\\\EventDispatcher\\\\Event" instead$# | ||||
| 			""" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Command/ImportPeopleFromCSVCommand.php | ||||
|  | ||||
| 		- | ||||
| 			message: """ | ||||
| 				#^Class Chill\\\\PersonBundle\\\\Controller\\\\AccompanyingCourseController extends deprecated class Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\Controller\\: | ||||
| @@ -509,3 +541,11 @@ parameters: | ||||
| 			count: 3 | ||||
| 			path: src/Bundle/ChillTaskBundle/Timeline/TaskLifeCycleEventTimelineProvider.php | ||||
|  | ||||
| 		- | ||||
| 			message: """ | ||||
| 				#^Instantiation of deprecated class Symfony\\\\Component\\\\Security\\\\Core\\\\Role\\\\Role\\: | ||||
| 				since Symfony 4\\.3, to be removed in 5\\.0\\. Use strings as roles instead\\.$# | ||||
| 			""" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillThirdPartyBundle/Search/ThirdPartySearch.php | ||||
|  | ||||
|   | ||||
| @@ -100,6 +100,11 @@ parameters: | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillDocStoreBundle/Entity/DocumentCategory.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Method Chill\\\\EventBundle\\\\Entity\\\\Participation\\:\\:offsetGet\\(\\) should return mixed but return statement is missing\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillEventBundle/Entity/Participation.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" | ||||
| 			count: 1 | ||||
| @@ -340,6 +345,11 @@ parameters: | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillPersonBundle/Search/PersonSearch.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" | ||||
| 			count: 2 | ||||
| 			path: src/Bundle/ChillPersonBundle/Templating/Entity/ClosingMotiveRender.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Method Chill\\\\ReportBundle\\\\DataFixtures\\\\ORM\\\\LoadReports\\:\\:getRandomChoice\\(\\) should return array\\<string\\>\\|string but return statement is missing\\.$#" | ||||
| 			count: 1 | ||||
| @@ -385,6 +395,16 @@ parameters: | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillTaskBundle/Timeline/TaskLifeCycleEventTimelineProvider.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillThirdPartyBundle/Form/ChoiceLoader/ThirdPartyChoiceLoader.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" | ||||
| 			count: 1 | ||||
| 			path: src/Bundle/ChillThirdPartyBundle/Repository/ThirdPartyRepository.php | ||||
|  | ||||
| 		- | ||||
| 			message: "#^Method Chill\\\\ThirdPartyBundle\\\\Search\\\\ThirdPartySearch\\:\\:renderResult\\(\\) should return string but return statement is missing\\.$#" | ||||
| 			count: 1 | ||||
|   | ||||
| @@ -1,9 +1,7 @@ | ||||
| parameters: | ||||
|     level: 5 | ||||
|     level: 1 | ||||
|     paths: | ||||
|         - src/ | ||||
|     tmpDir: .cache/ | ||||
|     reportUnmatchedIgnoredErrors: true | ||||
|     excludePaths: | ||||
|         - .php_cs* | ||||
|         - docs/ | ||||
| @@ -26,8 +24,4 @@ includes: | ||||
|     - phpstan-critical.neon | ||||
|     - phpstan-deprecations.neon | ||||
|     - phpstan-types.neon | ||||
|     - phpstan-baseline-level-2.neon | ||||
|     - phpstan-baseline-level-3.neon | ||||
|     - phpstan-baseline-level-4.neon | ||||
|     - phpstan-baseline-level-5.neon | ||||
|  | ||||
|   | ||||
							
								
								
									
										25
									
								
								psalm.xml
									
									
									
									
									
								
							
							
						
						
									
										25
									
								
								psalm.xml
									
									
									
									
									
								
							| @@ -9,10 +9,9 @@ | ||||
|     cacheDirectory="./.psalm" | ||||
| > | ||||
|     <projectFiles> | ||||
|         <directory name="src"/> | ||||
|         <directory name="src" /> | ||||
|         <ignoreFiles> | ||||
|             <directory name="./tests/"/> | ||||
|             <directory name="./node_modules/"/> | ||||
|             <directory name="./tests/" /> | ||||
|         </ignoreFiles> | ||||
|     </projectFiles> | ||||
|  | ||||
| @@ -21,27 +20,9 @@ | ||||
|     <issueHandlers> | ||||
|         <UndefinedDocblockClass> | ||||
|             <errorLevel type="suppress"> | ||||
|                 <referencedClass name="UnitEnum"/> | ||||
|                 <referencedClass name="UnitEnum" /> | ||||
|             </errorLevel> | ||||
|         </UndefinedDocblockClass> | ||||
|     </issueHandlers> | ||||
|  | ||||
|     <!-- | ||||
|     <fileExtensions> | ||||
|         <extension name=".php"/> | ||||
|         <extension name=".twig" checker="tests/app/vendor/psalm/plugin-symfony/src/Twig/TemplateFileAnalyzer.php" /> | ||||
|     </fileExtensions> | ||||
|     --> | ||||
|  | ||||
|     <plugins> | ||||
|         <pluginClass class="Psalm\PhpUnitPlugin\Plugin"/> | ||||
|         <!-- | ||||
|         <pluginClass class="Psalm\SymfonyPsalmPlugin\Plugin"> | ||||
|             <containerXml>tests/app/var/cache/dev/srcApp_KernelDevDebugContainer.xml</containerXml> | ||||
|             <stubs> | ||||
|                 <file name="vendor/symfony/dependency-injection/Loader/Configurator/ContainerConfigurator.php" /> | ||||
|             </stubs> | ||||
|         </pluginClass> | ||||
|         --> | ||||
|     </plugins> | ||||
| </psalm> | ||||
|   | ||||
| @@ -13,6 +13,7 @@ namespace Chill\ActivityBundle\Controller; | ||||
|  | ||||
| use Chill\ActivityBundle\Entity\Activity; | ||||
| use Chill\ActivityBundle\Entity\ActivityReason; | ||||
| use Chill\ActivityBundle\Form\ActivityFilterType; | ||||
| use Chill\ActivityBundle\Form\ActivityType; | ||||
| use Chill\ActivityBundle\Repository\ActivityACLAwareRepositoryInterface; | ||||
| use Chill\ActivityBundle\Repository\ActivityRepository; | ||||
| @@ -294,6 +295,10 @@ final class ActivityController extends AbstractController | ||||
|  | ||||
|         [$person, $accompanyingPeriod] = $this->getEntity($request); | ||||
|  | ||||
|         $form = $this->createForm(ActivityFilterType::class); | ||||
|  | ||||
|         $form->handleRequest($request); | ||||
|  | ||||
|         if ($person instanceof Person) { | ||||
|             $this->denyAccessUnlessGranted(ActivityVoter::SEE, $person); | ||||
|             $activities = $this->activityACLAwareRepository | ||||
| @@ -309,15 +314,43 @@ final class ActivityController extends AbstractController | ||||
|         } elseif ($accompanyingPeriod instanceof AccompanyingPeriod) { | ||||
|             $this->denyAccessUnlessGranted(ActivityVoter::SEE, $accompanyingPeriod); | ||||
|  | ||||
|             $activities = $this->activityACLAwareRepository | ||||
|                 ->findByAccompanyingPeriod($accompanyingPeriod, ActivityVoter::SEE, 0, null, ['date' => 'DESC', 'id' => 'DESC']); | ||||
|  | ||||
|             $view = 'ChillActivityBundle:Activity:listAccompanyingCourse.html.twig'; | ||||
|             if ($form->isSubmitted() && $form->isValid()) { | ||||
|                 $data = $form->getData(); | ||||
|                 $activities = $this->activityACLAwareRepository | ||||
|                     ->findByAccompanyingPeriod( | ||||
|                         $accompanyingPeriod, | ||||
|                         ActivityVoter::SEE, | ||||
|                         0, | ||||
|                         $data['dateTo'], | ||||
|                         $data['dateFrom'], | ||||
|                         $data['jobs']->getValues(), | ||||
|                         $data['types']->getValues(), | ||||
|                         $data['onlyMe'], | ||||
|                         null, | ||||
|                         ['date' => 'DESC', 'id' => 'DESC'] | ||||
|                     ); | ||||
|             } else { | ||||
|                 $activities = $this->activityACLAwareRepository | ||||
|                     ->findByAccompanyingPeriod( | ||||
|                         $accompanyingPeriod, | ||||
|                         ActivityVoter::SEE, | ||||
|                         0, | ||||
|                         null, | ||||
|                         null, | ||||
|                         [], | ||||
|                         [], | ||||
|                         false, | ||||
|                         null, | ||||
|                         ['date' => 'DESC', 'id' => 'DESC'] | ||||
|                     ); | ||||
|             } | ||||
|         } | ||||
|         $view = 'ChillActivityBundle:Activity:listAccompanyingCourse.html.twig'; | ||||
|  | ||||
|         return $this->render( | ||||
|             $view, | ||||
|             [ | ||||
|                 'form' => $form->createView(), | ||||
|                 'activities' => $activities, | ||||
|                 'person' => $person, | ||||
|                 'accompanyingCourse' => $accompanyingPeriod, | ||||
| @@ -651,8 +684,8 @@ final class ActivityController extends AbstractController | ||||
|                 throw $this->createNotFoundException('Accompanying Period not found'); | ||||
|             } | ||||
|  | ||||
|         // TODO Add permission | ||||
|         // $this->denyAccessUnlessGranted('CHILL_PERSON_SEE', $person); | ||||
|             // TODO Add permission | ||||
|             // $this->denyAccessUnlessGranted('CHILL_PERSON_SEE', $person); | ||||
|         } else { | ||||
|             throw $this->createNotFoundException('Person or Accompanying Period not found'); | ||||
|         } | ||||
|   | ||||
| @@ -257,10 +257,12 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac | ||||
|     /** | ||||
|      * Add a social issue. | ||||
|      * | ||||
|      * Note: the social issue consistency (the fact that only youngest social issues | ||||
|      * Note: the social issue consistency (the fact that only yougest social issues | ||||
|      * are kept) is processed by an entity listener: | ||||
|      * | ||||
|      * @see{\Chill\PersonBundle\AccompanyingPeriod\SocialIssueConsistency\AccompanyingPeriodSocialIssueConsistencyEntityListener} | ||||
|      * | ||||
|      * @return $this | ||||
|      */ | ||||
|     public function addSocialIssue(SocialIssue $socialIssue): self | ||||
|     { | ||||
| @@ -268,10 +270,6 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac | ||||
|             $this->socialIssues[] = $socialIssue; | ||||
|         } | ||||
|  | ||||
|         if ($this->getAccompanyingPeriod() !== null) { | ||||
|             $this->getAccompanyingPeriod()->addSocialIssue($socialIssue); | ||||
|         } | ||||
|  | ||||
|         return $this; | ||||
|     } | ||||
|  | ||||
| @@ -552,10 +550,6 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac | ||||
|     { | ||||
|         $this->accompanyingPeriod = $accompanyingPeriod; | ||||
|  | ||||
|         foreach ($this->getSocialIssues() as $issue) { | ||||
|             $this->accompanyingPeriod->addSocialIssue($issue); | ||||
|         } | ||||
|  | ||||
|         return $this; | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -380,7 +380,6 @@ class ActivityType | ||||
|             throw new InvalidArgumentException('Field "' . $field . '" not found'); | ||||
|         } | ||||
|  | ||||
|         /** @phpstan-ignore-next-line  */ | ||||
|         return $this->{$property}; | ||||
|     } | ||||
|  | ||||
| @@ -539,7 +538,6 @@ class ActivityType | ||||
|             throw new InvalidArgumentException('Field "' . $field . '" not found'); | ||||
|         } | ||||
|  | ||||
|         /** @phpstan-ignore-next-line  */ | ||||
|         return self::FIELD_REQUIRED === $this->{$property}; | ||||
|     } | ||||
|  | ||||
| @@ -551,7 +549,6 @@ class ActivityType | ||||
|             throw new InvalidArgumentException('Field "' . $field . '" not found'); | ||||
|         } | ||||
|  | ||||
|         /** @phpstan-ignore-next-line  */ | ||||
|         return self::FIELD_INVISIBLE !== $this->{$property}; | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -58,8 +58,7 @@ class DateAggregator implements AggregatorInterface | ||||
|                 break; | ||||
|  | ||||
|             case 'year': | ||||
|                 $fmt = 'YYYY'; | ||||
|                 $order = 'DESC'; | ||||
|                 $fmt = 'YYYY'; $order = 'DESC'; | ||||
|  | ||||
|                 break; // order DESC does not works ! | ||||
|  | ||||
|   | ||||
| @@ -73,7 +73,7 @@ class ListActivity implements ListInterface, GroupedExportInterface | ||||
|                 }; | ||||
|  | ||||
|             case 'scopesNames': | ||||
|                 return $this->translatableStringExportLabelHelper->getLabelMulti($key, $values, ListActivityHelper::MSG_KEY . 'course circles'); | ||||
|                return $this->translatableStringExportLabelHelper->getLabelMulti($key, $values, ListActivityHelper::MSG_KEY . 'course circles'); | ||||
|  | ||||
|             default: | ||||
|                 return $this->helper->getLabels($key, $values, $data); | ||||
|   | ||||
| @@ -50,7 +50,7 @@ class LocationFilter implements FilterInterface | ||||
|     { | ||||
|         $builder->add('accepted_location', PickUserLocationType::class, [ | ||||
|             'multiple' => true, | ||||
|             'label' => 'pick location', | ||||
|             'label' => 'pick location' | ||||
|         ]); | ||||
|     } | ||||
|  | ||||
|   | ||||
							
								
								
									
										107
									
								
								src/Bundle/ChillActivityBundle/Form/ActivityFilterType.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										107
									
								
								src/Bundle/ChillActivityBundle/Form/ActivityFilterType.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,107 @@ | ||||
| <?php | ||||
|  | ||||
| namespace Chill\ActivityBundle\Form; | ||||
|  | ||||
| use Chill\MainBundle\Entity\UserJob; | ||||
| use Chill\MainBundle\Form\Type\ChillDateType; | ||||
| use Chill\MainBundle\Templating\TranslatableStringHelperInterface; | ||||
| use Doctrine\ORM\EntityRepository; | ||||
| use Symfony\Bridge\Doctrine\Form\Type\EntityType; | ||||
| use Symfony\Component\Form\AbstractType; | ||||
| use Symfony\Component\Form\Extension\Core\Type\CheckboxType; | ||||
| use Symfony\Component\Form\FormBuilderInterface; | ||||
| use Symfony\Component\Form\FormError; | ||||
| use Symfony\Component\Form\FormEvent; | ||||
| use Symfony\Component\Form\FormEvents; | ||||
| use Symfony\Component\OptionsResolver\OptionsResolver; | ||||
| use Symfony\Contracts\Translation\TranslatorInterface; | ||||
| use Chill\ActivityBundle\Entity\ActivityType; | ||||
|  | ||||
| class ActivityFilterType extends AbstractType | ||||
| { | ||||
|     private TranslatableStringHelperInterface $translatableString; | ||||
|  | ||||
|     protected TranslatorInterface $translator; | ||||
|  | ||||
|     public function __construct(TranslatableStringHelperInterface $translatableString, TranslatorInterface $translator) | ||||
|     { | ||||
|         $this->translatableString = $translatableString; | ||||
|  | ||||
|         $this->translator = $translator; | ||||
|     } | ||||
|  | ||||
|     public function buildForm(FormBuilderInterface $builder, array $options): void | ||||
|     { | ||||
|  | ||||
|         $builder | ||||
|             ->add('types', EntityType::class, [ | ||||
|                 'class' => ActivityType::class, | ||||
|                 'label' => 'Activity type', | ||||
|                 'multiple' => true, | ||||
|                 'query_builder' => static function (EntityRepository $er) { | ||||
|                     $qb = $er->createQueryBuilder('t'); | ||||
|                     $qb->andWhere($qb->expr()->eq('t.active', "'TRUE'")); | ||||
|  | ||||
|                     return $qb; | ||||
|                 }, | ||||
|                 'choice_label' => function (ActivityType $t) { | ||||
|                     return $this->translatableString->localize($t->getName()); | ||||
|                 }, | ||||
|                 'required' => false, | ||||
|             ]) | ||||
|             ->add('jobs', EntityType::class, [ | ||||
|                 'class' => UserJob::class, | ||||
|                 'label' => 'user job', | ||||
|                 'multiple' => true, | ||||
|                 'query_builder' => static function (EntityRepository $er) { | ||||
|                     $qb = $er->createQueryBuilder('j'); | ||||
|                     $qb->andWhere($qb->expr()->eq('j.active', "'TRUE'")); | ||||
|  | ||||
|                     return $qb; | ||||
|                 }, | ||||
|                 'choice_label' => function (UserJob $j) { | ||||
|                     return $this->translatableString->localize($j->getLabel()); | ||||
|                 }, | ||||
|                 'required' => false, | ||||
|             ]) | ||||
|             ->add('dateFrom', ChillDateType::class, [ | ||||
|                 'label' => 'Activities after this date', | ||||
|                 'required' => false, | ||||
|             ]) | ||||
|             ->add('dateTo', ChillDateType::class, [ | ||||
|                 'label' => 'Activities before this date', | ||||
|                 'required' => false, | ||||
|             ]) | ||||
|             ->add('onlyMe', CheckboxType::class, [ | ||||
|                 'label' => 'My activities only', | ||||
|                 'required' => false, | ||||
|             ]); | ||||
|  | ||||
|         $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { | ||||
|  | ||||
|             $form = $event->getForm(); | ||||
|             $dateFrom = $form->get('dateFrom')->getData(); | ||||
|             $dateTo = $form->get('dateTo')->getData(); | ||||
|  | ||||
|             // check that date_from is before date_to | ||||
|             if ( | ||||
|                 (null !== $dateFrom && null !== $dateTo) | ||||
|                 && $dateFrom >= $dateTo | ||||
|             ) { | ||||
|                 $form->get('dateTo')->addError(new FormError( | ||||
|                     $this->translator->trans('This date should be after ' | ||||
|                         . 'the date given in "Implied in an activity after ' | ||||
|                         . 'this date" field') | ||||
|                 )); | ||||
|             } | ||||
|  | ||||
|         }); | ||||
|     } | ||||
|  | ||||
|     public function configureOptions(OptionsResolver $resolver): void | ||||
|     { | ||||
|         $resolver->setDefaults([ | ||||
|         ]); | ||||
|     } | ||||
|  | ||||
| } | ||||
| @@ -18,9 +18,6 @@ use Knp\Menu\MenuItem; | ||||
| use Symfony\Component\Security\Core\Security; | ||||
| use Symfony\Contracts\Translation\TranslatorInterface; | ||||
|  | ||||
| /** | ||||
|  * @implements LocalMenuBuilderInterface<array{accompanyingCourse: AccompanyingPeriod}> | ||||
|  */ | ||||
| class AccompanyingCourseMenuBuilder implements LocalMenuBuilderInterface | ||||
| { | ||||
|     protected Security $security; | ||||
|   | ||||
| @@ -15,9 +15,6 @@ use Chill\MainBundle\Routing\LocalMenuBuilderInterface; | ||||
| use Knp\Menu\MenuItem; | ||||
| use Symfony\Component\Security\Core\Security; | ||||
|  | ||||
| /** | ||||
|  * @implements LocalMenuBuilderInterface<array> | ||||
|  */ | ||||
| final class AdminMenuBuilder implements LocalMenuBuilderInterface | ||||
| { | ||||
|     private Security $security; | ||||
|   | ||||
| @@ -13,15 +13,11 @@ namespace Chill\ActivityBundle\Menu; | ||||
|  | ||||
| use Chill\ActivityBundle\Security\Authorization\ActivityVoter; | ||||
| use Chill\MainBundle\Routing\LocalMenuBuilderInterface; | ||||
| use Chill\PersonBundle\Entity\Person; | ||||
| use Knp\Menu\MenuItem; | ||||
| use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface; | ||||
| use Symfony\Contracts\Translation\TranslatorInterface; | ||||
|  | ||||
| /** | ||||
|  * @implements LocalMenuBuilderInterface<array{person: Person}> | ||||
|  */ | ||||
| final class PersonMenuBuilder implements LocalMenuBuilderInterface | ||||
| class PersonMenuBuilder implements LocalMenuBuilderInterface | ||||
| { | ||||
|     /** | ||||
|      * @var AuthorizationCheckerInterface | ||||
|   | ||||
| @@ -22,14 +22,15 @@ use Chill\MainBundle\Security\Authorization\AuthorizationHelper; | ||||
| use Chill\MainBundle\Security\Resolver\CenterResolverDispatcherInterface; | ||||
| use Chill\PersonBundle\Entity\AccompanyingPeriod; | ||||
| use Chill\PersonBundle\Entity\Person; | ||||
| use DateTime; | ||||
| use Doctrine\DBAL\Types\Types; | ||||
| use Doctrine\ORM\AbstractQuery; | ||||
| use Doctrine\ORM\EntityManagerInterface; | ||||
| use Doctrine\ORM\Query\ResultSetMappingBuilder; | ||||
| use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; | ||||
|  | ||||
| use Symfony\Component\Security\Core\Role\Role; | ||||
| use Symfony\Component\Security\Core\Security; | ||||
|  | ||||
| use function count; | ||||
| use function in_array; | ||||
|  | ||||
| @@ -63,21 +64,31 @@ final class ActivityACLAwareRepository implements ActivityACLAwareRepositoryInte | ||||
|         $this->security = $security; | ||||
|     } | ||||
|  | ||||
|     public function findByAccompanyingPeriod(AccompanyingPeriod $period, string $role, ?int $start = 0, ?int $limit = 1000, ?array $orderBy = []): array | ||||
|     { | ||||
|         $user = $this->security->getUser(); | ||||
|         $center = $this->centerResolverDispatcher->resolveCenter($period); | ||||
|     /*    public function findByAccompanyingPeriod( | ||||
|             AccompanyingPeriod $period, | ||||
|             string $role, | ||||
|             ?int $start = 0, | ||||
|             ?DateTime $before = null, | ||||
|             ?DateTime $after = null, | ||||
|             ?array $userJob = [], | ||||
|             ?array $activityTypes = [], | ||||
|             bool $onlyMe = false, | ||||
|             ?int $limit = 1000, | ||||
|             ?array $orderBy = [] | ||||
|         ): array { | ||||
|             $user = $this->security->getUser(); | ||||
|             $center = $this->centerResolverDispatcher->resolveCenter($period); | ||||
|  | ||||
|         if (0 === count($orderBy)) { | ||||
|             $orderBy = ['date' => 'DESC']; | ||||
|         } | ||||
|             if (0 === count($orderBy)) { | ||||
|                 $orderBy = ['date' => 'DESC']; | ||||
|             } | ||||
|  | ||||
|         $scopes = $this->authorizationHelper | ||||
|             ->getReachableCircles($user, $role, $center); | ||||
|             $scopes = $this->authorizationHelper | ||||
|                 ->getReachableCircles($user, $role, $center); | ||||
|  | ||||
|         return $this->em->getRepository(Activity::class) | ||||
|             ->findByAccompanyingPeriod($period, $scopes, true, $limit, $start, $orderBy); | ||||
|     } | ||||
|             return $this->em->getRepository(Activity::class) | ||||
|                 ->findByAccompanyingPeriod($period, $scopes, true, $before, $after, $userJob, $activityTypes, $onlyMe, $limit, $start, $orderBy); | ||||
|         }*/ | ||||
|  | ||||
|     public function findByAccompanyingPeriodSimplified(AccompanyingPeriod $period, ?int $limit = 1000): array | ||||
|     { | ||||
| @@ -199,6 +210,62 @@ final class ActivityACLAwareRepository implements ActivityACLAwareRepositoryInte | ||||
|         ]; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @return Activity[] | ||||
|      */ | ||||
|     private function findByAccompanyingPeriod( | ||||
|         AccompanyingPeriod $period, | ||||
|         string $role, | ||||
|         ?int $start = 0, | ||||
|         ?DateTime $before = null, | ||||
|         ?DateTime $after = null, | ||||
|         ?array $userJob = [], | ||||
|         ?array $activityTypes = [], | ||||
|         bool $onlyMe = false, | ||||
|         ?int $limit = 100, | ||||
|         ?int $offset = 0, | ||||
|         ?array $orderBy = ['date' => 'desc'] | ||||
|     ): array { | ||||
|         $qb = $this->createQueryBuilder('a'); | ||||
|         $qb->select('a'); | ||||
|  | ||||
|         $user = $this->security->getUser(); | ||||
|         $center = $this->centerResolverDispatcher->resolveCenter($period); | ||||
|  | ||||
|         if (0 === count($orderBy)) { | ||||
|             $orderBy = ['date' => 'DESC']; | ||||
|         } | ||||
|  | ||||
|         $scopes = $this->authorizationHelper | ||||
|             ->getReachableCircles($user, $role, $center); | ||||
|  | ||||
|         $qb | ||||
|             ->where( | ||||
|                 $qb->expr()->orX( | ||||
|                     $qb->expr()->in('a.scope', ':scopes'), | ||||
|                     $qb->expr()->isNull('a.scope') | ||||
|                 ) | ||||
|             ) | ||||
|             ->setParameter('scopes', $scopes); | ||||
|  | ||||
|         $qb | ||||
|             ->andWhere( | ||||
|                 $qb->expr()->eq('a.accompanyingPeriod', ':period') | ||||
|             ) | ||||
|             ->setParameter('period', $period); | ||||
|  | ||||
|         //Add filter queries | ||||
|         $this->repository->addQueryFilters($qb, $userJob, $activityTypes, $after, $before, $onlyMe); | ||||
|  | ||||
|         foreach ($orderBy as $k => $dir) { | ||||
|             $qb->addOrderBy('a.' . $k, $dir); | ||||
|         } | ||||
|  | ||||
|         $qb->setMaxResults($limit)->setFirstResult($offset); | ||||
|  | ||||
|         return $qb->getQuery()->getResult(); | ||||
|     } | ||||
|  | ||||
|     private function getFromClauseCenter(array $args): string | ||||
|     { | ||||
|         $metadataActivity = $this->em->getClassMetadata(Activity::class); | ||||
| @@ -225,9 +292,10 @@ final class ActivityACLAwareRepository implements ActivityACLAwareRepositoryInte | ||||
|         $personToCenter = $metadataPerson->getAssociationMapping('center')['joinColumns'][0]['name']; | ||||
|  | ||||
|         // acls: | ||||
|         $role = new Role(ActivityVoter::SEE); | ||||
|         $reachableCenters = $this->authorizationHelper->getReachableCenters( | ||||
|             $this->tokenStorage->getToken()->getUser(), | ||||
|             ActivityVoter::SEE | ||||
|             $role | ||||
|         ); | ||||
|  | ||||
|         if (count($reachableCenters) === 0) { | ||||
| @@ -238,7 +306,7 @@ final class ActivityACLAwareRepository implements ActivityACLAwareRepositoryInte | ||||
|         if ('person' === $context) { | ||||
|             // we start with activities having the person_id linked to person | ||||
|             $where .= sprintf('%s = ? AND ', $activityToPerson); | ||||
|             $parameters[] = $args['context']->getId(); | ||||
|             $parameters[] = $person->getId(); | ||||
|         } | ||||
|  | ||||
|         // we add acl (reachable center and scopes) | ||||
| @@ -251,7 +319,7 @@ final class ActivityACLAwareRepository implements ActivityACLAwareRepositoryInte | ||||
|                 continue; | ||||
|             } | ||||
|             // we get all the reachable scopes for this center | ||||
|             $reachableScopes = $this->authorizationHelper->getReachableScopes($this->tokenStorage->getToken()->getUser(), ActivityVoter::SEE, $center); | ||||
|             $reachableScopes = $this->authorizationHelper->getReachableScopes($this->tokenStorage->getToken()->getUser(), $role, $center); | ||||
|             // we get the ids for those scopes | ||||
|             $reachablesScopesId = array_map( | ||||
|                 static function (Scope $scope) { | ||||
|   | ||||
| @@ -11,15 +11,29 @@ declare(strict_types=1); | ||||
|  | ||||
| namespace Chill\ActivityBundle\Repository; | ||||
|  | ||||
| use Chill\ActivityBundle\Entity\Activity; | ||||
| use Chill\PersonBundle\Entity\AccompanyingPeriod; | ||||
| use Chill\PersonBundle\Entity\Person; | ||||
| use DateTime; | ||||
|  | ||||
| interface ActivityACLAwareRepositoryInterface | ||||
| { | ||||
|     /** | ||||
|      * @return Activity[]|array | ||||
|      */ | ||||
|     public function findByAccompanyingPeriod(AccompanyingPeriod $period, string $role, ?int $start = 0, ?int $limit = 1000, ?array $orderBy = []): array; | ||||
|     public function findByAccompanyingPeriod( | ||||
|         AccompanyingPeriod $period, | ||||
|         string $role, | ||||
|         ?int $start = 0, | ||||
|         ?DateTime $before = null, | ||||
|         ?DateTime $after = null, | ||||
|         ?array $userJob = [], | ||||
|         ?array $activityTypes = [], | ||||
|         bool $onlyMe = false, | ||||
|         ?int $limit = 1000, | ||||
|         ?int $offset = 0, | ||||
|         ?array $orderBy = [] | ||||
|     ): array; | ||||
|  | ||||
|     /** | ||||
|      * Return a list of activities, simplified as array (not object). | ||||
|   | ||||
| @@ -12,10 +12,16 @@ declare(strict_types=1); | ||||
| namespace Chill\ActivityBundle\Repository; | ||||
|  | ||||
| use Chill\ActivityBundle\Entity\Activity; | ||||
| use Chill\ActivityBundle\Entity\ActivityType; | ||||
| use Chill\MainBundle\Entity\UserJob; | ||||
| use Chill\PersonBundle\Entity\AccompanyingPeriod; | ||||
| use Chill\PersonBundle\Entity\Person; | ||||
| use DateTime; | ||||
| use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | ||||
| use Doctrine\ORM\QueryBuilder; | ||||
| use Doctrine\Persistence\ManagerRegistry; | ||||
| use Symfony\Component\Security\Core\Security; | ||||
| use function count; | ||||
|  | ||||
| /** | ||||
|  * @method Activity|null find($id, $lockMode = null, $lockVersion = null) | ||||
| @@ -25,9 +31,58 @@ use Doctrine\Persistence\ManagerRegistry; | ||||
|  */ | ||||
| class ActivityRepository extends ServiceEntityRepository | ||||
| { | ||||
|     public function __construct(ManagerRegistry $registry) | ||||
|     private Security $security; | ||||
|  | ||||
|     public function __construct(ManagerRegistry $registry, Security $security) | ||||
|     { | ||||
|         parent::__construct($registry, Activity::class); | ||||
|         $this->security = $security; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @param array|UserJob $jobs | ||||
|      * @param array|ActivityType $types | ||||
|      * @param DateTime $dateFrom | ||||
|      * @param DateTime $dateTo | ||||
|      */ | ||||
|     public function addQueryFilters(QueryBuilder $qb, array $jobs, array $types, ?DateTime $dateFrom, ?DateTime $dateTo, bool $onlyMe): QueryBuilder | ||||
|     { | ||||
|         if (0 < count($jobs)) { | ||||
|             //TODO check for jobs of all users involved | ||||
|             $qb->innerJoin('a.user', 'u'); | ||||
|             $qb->andWhere($qb->expr()->in('u.userJob', ':jobs')) | ||||
|                 ->setParameter('jobs', $jobs); | ||||
|         } | ||||
|  | ||||
|         if (0 < count($types)) { | ||||
|             $qb->andWhere($qb->expr()->in('a.activityType', ':types')) | ||||
|                 ->setParameter('types', $types); | ||||
|         } | ||||
|  | ||||
|         if (null !== $dateFrom && null !== $dateTo) { | ||||
|             $qb->andWhere($qb->expr()->between( | ||||
|                 'a.date', | ||||
|                 ':date_from', | ||||
|                 ':date_to' | ||||
|             )) | ||||
|                 ->setParameter('date_from', $dateFrom) | ||||
|                 ->setParameter('date_to', $dateTo); | ||||
|         } elseif (null !== $dateFrom && null === $dateTo) { | ||||
|             $qb->andWhere($qb->expr()->gt('a.date', ':date_from')) | ||||
|                 ->setParameter('date_from', $dateFrom); | ||||
|         } elseif (null === $dateFrom && null !== $dateTo) { | ||||
|             $qb->andWhere($qb->expr()->lt('a.date', ':date_to')) | ||||
|                 ->setParameter('date_to', $dateTo); | ||||
|         } | ||||
|  | ||||
|         if (true === $onlyMe) { | ||||
|             $currentUser = $this->security->getUser(); | ||||
|  | ||||
|             $qb->andWhere($qb->expr()->eq('a.user', ':currentUser')) | ||||
|                 ->setParameter('currentUser', $currentUser); | ||||
|         } | ||||
|  | ||||
|         return $qb; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
| @@ -35,8 +90,19 @@ class ActivityRepository extends ServiceEntityRepository | ||||
|      * | ||||
|      * @return Activity[] | ||||
|      */ | ||||
|     public function findByAccompanyingPeriod(AccompanyingPeriod $period, array $scopes, ?bool $allowNullScope = false, ?int $limit = 100, ?int $offset = 0, array $orderBy = ['date' => 'desc']): array | ||||
|     { | ||||
|     public function findByAccompanyingPeriod( | ||||
|         AccompanyingPeriod $period, | ||||
|         array $scopes, | ||||
|         ?bool $allowNullScope = false, | ||||
|         ?DateTime $before = null, | ||||
|         ?DateTime $after = null, | ||||
|         ?array $userJob = [], | ||||
|         array $activityTypes = [], | ||||
|         bool $onlyMe = false, | ||||
|         ?int $limit = 100, | ||||
|         ?int $offset = 0, | ||||
|         array $orderBy = ['date' => 'desc'] | ||||
|     ): array { | ||||
|         $qb = $this->createQueryBuilder('a'); | ||||
|         $qb->select('a'); | ||||
|  | ||||
| @@ -61,6 +127,9 @@ class ActivityRepository extends ServiceEntityRepository | ||||
|             ) | ||||
|             ->setParameter('period', $period); | ||||
|  | ||||
|         //Add filter queries | ||||
|         $this->addQueryFilters($qb, $userJob, $activityTypes, $after, $before, $onlyMe); | ||||
|  | ||||
|         foreach ($orderBy as $k => $dir) { | ||||
|             $qb->addOrderBy('a.' . $k, $dir); | ||||
|         } | ||||
|   | ||||
| @@ -88,11 +88,3 @@ div.flex-bloc.concerned-groups { | ||||
|       font-size: 120%; | ||||
|    } | ||||
| } | ||||
|  | ||||
| /// DOCUMENT LIST IN ACTIVITY ITEM | ||||
| li.document-list-item { | ||||
|     display: flex; | ||||
|     width: 100%; | ||||
|     justify-content: space-between; | ||||
|     margin-bottom: 0.3rem; | ||||
| } | ||||
|   | ||||
| @@ -68,7 +68,7 @@ | ||||
|                     <div class="wl-col title"><h3>{{ 'Referrer'|trans }}</h3></div> | ||||
|                     <div class="wl-col list"> | ||||
|                         <p class="wl-item"> | ||||
|                             <span class="badge-user">{{ activity.user|chill_entity_render_box }}</span> | ||||
|                             {{ activity.user|chill_entity_render_box }} | ||||
|                         </p> | ||||
|                     </div> | ||||
|                 </div> | ||||
| @@ -137,42 +137,19 @@ | ||||
|                         {{ activity.comment|chill_entity_render_box({ | ||||
|                             'disable_markdown': false, | ||||
|                             'limit_lines': 3, | ||||
|                             'metadata': false, | ||||
|                             'metadata': false | ||||
|                         }) }} | ||||
|                     </div> | ||||
|                 </div> | ||||
|             {% endif %} | ||||
|  | ||||
|             {% if is_granted('CHILL_ACTIVITY_SEE_DETAILS', activity) and activity.privateComment.hasCommentForUser(app.user) %} | ||||
|                 <div class="wl-row"> | ||||
|                     <div class="wl-col title"> | ||||
|                         <h3>{{ 'Private comment'|trans }}</h3> | ||||
|                     </div> | ||||
|                     <div class="wl-col list"> | ||||
|                         <section class="chill-entity entity-comment-embeddable"> | ||||
|                             <blockquote class="chill-user-quote private-quote"> | ||||
|                                 {{ activity.privateComment.comments[app.user.id]|chill_markdown_to_html }} | ||||
|                             </blockquote> | ||||
|                         </section> | ||||
|                     </div> | ||||
|                 </div> | ||||
|             {% endif %} | ||||
|  | ||||
|             {% if is_granted('CHILL_ACTIVITY_SEE_DETAILS', activity) and activity.documents|length > 0 %} | ||||
|                 <div class="wl-row"> | ||||
|                     <div class="wl-col title"> | ||||
|                         <h3>{{ 'Documents'|trans }}</h3> | ||||
|                     </div> | ||||
|                     <div class="wl-col list"> | ||||
|                         <ul> | ||||
|                             {% for d in activity.documents %} | ||||
|                                 <li class="document-list-item">{{ d.title|chill_print_or_message('document.Any title') }} {{ d|chill_document_button_group(d.title, is_granted('CHILL_ACTIVITY_UPDATE', activity), {small: true}) }}</li> | ||||
|                             {% endfor %} | ||||
|                         </ul> | ||||
|                     </div> | ||||
|                 </div> | ||||
|             {% endif %} | ||||
|  | ||||
|             {#  Only if ACL SEE_DETAILS AND/OR only on template SHOW ?? | ||||
|                 durationTime | ||||
|                 travelTime | ||||
|                 comment | ||||
|                 documents | ||||
|                 attendee | ||||
|             #} | ||||
|         </div> | ||||
|     </div> | ||||
|  | ||||
|   | ||||
| @@ -8,13 +8,11 @@ | ||||
| {% block js %} | ||||
|     {{ parent() }} | ||||
|     {{ encore_entry_script_tags('mod_notification_toggle_read_status') }} | ||||
|     {{ encore_entry_script_tags('mod_document_action_buttons_group') }} | ||||
| {% endblock %} | ||||
|  | ||||
| {% block css %} | ||||
|     {{ parent() }} | ||||
|     {{ encore_entry_link_tags('mod_notification_toggle_read_status') }} | ||||
|     {{ encore_entry_link_tags('mod_document_action_buttons_group') }} | ||||
| {% endblock %} | ||||
|  | ||||
| {% block content %} | ||||
| @@ -29,7 +27,49 @@ | ||||
|         {% set accompanying_course_id = accompanyingCourse.id %} | ||||
|     {% endif %} | ||||
|  | ||||
|     <h1>{{ 'Activity list' |trans }}</h1> | ||||
|     <h1>{{ 'Activity list'|trans }}</h1> | ||||
|  | ||||
| {# TODO: form error messages not displaying #} | ||||
|     <p>{{ form_errors(form) }}</p> | ||||
|  | ||||
|         {{ form_start(form) }} | ||||
|         <div class="row"> | ||||
|             <div class="col-md-4"> | ||||
|                 {{ form_label(form.types ) }} | ||||
|                 {{ form_widget(form.types, {'attr': {'class': 'select2'}}) }} | ||||
|             </div> | ||||
|             <div class="col-md-4"> | ||||
|                 {{ form_label(form.jobs) }} | ||||
|                 {{ form_widget(form.jobs, {'attr': {'class': 'select2'}}) }} | ||||
|             </div> | ||||
|             <div class="row"> | ||||
|                 <div class="col-md-4"> | ||||
|                     {{ form_label(form.dateFrom) }} | ||||
|                     {{ form_widget(form.dateFrom) }} | ||||
|                 </div> | ||||
|                 <div class="col-md-4"> | ||||
|                     {{ form_label(form.dateTo) }} | ||||
|                     {{ form_widget(form.dateTo) }} | ||||
|                 </div> | ||||
|             </div> | ||||
|             <div class="row"> | ||||
|                 <div class="col-md-4"> | ||||
|                     {{ form_label(form.onlyMe) }} | ||||
|                     {{ form_widget(form.onlyMe) }} | ||||
|                 </div> | ||||
|             </div> | ||||
|         </div> | ||||
|  | ||||
|         <ul class="record_actions"> | ||||
|             <li> | ||||
|                 <button type="submit" class="btn btn-save change-icon"> | ||||
|                     <i class="fa fa-filter"></i> Filtrer | ||||
|                 </button> | ||||
|             </li> | ||||
|         </ul> | ||||
|  | ||||
|         {{ form_end(form) }} | ||||
| {#    </div>#} | ||||
|  | ||||
|     {% include 'ChillActivityBundle:Activity:list.html.twig' with {'context': 'accompanyingCourse'} %} | ||||
|  | ||||
|   | ||||
| @@ -23,13 +23,11 @@ | ||||
| {% block js %} | ||||
|     {{ parent() }} | ||||
|     {{ encore_entry_script_tags('mod_notification_toggle_read_status') }} | ||||
|     {{ encore_entry_script_tags('mod_document_action_buttons_group') }} | ||||
| {% endblock %} | ||||
|  | ||||
| {% block css %} | ||||
|     {{ parent() }} | ||||
|     {{ encore_entry_link_tags('mod_notification_toggle_read_status') }} | ||||
|     {{ encore_entry_link_tags('mod_document_action_buttons_group') }} | ||||
| {% endblock %} | ||||
|  | ||||
| {% block content %} | ||||
|   | ||||
| @@ -41,7 +41,7 @@ | ||||
|                         {% if activity.user and t.userVisible %} | ||||
|                             <li> | ||||
|                                 <span class="item-key">{{ 'Referrer'|trans ~ ': ' }}</span> | ||||
|                                 <span class="badge-user">{{ activity.user|chill_entity_render_box }}</span> | ||||
|                                 <b>{{ activity.user|chill_entity_render_box}}</b> | ||||
|                             </li> | ||||
|                         {% endif %} | ||||
|  | ||||
|   | ||||
| @@ -35,9 +35,7 @@ | ||||
|         <div class="item-row separator"> | ||||
|             <dl class="chill_view_data"> | ||||
|                 <dt class="inline">{{ 'Referrer'|trans|capitalize }}</dt> | ||||
|                 <dd> | ||||
|                     <span class="badge-user">{{ entity.user|chill_entity_render_box }}</span> | ||||
|                 </dd> | ||||
|                 <dd>{{ entity.user|chill_entity_render_box }}</dd> | ||||
|  | ||||
|                 {%- if entity.scope -%} | ||||
|                     <dt class="inline">{{ 'Scope'|trans }}</dt> | ||||
| @@ -170,7 +168,7 @@ | ||||
|                     {% if entity.documents|length > 0 %} | ||||
|                         <ul> | ||||
|                             {% for d in entity.documents %} | ||||
|                                 <li class="document-list-item">{{ d.title|chill_print_or_message('document.Any title') }} {{ d|chill_document_button_group(d.title, is_granted('CHILL_ACTIVITY_UPDATE', entity), {small: true}) }}</li> | ||||
|                                 <li>{{ d.title }} {{ d|chill_document_button_group() }}</li> | ||||
|                             {% endfor %} | ||||
|                         </ul> | ||||
|                     {% else %} | ||||
|   | ||||
| @@ -32,9 +32,6 @@ use Symfony\Component\Form\FormBuilderInterface; | ||||
| use Symfony\Component\Serializer\Normalizer\NormalizerInterface; | ||||
| use Symfony\Contracts\Translation\TranslatorInterface; | ||||
|  | ||||
| /** | ||||
|  * @implements DocGeneratorContextWithPublicFormInterface<Activity> | ||||
|  */ | ||||
| class ActivityContext implements | ||||
|     DocGeneratorContextWithAdminFormInterface, | ||||
|     DocGeneratorContextWithPublicFormInterface | ||||
| @@ -155,7 +152,7 @@ class ActivityContext implements | ||||
|         $options = $template->getOptions(); | ||||
|  | ||||
|         $data = []; | ||||
|         $data = array_merge($data, $this->baseContextData->getData($contextGenerationData['creator'] ?? null)); | ||||
|         $data = array_merge($data, $this->baseContextData->getData()); | ||||
|         $data['activity'] = $this->normalizer->normalize($entity, 'docgen', ['docgen:expects' => Activity::class, 'groups' => 'docgen:read']); | ||||
|  | ||||
|         $data['course'] = $this->normalizer->normalize($entity->getAccompanyingPeriod(), 'docgen', ['docgen:expects' => AccompanyingPeriod::class, 'groups' => 'docgen:read']); | ||||
| @@ -240,6 +237,9 @@ class ActivityContext implements | ||||
|         return $denormalized; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @param Activity $entity | ||||
|      */ | ||||
|     public function storeGenerated(DocGeneratorTemplate $template, StoredObject $storedObject, object $entity, array $contextGenerationData): void | ||||
|     { | ||||
|         $storedObject->setTitle($this->translatableStringHelper->localize($template->getName())); | ||||
|   | ||||
| @@ -13,18 +13,13 @@ namespace Chill\ActivityBundle\Templating\Entity; | ||||
|  | ||||
| use Chill\ActivityBundle\Entity\ActivityReason; | ||||
| use Chill\MainBundle\Templating\Entity\AbstractChillEntityRender; | ||||
| use Chill\MainBundle\Templating\Entity\BoxUtilsChillEntityRenderTrait; | ||||
| use Chill\MainBundle\Templating\Entity\ChillEntityRenderInterface; | ||||
| use Chill\MainBundle\Templating\TranslatableStringHelper; | ||||
|  | ||||
| /** | ||||
|  * Render activity reason. | ||||
|  * | ||||
|  * @implements ChillEntityRenderInterface<ActivityReason> | ||||
|  */ | ||||
| class ActivityReasonRender implements ChillEntityRenderInterface | ||||
| class ActivityReasonRender extends AbstractChillEntityRender | ||||
| { | ||||
|     use BoxUtilsChillEntityRenderTrait; | ||||
|     /** | ||||
|      * @var TranslatableStringHelper | ||||
|      */ | ||||
| @@ -56,6 +51,9 @@ class ActivityReasonRender implements ChillEntityRenderInterface | ||||
|             $this->getDefaultClosingBox(); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @param ActivityReason $entity | ||||
|      */ | ||||
|     public function renderString($entity, array $options): string | ||||
|     { | ||||
|         $category = ''; | ||||
|   | ||||
| @@ -234,7 +234,7 @@ final class ActivityControllerTest extends WebTestCase | ||||
|         $user = new \Chill\MainBundle\Entity\User(); | ||||
|         $user | ||||
|             ->setPassword($container->get('security.password_encoder') | ||||
|                 ->encodePassword($user, 'password')) | ||||
|             ->encodePassword($user, 'password')) | ||||
|             ->setUsername($username) | ||||
|             ->addGroupCenter($groupCenter); | ||||
|  | ||||
|   | ||||
| @@ -1,5 +1,8 @@ | ||||
| --- | ||||
| services: | ||||
|     Chill\ActivityBundle\Form\ActivityFilterType: | ||||
|         autowire: true | ||||
|         autoconfigure: true | ||||
|     Chill\ActivityBundle\Form\Type\TranslatableActivityReasonCategoryType: | ||||
|         autowire: true | ||||
|         autoconfigure: true | ||||
|   | ||||
| @@ -284,6 +284,8 @@ Filter acp which has no activity: Filtrer les parcours qui n’ont pas d’activ | ||||
| Filtered acp which has no activities: Filtrer les parcours sans activité associée | ||||
| Group acp by activity number: Grouper les parcours par nombre d’activité | ||||
|  | ||||
| My activities only: Mes échanges uniquement | ||||
|  | ||||
| #aggregators | ||||
| Activity type: Type d'activité | ||||
| Activity user: Utilisateur lié à l'activité | ||||
|   | ||||
| @@ -55,7 +55,7 @@ class LoadAsideActivity extends Fixture implements DependentFixtureInterface | ||||
|                     $this->getReference('aside_activity_category_0') | ||||
|                 ) | ||||
|                 ->setDate((new DateTimeImmutable('today')) | ||||
|                     ->sub(new DateInterval('P' . random_int(1, 100) . 'D'))); | ||||
|                 ->sub(new DateInterval('P' . random_int(1, 100) . 'D'))); | ||||
|  | ||||
|             $manager->persist($activity); | ||||
|         } | ||||
|   | ||||
| @@ -1,18 +1,10 @@ | ||||
| <?php | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| /* | ||||
|  * Chill is a software for social workers | ||||
|  * | ||||
|  * For the full copyright and license information, please view | ||||
|  * the LICENSE file that was distributed with this source code. | ||||
|  */ | ||||
|  | ||||
| namespace Chill\AsideActivityBundle\Export\Export; | ||||
|  | ||||
| use Chill\AsideActivityBundle\Entity\AsideActivity; | ||||
| use Chill\AsideActivityBundle\Export\Declarations; | ||||
| use Chill\AsideActivityBundle\Form\AsideActivityCategoryType; | ||||
| use Chill\AsideActivityBundle\Repository\AsideActivityCategoryRepository; | ||||
| use Chill\AsideActivityBundle\Security\AsideActivityVoter; | ||||
| use Chill\AsideActivityBundle\Templating\Entity\CategoryRender; | ||||
| @@ -24,32 +16,32 @@ use Chill\MainBundle\Export\Helper\UserHelper; | ||||
| use Chill\MainBundle\Export\ListInterface; | ||||
| use Chill\MainBundle\Repository\CenterRepositoryInterface; | ||||
| use Chill\MainBundle\Repository\ScopeRepositoryInterface; | ||||
| use Chill\MainBundle\Templating\TranslatableStringHelper; | ||||
| use Chill\MainBundle\Templating\TranslatableStringHelperInterface; | ||||
| use DateTimeInterface; | ||||
| use Closure; | ||||
| use Doctrine\ORM\AbstractQuery; | ||||
| use Doctrine\ORM\EntityManagerInterface; | ||||
| use Doctrine\ORM\QueryBuilder; | ||||
| use LogicException; | ||||
| use Symfony\Component\Form\FormBuilderInterface; | ||||
|  | ||||
| final class ListAsideActivity implements ListInterface, GroupedExportInterface | ||||
| { | ||||
|     private EntityManagerInterface $em; | ||||
|  | ||||
|     private UserHelper $userHelper; | ||||
|  | ||||
|     private DateTimeHelper $dateTimeHelper; | ||||
|  | ||||
|     private ScopeRepositoryInterface $scopeRepository; | ||||
|  | ||||
|     private CenterRepositoryInterface $centerRepository; | ||||
|  | ||||
|     private AsideActivityCategoryRepository $asideActivityCategoryRepository; | ||||
|  | ||||
|     private CategoryRender $categoryRender; | ||||
|  | ||||
|     private CenterRepositoryInterface $centerRepository; | ||||
|  | ||||
|     private DateTimeHelper $dateTimeHelper; | ||||
|  | ||||
|     private EntityManagerInterface $em; | ||||
|  | ||||
|     private ScopeRepositoryInterface $scopeRepository; | ||||
|  | ||||
|     private TranslatableStringHelperInterface $translatableStringHelper; | ||||
|  | ||||
|     private UserHelper $userHelper; | ||||
|  | ||||
|     public function __construct( | ||||
|         EntityManagerInterface $em, | ||||
|         DateTimeHelper $dateTimeHelper, | ||||
| @@ -84,6 +76,11 @@ final class ListAsideActivity implements ListInterface, GroupedExportInterface | ||||
|         return 'export.aside_activity.List of aside activities'; | ||||
|     } | ||||
|  | ||||
|     public function getTitle() | ||||
|     { | ||||
|         return 'export.aside_activity.List of aside activities'; | ||||
|     } | ||||
|  | ||||
|     public function getGroup(): string | ||||
|     { | ||||
|         return 'export.Exports of aside activities'; | ||||
| @@ -94,16 +91,15 @@ final class ListAsideActivity implements ListInterface, GroupedExportInterface | ||||
|         switch ($key) { | ||||
|             case 'id': | ||||
|             case 'note': | ||||
|                 return static function ($value) use ($key) { | ||||
|                 return function ($value) use ($key) { | ||||
|                     if ('_header' === $value) { | ||||
|                         return 'export.aside_activity.' . $key; | ||||
|                     } | ||||
|  | ||||
|                     return $value ?? ''; | ||||
|                 }; | ||||
|  | ||||
|             case 'duration': | ||||
|                 return static function ($value) use ($key) { | ||||
|                 return function ($value) use ($key) { | ||||
|                     if ('_header' === $value) { | ||||
|                         return 'export.aside_activity.' . $key; | ||||
|                     } | ||||
| @@ -112,7 +108,7 @@ final class ListAsideActivity implements ListInterface, GroupedExportInterface | ||||
|                         return ''; | ||||
|                     } | ||||
|  | ||||
|                     if ($value instanceof DateTimeInterface) { | ||||
|                     if ($value instanceof \DateTimeInterface) { | ||||
|                         return $value->format('H:i:s'); | ||||
|                     } | ||||
|  | ||||
| @@ -122,7 +118,7 @@ final class ListAsideActivity implements ListInterface, GroupedExportInterface | ||||
|             case 'createdAt': | ||||
|             case 'updatedAt': | ||||
|             case 'date': | ||||
|                 return $this->dateTimeHelper->getLabel('export.aside_activity.' . $key); | ||||
|                 return $this->dateTimeHelper->getLabel('export.aside_activity.'.$key); | ||||
|  | ||||
|             case 'agent_id': | ||||
|             case 'creator_id': | ||||
| @@ -169,7 +165,7 @@ final class ListAsideActivity implements ListInterface, GroupedExportInterface | ||||
|                 }; | ||||
|  | ||||
|             default: | ||||
|                 throw new LogicException('this key is not supported : ' . $key); | ||||
|                 throw new \LogicException('this key is not supported : ' . $key); | ||||
|         } | ||||
|     } | ||||
|  | ||||
| @@ -186,7 +182,7 @@ final class ListAsideActivity implements ListInterface, GroupedExportInterface | ||||
|             'aside_activity_type', | ||||
|             'date', | ||||
|             'duration', | ||||
|             'note', | ||||
|             'note' | ||||
|         ]; | ||||
|     } | ||||
|  | ||||
| @@ -199,11 +195,6 @@ final class ListAsideActivity implements ListInterface, GroupedExportInterface | ||||
|         return $query->getQuery()->getResult(AbstractQuery::HYDRATE_ARRAY); | ||||
|     } | ||||
|  | ||||
|     public function getTitle() | ||||
|     { | ||||
|         return 'export.aside_activity.List of aside activities'; | ||||
|     } | ||||
|  | ||||
|     public function getType(): string | ||||
|     { | ||||
|         return Declarations::ASIDE_ACTIVITY_TYPE; | ||||
| @@ -213,7 +204,8 @@ final class ListAsideActivity implements ListInterface, GroupedExportInterface | ||||
|     { | ||||
|         $qb = $this->em->createQueryBuilder() | ||||
|             ->from(AsideActivity::class, 'aside') | ||||
|             ->leftJoin('aside.agent', 'agent'); | ||||
|             ->leftJoin('aside.agent', 'agent') | ||||
|         ; | ||||
|  | ||||
|         $qb | ||||
|             ->addSelect('aside.id AS id') | ||||
| @@ -226,7 +218,8 @@ final class ListAsideActivity implements ListInterface, GroupedExportInterface | ||||
|             ->addSelect('IDENTITY(aside.type) AS aside_activity_type') | ||||
|             ->addSelect('aside.date') | ||||
|             ->addSelect('aside.duration') | ||||
|             ->addSelect('aside.note'); | ||||
|             ->addSelect('aside.note') | ||||
|         ; | ||||
|  | ||||
|         return $qb; | ||||
|     } | ||||
|   | ||||
| @@ -17,6 +17,7 @@ use Chill\MainBundle\Form\Type\Export\FilterType; | ||||
| use Chill\MainBundle\Form\Type\PickRollingDateType; | ||||
| use Chill\MainBundle\Service\RollingDate\RollingDate; | ||||
| use Chill\MainBundle\Service\RollingDate\RollingDateConverterInterface; | ||||
| use Doctrine\ORM\Query\Expr\Andx; | ||||
| use Doctrine\ORM\QueryBuilder; | ||||
| use Symfony\Component\Form\FormBuilderInterface; | ||||
| use Symfony\Component\Form\FormError; | ||||
|   | ||||
| @@ -15,6 +15,7 @@ use Chill\AsideActivityBundle\Export\Declarations; | ||||
| use Chill\MainBundle\Export\FilterInterface; | ||||
| use Chill\MainBundle\Form\Type\PickUserDynamicType; | ||||
| use Chill\MainBundle\Templating\Entity\UserRender; | ||||
| use Doctrine\ORM\Query\Expr\Andx; | ||||
| use Doctrine\ORM\QueryBuilder; | ||||
| use Symfony\Component\Form\FormBuilderInterface; | ||||
|  | ||||
|   | ||||
| @@ -16,9 +16,6 @@ use Chill\MainBundle\Templating\Entity\ChillEntityRenderInterface; | ||||
| use Chill\MainBundle\Templating\TranslatableStringHelper; | ||||
| use Symfony\Component\Templating\EngineInterface; | ||||
|  | ||||
| /** | ||||
|  * @implements ChillEntityRenderInterface<AsideActivityCategory> | ||||
|  */ | ||||
| final class CategoryRender implements ChillEntityRenderInterface | ||||
| { | ||||
|     public const DEFAULT_ARGS = [ | ||||
| @@ -48,6 +45,9 @@ final class CategoryRender implements ChillEntityRenderInterface | ||||
|         return $parents; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @param AsideActivityCategory $asideActivityCategory | ||||
|      */ | ||||
|     public function renderBox($asideActivityCategory, array $options): string | ||||
|     { | ||||
|         $options = array_merge(self::DEFAULT_ARGS, $options); | ||||
| @@ -63,6 +63,9 @@ final class CategoryRender implements ChillEntityRenderInterface | ||||
|         ); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @param AsideActivityCategory $asideActivityCategory | ||||
|      */ | ||||
|     public function renderString($asideActivityCategory, array $options): string | ||||
|     { | ||||
|         $options = array_merge(self::DEFAULT_ARGS, $options); | ||||
| @@ -81,6 +84,9 @@ final class CategoryRender implements ChillEntityRenderInterface | ||||
|         return implode($options[self::SEPERATOR_KEY], $titles); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @param AsideActivityCategory $asideActivityCategory | ||||
|      */ | ||||
|     public function supports($asideActivityCategory, array $options): bool | ||||
|     { | ||||
|         return $asideActivityCategory instanceof AsideActivityCategory; | ||||
|   | ||||
| @@ -30,7 +30,7 @@ class ChargeKindType extends AbstractType | ||||
|             ]) | ||||
|             ->add('kind', TextType::class, [ | ||||
|                 'label' => 'budget.admin.form.Charge_kind_key', | ||||
|                 'help' => 'budget.admin.form.This kind must contains only alphabeticals characters, and dashes. This string is in use during document generation. Changes may have side effect on document', | ||||
|                 'help' => 'budget.admin.form.This kind must contains only alphabeticals characters, and dashes. This string is in use during document generation. Changes may have side effect on document' | ||||
|             ]) | ||||
|             ->add('ordering', NumberType::class) | ||||
|             ->add('isActive', CheckboxType::class, [ | ||||
|   | ||||
| @@ -30,7 +30,7 @@ class ResourceKindType extends AbstractType | ||||
|             ]) | ||||
|             ->add('kind', TextType::class, [ | ||||
|                 'label' => 'budget.admin.form.Resource_kind_key', | ||||
|                 'help' => 'budget.admin.form.This kind must contains only alphabeticals characters, and dashes. This string is in use during document generation. Changes may have side effect on document', | ||||
|                 'help' => 'budget.admin.form.This kind must contains only alphabeticals characters, and dashes. This string is in use during document generation. Changes may have side effect on document' | ||||
|             ]) | ||||
|             ->add('ordering', NumberType::class) | ||||
|             ->add('isActive', CheckboxType::class, [ | ||||
|   | ||||
| @@ -49,7 +49,8 @@ final class ChargeKindRepository implements ChargeKindRepositoryInterface | ||||
|             ->where($qb->expr()->eq('c.isActive', 'true')) | ||||
|             ->orderBy('c.ordering', 'ASC') | ||||
|             ->getQuery() | ||||
|             ->getResult(); | ||||
|             ->getResult() | ||||
|         ; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|   | ||||
| @@ -28,6 +28,8 @@ interface ChargeKindRepositoryInterface extends ObjectRepository | ||||
|      */ | ||||
|     public function findAllActive(): array; | ||||
|  | ||||
|     public function findOneByKind(string $kind): ?ChargeKind; | ||||
|  | ||||
|     /** | ||||
|      * @return ChargeType[] | ||||
|      */ | ||||
| @@ -43,7 +45,5 @@ interface ChargeKindRepositoryInterface extends ObjectRepository | ||||
|  | ||||
|     public function findOneBy(array $criteria): ?ChargeKind; | ||||
|  | ||||
|     public function findOneByKind(string $kind): ?ChargeKind; | ||||
|  | ||||
|     public function getClassName(): string; | ||||
| } | ||||
|   | ||||
| @@ -49,12 +49,8 @@ final class ResourceKindRepository implements ResourceKindRepositoryInterface | ||||
|             ->where($qb->expr()->eq('r.isActive', 'true')) | ||||
|             ->orderBy('r.ordering', 'ASC') | ||||
|             ->getQuery() | ||||
|             ->getResult(); | ||||
|     } | ||||
|  | ||||
|     public function findOneByKind(string $kind): ?ResourceKind | ||||
|     { | ||||
|         return $this->repository->findOneBy(['kind' => $kind]) ; | ||||
|             ->getResult() | ||||
|         ; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
| @@ -81,6 +77,11 @@ final class ResourceKindRepository implements ResourceKindRepositoryInterface | ||||
|         return $this->repository->findOneBy($criteria); | ||||
|     } | ||||
|  | ||||
|     public function findOneByKind(string $kind): ?ResourceKind | ||||
|     { | ||||
|         return $this->repository->findOneBy(['kind' => $kind]); | ||||
|     } | ||||
|  | ||||
|     public function getClassName(): string | ||||
|     { | ||||
|         return ResourceKind::class; | ||||
|   | ||||
| @@ -34,7 +34,7 @@ class ResourceRepository extends EntityRepository | ||||
|             //->andWhere('c.startDate < :date') | ||||
|             // TODO: there is a misconception here, the end date must be lower or null. startDate are never null | ||||
|             //->andWhere('c.startDate < :date OR c.startDate IS NULL'); | ||||
| ; | ||||
|         ; | ||||
|  | ||||
|         if (null !== $sort) { | ||||
|             $qb->orderBy($sort); | ||||
|   | ||||
| @@ -13,7 +13,9 @@ namespace Chill\BudgetBundle\Service\Summary; | ||||
|  | ||||
| use Chill\BudgetBundle\Entity\ChargeKind; | ||||
| use Chill\BudgetBundle\Entity\ResourceKind; | ||||
| use Chill\BudgetBundle\Repository\ChargeKindRepository; | ||||
| use Chill\BudgetBundle\Repository\ChargeKindRepositoryInterface; | ||||
| use Chill\BudgetBundle\Repository\ResourceKindRepository; | ||||
| use Chill\BudgetBundle\Repository\ResourceKindRepositoryInterface; | ||||
| use Chill\MainBundle\Templating\TranslatableStringHelperInterface; | ||||
| use Chill\PersonBundle\Entity\Household\Household; | ||||
|   | ||||
| @@ -17,9 +17,6 @@ use Chill\MainBundle\Templating\Entity\ChillEntityRenderInterface; | ||||
| use Chill\MainBundle\Templating\TranslatableStringHelperInterface; | ||||
| use Symfony\Component\Templating\EngineInterface; | ||||
|  | ||||
| /** | ||||
|  * @implements ChillEntityRenderInterface<ResourceKind|ChargeKind> | ||||
|  */ | ||||
| final class BudgetElementTypeRender implements ChillEntityRenderInterface | ||||
| { | ||||
|     private EngineInterface $engine; | ||||
|   | ||||
| @@ -20,15 +20,12 @@ use Chill\MainBundle\Templating\TranslatableStringHelperInterface; | ||||
| use Chill\PersonBundle\Entity\Household\Household; | ||||
| use Chill\PersonBundle\Entity\Household\HouseholdMember; | ||||
| use Chill\PersonBundle\Entity\Person; | ||||
| use DateTimeImmutable; | ||||
| use Doctrine\ORM\AbstractQuery; | ||||
| use Doctrine\ORM\EntityManagerInterface; | ||||
| use Doctrine\ORM\Query; | ||||
| use PHPUnit\Framework\TestCase; | ||||
| use Prophecy\Argument; | ||||
| use Prophecy\PhpUnit\ProphecyTrait; | ||||
| use ReflectionClass; | ||||
| use RuntimeException; | ||||
|  | ||||
| /** | ||||
|  * @internal | ||||
| @@ -50,9 +47,10 @@ final class SummaryBudgetTest extends TestCase | ||||
|             ], | ||||
|         ]); | ||||
|         $queryCharges->setParameters(Argument::type('array')) | ||||
|             ->will(static function ($args, $query) { | ||||
|             ->will(function ($args, $query) { | ||||
|                 return $query; | ||||
|             }); | ||||
|             }) | ||||
|         ; | ||||
|  | ||||
|         $queryResources = $this->prophesize(AbstractQuery::class); | ||||
|         $queryResources->getResult()->willReturn([ | ||||
| @@ -63,23 +61,23 @@ final class SummaryBudgetTest extends TestCase | ||||
|             ], | ||||
|         ]); | ||||
|         $queryResources->setParameters(Argument::type('array')) | ||||
|             ->will(static function ($args, $query) { | ||||
|             ->will(function ($args, $query) { | ||||
|                 return $query; | ||||
|             }); | ||||
|             }) | ||||
|         ; | ||||
|  | ||||
|         $em = $this->prophesize(EntityManagerInterface::class); | ||||
|         $em->createNativeQuery(Argument::type('string'), Argument::type(Query\ResultSetMapping::class)) | ||||
|             ->will(static function ($args) use ($queryResources, $queryCharges) { | ||||
|             ->will(function ($args) use ($queryResources, $queryCharges) { | ||||
|                 if (false !== strpos($args[0], 'chill_budget.resource')) { | ||||
|                     return $queryResources->reveal(); | ||||
|                 } | ||||
|  | ||||
|                 if (false !== strpos($args[0], 'chill_budget.charge')) { | ||||
|                     return $queryCharges->reveal(); | ||||
|                 } | ||||
|  | ||||
|                 throw new RuntimeException('this query does not have a stub counterpart: ' . $args[0]); | ||||
|             }); | ||||
|                 throw new \RuntimeException('this query does not have a stub counterpart: '.$args[0]); | ||||
|             }) | ||||
|         ; | ||||
|  | ||||
|         $chargeRepository = $this->prophesize(ChargeKindRepositoryInterface::class); | ||||
|         $chargeRepository->findAll()->willReturn([ | ||||
| @@ -100,23 +98,24 @@ final class SummaryBudgetTest extends TestCase | ||||
|         $resourceRepository->findOneByKind('misc')->willReturn($misc); | ||||
|  | ||||
|         $translatableStringHelper = $this->prophesize(TranslatableStringHelperInterface::class); | ||||
|         $translatableStringHelper->localize(Argument::type('array'))->will(static function ($arg) { | ||||
|         $translatableStringHelper->localize(Argument::type('array'))->will(function ($arg) { | ||||
|             return $arg[0]['fr']; | ||||
|         }); | ||||
|  | ||||
|         $person = new Person(); | ||||
|         $personReflection = new ReflectionClass($person); | ||||
|         $personReflection = new \ReflectionClass($person); | ||||
|         $personIdReflection = $personReflection->getProperty('id'); | ||||
|         $personIdReflection->setAccessible(true); | ||||
|         $personIdReflection->setValue($person, 1); | ||||
|  | ||||
|         $household = new Household(); | ||||
|         $householdReflection = new ReflectionClass($household); | ||||
|         $householdReflection = new \ReflectionClass($household); | ||||
|         $householdId = $householdReflection->getProperty('id'); | ||||
|         $householdId->setAccessible(true); | ||||
|         $householdId->setValue($household, 1); | ||||
|         $householdMember = (new HouseholdMember())->setPerson($person) | ||||
|             ->setStartDate(new DateTimeImmutable('1 month ago')); | ||||
|             ->setStartDate(new \DateTimeImmutable('1 month ago')) | ||||
|         ; | ||||
|         $household->addMember($householdMember); | ||||
|  | ||||
|         $summaryBudget = new SummaryBudget( | ||||
|   | ||||
| @@ -2,13 +2,6 @@ | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| /* | ||||
|  * Chill is a software for social workers | ||||
|  * | ||||
|  * For the full copyright and license information, please view | ||||
|  * the LICENSE file that was distributed with this source code. | ||||
|  */ | ||||
|  | ||||
| namespace Chill\Migrations\Budget; | ||||
|  | ||||
| use Doctrine\DBAL\Schema\Schema; | ||||
| @@ -16,12 +9,6 @@ use Doctrine\Migrations\AbstractMigration; | ||||
|  | ||||
| final class Version20230209161546 extends AbstractMigration | ||||
| { | ||||
|     public function down(Schema $schema): void | ||||
|     { | ||||
|         $this->addSql('DROP INDEX resource_kind_unique_type_idx'); | ||||
|         $this->addSql('DROP INDEX charge_kind_unique_type_idx'); | ||||
|     } | ||||
|  | ||||
|     public function getDescription(): string | ||||
|     { | ||||
|         return 'Budget: add unique constraint on kind for charge_kind and resource_kind'; | ||||
| @@ -34,4 +21,10 @@ final class Version20230209161546 extends AbstractMigration | ||||
|         $this->addSql('CREATE UNIQUE INDEX resource_kind_unique_type_idx ON chill_budget.resource_type (kind);'); | ||||
|         $this->addSql('CREATE UNIQUE INDEX charge_kind_unique_type_idx ON chill_budget.charge_type (kind);'); | ||||
|     } | ||||
|  | ||||
|     public function down(Schema $schema): void | ||||
|     { | ||||
|         $this->addSql('DROP INDEX resource_kind_unique_type_idx'); | ||||
|         $this->addSql('DROP INDEX charge_kind_unique_type_idx'); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -2,8 +2,8 @@ Budget: Budget | ||||
| Resource: Inkomsten | ||||
| Charge: Onkosten | ||||
| Budget for %name%: Budget van %name% | ||||
| Budget for household %household%: Budget van huishouden | ||||
| Current budget household members: Actuele budget van leden huishouden | ||||
| Budget for household %household%: Budget van gezin | ||||
| Current budget household members: Actuele budget van gezinsleden | ||||
| Show budget of %name%: Toon budget van %name% | ||||
| See complete budget: Toon volledige budget | ||||
| Hide budget: Verbergen | ||||
|   | ||||
| @@ -145,9 +145,6 @@ class CalendarDocController | ||||
|                 $returnParams = ['id' => $calendarDoc->getCalendar()->getPerson()->getId()]; | ||||
|  | ||||
|                 break; | ||||
|  | ||||
|             default: | ||||
|                 throw new \LogicException(sprintf("This context '%s' is not supported", $calendarDoc->getCalendar()->getContext())); | ||||
|         } | ||||
|  | ||||
|         $form = $this->formFactory->createBuilder() | ||||
|   | ||||
| @@ -512,9 +512,7 @@ class Calendar implements TrackCreationInterface, TrackUpdateInterface, HasCente | ||||
|      */ | ||||
|     public function getUsers(): Collection | ||||
|     { | ||||
|         return $this->getInvites()->map(static function (Invite $i) { | ||||
|             return $i->getUser(); | ||||
|         }); | ||||
|         return $this->getInvites()->map(static function (Invite $i) { return $i->getUser(); }); | ||||
|     } | ||||
|  | ||||
|     public function hasCalendarRange(): bool | ||||
| @@ -599,9 +597,7 @@ class Calendar implements TrackCreationInterface, TrackUpdateInterface, HasCente | ||||
|         } | ||||
|  | ||||
|         $invite = $this->invites | ||||
|             ->filter(static function (Invite $invite) use ($user) { | ||||
|                 return $invite->getUser() === $user; | ||||
|             }) | ||||
|             ->filter(static function (Invite $invite) use ($user) { return $invite->getUser() === $user; }) | ||||
|             ->first(); | ||||
|         $this->removeInvite($invite); | ||||
|  | ||||
|   | ||||
| @@ -44,7 +44,14 @@ class UrgencyAggregator implements AggregatorInterface | ||||
|     public function alterQuery(QueryBuilder $qb, $data) | ||||
|     { | ||||
|         $qb->addSelect('cal.urgent AS urgency_aggregator'); | ||||
|         $qb->addGroupBy('urgency_aggregator'); | ||||
|  | ||||
|         $groupBy = $qb->getDQLPart('groupBy'); | ||||
|  | ||||
|         if (!empty($groupBy)) { | ||||
|             $qb->addGroupBy('urgency_aggregator'); | ||||
|         } else { | ||||
|             $qb->groupBy('urgency_aggregator'); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     public function applyOn(): string | ||||
|   | ||||
| @@ -49,11 +49,23 @@ class CalendarRangeFilter implements FilterInterface | ||||
|  | ||||
|     public function alterQuery(QueryBuilder $qb, $data) | ||||
|     { | ||||
|         if (null !== $data['hasCalendarRange']) { | ||||
|             $qb->andWhere($qb->expr()->isNotNull('cal.calendarRange')); | ||||
|         $where = $qb->getDQLPart('where'); | ||||
|  | ||||
|         dump($data); | ||||
|  | ||||
|         if ($data['hasCalendarRange']) { | ||||
|             $clause = $qb->expr()->isNotNull('cal.calendarRange'); | ||||
|         } else { | ||||
|             $qb->andWhere($qb->expr()->isNull('cal.calendarRange')); | ||||
|             $clause = $qb->expr()->isNull('cal.calendarRange'); | ||||
|         } | ||||
|  | ||||
|         if ($where instanceof Andx) { | ||||
|             $where->add($clause); | ||||
|         } else { | ||||
|             $where = $qb->expr()->andX($clause); | ||||
|         } | ||||
|  | ||||
|         $qb->add('where', $where); | ||||
|     } | ||||
|  | ||||
|     public function applyOn(): string | ||||
| @@ -75,8 +87,6 @@ class CalendarRangeFilter implements FilterInterface | ||||
|  | ||||
|     public function describeAction($data, $format = 'string'): array | ||||
|     { | ||||
|         $choice = ''; | ||||
|  | ||||
|         foreach (self::CHOICES as $k => $v) { | ||||
|             if ($v === $data['hasCalendarRange']) { | ||||
|                 $choice = $k; | ||||
|   | ||||
| @@ -22,9 +22,6 @@ use Chill\CalendarBundle\Entity\Calendar; | ||||
| use Chill\CalendarBundle\Messenger\Message\CalendarMessage; | ||||
| use Chill\CalendarBundle\Messenger\Message\CalendarRemovedMessage; | ||||
| use Doctrine\ORM\Event\LifecycleEventArgs; | ||||
| use Doctrine\ORM\Event\PostPersistEventArgs; | ||||
| use Doctrine\ORM\Event\PostRemoveEventArgs; | ||||
| use Doctrine\ORM\Event\PostUpdateEventArgs; | ||||
| use Symfony\Component\Messenger\MessageBusInterface; | ||||
| use Symfony\Component\Security\Core\Security; | ||||
|  | ||||
| @@ -40,7 +37,7 @@ class CalendarEntityListener | ||||
|         $this->security = $security; | ||||
|     } | ||||
|  | ||||
|     public function postPersist(Calendar $calendar, PostPersistEventArgs $args): void | ||||
|     public function postPersist(Calendar $calendar, LifecycleEventArgs $args): void | ||||
|     { | ||||
|         if (!$calendar->preventEnqueueChanges) { | ||||
|             $this->messageBus->dispatch( | ||||
| @@ -53,7 +50,7 @@ class CalendarEntityListener | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     public function postRemove(Calendar $calendar, PostRemoveEventArgs $args): void | ||||
|     public function postRemove(Calendar $calendar, LifecycleEventArgs $args): void | ||||
|     { | ||||
|         if (!$calendar->preventEnqueueChanges) { | ||||
|             $this->messageBus->dispatch( | ||||
| @@ -65,7 +62,7 @@ class CalendarEntityListener | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     public function postUpdate(Calendar $calendar, PostUpdateEventArgs $args): void | ||||
|     public function postUpdate(Calendar $calendar, LifecycleEventArgs $args): void | ||||
|     { | ||||
|         if (!$calendar->preventEnqueueChanges) { | ||||
|             $this->messageBus->dispatch( | ||||
|   | ||||
| @@ -22,9 +22,6 @@ use Chill\CalendarBundle\Entity\CalendarRange; | ||||
| use Chill\CalendarBundle\Messenger\Message\CalendarRangeMessage; | ||||
| use Chill\CalendarBundle\Messenger\Message\CalendarRangeRemovedMessage; | ||||
| use Doctrine\ORM\Event\LifecycleEventArgs; | ||||
| use Doctrine\ORM\Event\PostPersistEventArgs; | ||||
| use Doctrine\ORM\Event\PostRemoveEventArgs; | ||||
| use Doctrine\ORM\Event\PostUpdateEventArgs; | ||||
| use Symfony\Component\Messenger\MessageBusInterface; | ||||
| use Symfony\Component\Security\Core\Security; | ||||
|  | ||||
| @@ -40,7 +37,7 @@ class CalendarRangeEntityListener | ||||
|         $this->security = $security; | ||||
|     } | ||||
|  | ||||
|     public function postPersist(CalendarRange $calendarRange, PostPersistEventArgs $eventArgs): void | ||||
|     public function postPersist(CalendarRange $calendarRange, LifecycleEventArgs $eventArgs): void | ||||
|     { | ||||
|         if (!$calendarRange->preventEnqueueChanges) { | ||||
|             $this->messageBus->dispatch( | ||||
| @@ -53,7 +50,7 @@ class CalendarRangeEntityListener | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     public function postRemove(CalendarRange $calendarRange, PostRemoveEventArgs $eventArgs): void | ||||
|     public function postRemove(CalendarRange $calendarRange, LifecycleEventArgs $eventArgs): void | ||||
|     { | ||||
|         if (!$calendarRange->preventEnqueueChanges) { | ||||
|             $this->messageBus->dispatch( | ||||
| @@ -65,7 +62,7 @@ class CalendarRangeEntityListener | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     public function postUpdate(CalendarRange $calendarRange, PostUpdateEventArgs $eventArgs): void | ||||
|     public function postUpdate(CalendarRange $calendarRange, LifecycleEventArgs $eventArgs): void | ||||
|     { | ||||
|         if (!$calendarRange->preventEnqueueChanges) { | ||||
|             $this->messageBus->dispatch( | ||||
|   | ||||
| @@ -89,14 +89,10 @@ class CalendarToRemoteHandler implements MessageHandlerInterface | ||||
|  | ||||
|         $newInvites = array_filter( | ||||
|             array_map( | ||||
|                 function ($id) { | ||||
|                     return $this->inviteRepository->find($id); | ||||
|                 }, | ||||
|                 function ($id) { return $this->inviteRepository->find($id); }, | ||||
|                 $calendarMessage->getNewInvitesIds(), | ||||
|             ), | ||||
|             static function (?Invite $invite) { | ||||
|                 return null !== $invite; | ||||
|             } | ||||
|             static function (?Invite $invite) { return null !== $invite; } | ||||
|         ); | ||||
|  | ||||
|         $this->calendarConnector->syncCalendar( | ||||
|   | ||||
| @@ -22,7 +22,6 @@ use Chill\MainBundle\Entity\User; | ||||
| use DateTimeImmutable; | ||||
| use LogicException; | ||||
| use Psr\Log\LoggerInterface; | ||||
| use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface; | ||||
| use Symfony\Contracts\HttpClient\HttpClientInterface; | ||||
| use function array_key_exists; | ||||
|  | ||||
| @@ -75,18 +74,9 @@ class MapCalendarToUser | ||||
|  | ||||
|     public function getDefaultUserCalendar(string $idOrUserPrincipalName): ?array | ||||
|     { | ||||
|         try { | ||||
|             $value = $this->machineHttpClient->request('GET', "users/{$idOrUserPrincipalName}/calendars", [ | ||||
|                 'query' => ['$filter' => 'isDefaultCalendar eq true'], | ||||
|             ])->toArray()['value']; | ||||
|         } catch (ClientExceptionInterface $e) { | ||||
|             $this->logger->error('[MapCalendarToUser] Error while listing calendars for a user', [ | ||||
|                 'http_status_code' => $e->getResponse()->getStatusCode(), | ||||
|                 'id_user' => $idOrUserPrincipalName, | ||||
|             ]); | ||||
|  | ||||
|             return null; | ||||
|         } | ||||
|         $value = $this->machineHttpClient->request('GET', "users/{$idOrUserPrincipalName}/calendars", [ | ||||
|             'query' => ['$filter' => 'isDefaultCalendar eq true'], | ||||
|         ])->toArray()['value']; | ||||
|  | ||||
|         return $value[0] ?? null; | ||||
|     } | ||||
|   | ||||
| @@ -110,11 +110,11 @@ class CalendarSyncer | ||||
|         $endDate = RemoteEventConverter::convertStringDateWithoutTimezone($new['end']['dateTime']); | ||||
|  | ||||
|         if ($startDate->getTimestamp() !== $calendar->getStartDate()->getTimestamp()) { | ||||
|             $calendar->setStartDate($startDate); | ||||
|             $calendar->setStartDate($startDate)->setStatus(Calendar::STATUS_MOVED); | ||||
|         } | ||||
|  | ||||
|         if ($endDate->getTimestamp() !== $calendar->getEndDate()->getTimestamp()) { | ||||
|             $calendar->setEndDate($endDate); | ||||
|             $calendar->setEndDate($endDate)->setStatus(Calendar::STATUS_MOVED); | ||||
|         } | ||||
|  | ||||
|         $calendar | ||||
|   | ||||
| @@ -34,7 +34,6 @@ use Psr\Log\LoggerInterface; | ||||
| use Symfony\Component\HttpFoundation\RedirectResponse; | ||||
| use Symfony\Component\HttpFoundation\Response; | ||||
| use Symfony\Component\Routing\Generator\UrlGeneratorInterface; | ||||
| use Symfony\Component\Security\Core\Security; | ||||
| use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface; | ||||
| use Symfony\Contracts\HttpClient\HttpClientInterface; | ||||
| use Symfony\Contracts\Translation\TranslatorInterface; | ||||
| @@ -65,8 +64,6 @@ class MSGraphRemoteCalendarConnector implements RemoteCalendarConnectorInterface | ||||
|  | ||||
|     private OnBehalfOfUserHttpClient $userHttpClient; | ||||
|  | ||||
|     private Security $security; | ||||
|  | ||||
|     public function __construct( | ||||
|         CalendarRepository $calendarRepository, | ||||
|         CalendarRangeRepository $calendarRangeRepository, | ||||
| @@ -77,8 +74,7 @@ class MSGraphRemoteCalendarConnector implements RemoteCalendarConnectorInterface | ||||
|         OnBehalfOfUserHttpClient $userHttpClient, | ||||
|         RemoteEventConverter $remoteEventConverter, | ||||
|         TranslatorInterface $translator, | ||||
|         UrlGeneratorInterface $urlGenerator, | ||||
|         Security $security | ||||
|         UrlGeneratorInterface $urlGenerator | ||||
|     ) { | ||||
|         $this->calendarRepository = $calendarRepository; | ||||
|         $this->calendarRangeRepository = $calendarRangeRepository; | ||||
| @@ -90,7 +86,6 @@ class MSGraphRemoteCalendarConnector implements RemoteCalendarConnectorInterface | ||||
|         $this->translator = $translator; | ||||
|         $this->urlGenerator = $urlGenerator; | ||||
|         $this->userHttpClient = $userHttpClient; | ||||
|         $this->security = $security; | ||||
|     } | ||||
|  | ||||
|     public function countEventsForUser(User $user, DateTimeImmutable $startDate, DateTimeImmutable $endDate): int | ||||
| @@ -138,24 +133,6 @@ class MSGraphRemoteCalendarConnector implements RemoteCalendarConnectorInterface | ||||
|  | ||||
|     public function isReady(): bool | ||||
|     { | ||||
|         $user = $this->security->getUser(); | ||||
|  | ||||
|         if (!$user instanceof User) { | ||||
|             // this is not a user from chill. This is not the role of this class to | ||||
|             // restrict access, so we will just say that we do not have to do anything more | ||||
|             // here... | ||||
|             return true; | ||||
|         } | ||||
|  | ||||
|         if (null === $this->mapCalendarToUser->getUserId($user)) { | ||||
|             // this user is not mapped with remote calendar. The user will have to wait for | ||||
|             // the next calendar subscription iteration | ||||
|             $this->logger->debug('mark user ready for msgraph calendar as he does not have any mapping', [ | ||||
|                 'userId' => $user->getId(), | ||||
|             ]); | ||||
|             return true; | ||||
|         } | ||||
|  | ||||
|         return $this->tokenStorage->hasToken(); | ||||
|     } | ||||
|  | ||||
| @@ -190,9 +167,7 @@ class MSGraphRemoteCalendarConnector implements RemoteCalendarConnectorInterface | ||||
|                 ] | ||||
|             )->toArray(); | ||||
|  | ||||
|             $ids = array_map(static function ($item) { | ||||
|                 return $item['id']; | ||||
|             }, $bareEvents['value']); | ||||
|             $ids = array_map(static function ($item) { return $item['id']; }, $bareEvents['value']); | ||||
|             $existingIdsInRange = $this->calendarRangeRepository->findRemoteIdsPresent($ids); | ||||
|             $existingIdsInCalendar = $this->calendarRepository->findRemoteIdsPresent($ids); | ||||
|  | ||||
|   | ||||
| @@ -215,7 +215,7 @@ class CalendarACLAwareRepository implements CalendarACLAwareRepositoryInterface | ||||
|         $qb | ||||
|             ->where( | ||||
|                 $qb->expr()->orX( | ||||
|                     // the calendar where the person is the main person: | ||||
|                 // the calendar where the person is the main person: | ||||
|                     $qb->expr()->eq('c.person', ':person'), | ||||
|                     // when the calendar is in a reachable period, and contains person | ||||
|                     $qb->expr()->andX( | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| import {EventInput} from '@fullcalendar/core'; | ||||
| import {EventInput} from '@fullcalendar/vue3'; | ||||
| import {DateTime, Location, User, UserAssociatedInterface} from '../../../ChillMainBundle/Resources/public/types' ; | ||||
| import {Person} from "../../../ChillPersonBundle/Resources/public/types"; | ||||
|  | ||||
|   | ||||
| @@ -116,6 +116,7 @@ | ||||
| <script> | ||||
| import ConcernedGroups from 'ChillActivityAssets/vuejs/Activity/components/ConcernedGroups.vue'; | ||||
| import Location from 'ChillActivityAssets/vuejs/Activity/components/Location.vue'; | ||||
| import '@fullcalendar/core/vdom'; // solves problem with Vite | ||||
| import frLocale from '@fullcalendar/core/locales/fr'; | ||||
| import FullCalendar from '@fullcalendar/vue3'; | ||||
| import dayGridPlugin from '@fullcalendar/daygrid'; | ||||
|   | ||||
| @@ -3,7 +3,7 @@ import {ISOToDatetime} from '../../../../../../ChillMainBundle/Resources/public/ | ||||
| import {DateTime, User} from '../../../../../../ChillMainBundle/Resources/public/types'; | ||||
| import {CalendarLight, CalendarRange, CalendarRemote} from '../../../types'; | ||||
| import type {EventInputCalendarRange} from '../../../types'; | ||||
| import {EventInput} from '@fullcalendar/core'; | ||||
| import {EventInput} from '@fullcalendar/vue3'; | ||||
|  | ||||
| export interface UserData { | ||||
|   user: User, | ||||
|   | ||||
| @@ -116,11 +116,13 @@ | ||||
| import type { | ||||
|   CalendarOptions, | ||||
|   DatesSetArg, | ||||
|   EventInput | ||||
| } from '@fullcalendar/core'; | ||||
|   EventInput, | ||||
|   EventInstance | ||||
| } from '@fullcalendar/vue3'; | ||||
| import {reactive, computed, ref} from "vue"; | ||||
| import {useStore} from "vuex"; | ||||
| import {key} from './store'; | ||||
| import '@fullcalendar/core/vdom'; // solves problem with Vite | ||||
| import FullCalendar from '@fullcalendar/vue3'; | ||||
| import frLocale from '@fullcalendar/core/locales/fr'; | ||||
| import interactionPlugin, {DropArg, EventResizeDoneArg} from "@fullcalendar/interaction"; | ||||
|   | ||||
| @@ -26,7 +26,7 @@ | ||||
| <script setup lang="ts"> | ||||
| import Modal from "../../../../../../ChillMainBundle/Resources/public/vuejs/_components/Modal.vue"; | ||||
| import {computed, ref} from "vue"; | ||||
| import {EventApi} from "@fullcalendar/core"; | ||||
| import {EventApi} from "@fullcalendar/vue3"; | ||||
| import {useStore} from "vuex"; | ||||
| import {key} from "../store"; | ||||
| import {Location} from "../../../../../../ChillMainBundle/Resources/public/types"; | ||||
|   | ||||
| @@ -2,7 +2,7 @@ import {State} from './../index'; | ||||
| import {ActionContext, Module} from 'vuex'; | ||||
| import {CalendarLight} from '../../../../types'; | ||||
| import {fetchCalendarLocalForUser} from '../../../Calendar/api'; | ||||
| import {EventInput} from '@fullcalendar/core'; | ||||
| import {EventInput} from '@fullcalendar/vue3'; | ||||
| import {localsToFullCalendarEvent} from "../../../Calendar/store/utils"; | ||||
| import {TransportExceptionInterface} from "../../../../../../../ChillMainBundle/Resources/public/lib/api/apiMethods"; | ||||
| import {COLORS} from "../../../Calendar/const"; | ||||
|   | ||||
| @@ -4,7 +4,7 @@ import {CalendarRange, CalendarRangeCreate, CalendarRangeEdit, isEventInputCalen | ||||
| import {Location} from "../../../../../../../ChillMainBundle/Resources/public/types"; | ||||
| import {fetchCalendarRangeForUser} from '../../../Calendar/api'; | ||||
| import {calendarRangeToFullCalendarEvent} from '../../../Calendar/store/utils'; | ||||
| import {EventInput} from '@fullcalendar/core'; | ||||
| import {EventInput} from '@fullcalendar/vue3'; | ||||
| import {makeFetch} from "../../../../../../../ChillMainBundle/Resources/public/lib/api/apiMethods"; | ||||
| import { | ||||
|   datetimeToISO, | ||||
|   | ||||
| @@ -2,7 +2,7 @@ import {State} from './../index'; | ||||
| import {ActionContext, Module} from 'vuex'; | ||||
| import {CalendarRemote} from '../../../../types'; | ||||
| import {fetchCalendarRemoteForUser} from '../../../Calendar/api'; | ||||
| import {EventInput} from '@fullcalendar/core'; | ||||
| import {EventInput, EventSource} from '@fullcalendar/vue3'; | ||||
| import {remoteToFullCalendarEvent} from "../../../Calendar/store/utils"; | ||||
| import {TransportExceptionInterface} from "../../../../../../../ChillMainBundle/Resources/public/lib/api/apiMethods"; | ||||
| import {COLORS} from "../../../Calendar/const"; | ||||
|   | ||||
| @@ -31,8 +31,6 @@ use Symfony\Component\Form\FormBuilderInterface; | ||||
| use Symfony\Component\Serializer\Normalizer\NormalizerInterface; | ||||
| use function count; | ||||
|  | ||||
| /** | ||||
|  */ | ||||
| final class CalendarContext implements CalendarContextInterface | ||||
| { | ||||
|     private BaseContextData $baseContextData; | ||||
| @@ -150,7 +148,7 @@ final class CalendarContext implements CalendarContextInterface | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * param array{mainPerson?: Person, thirdParty?: ThirdParty, title: string} $contextGenerationData | ||||
|      * @param array{mainPerson?: Person, thirdParty?: ThirdParty, title: string} $contextGenerationData | ||||
|      * @param mixed $entity | ||||
|      */ | ||||
|     public function getData(DocGeneratorTemplate $template, $entity, array $contextGenerationData = []): array | ||||
| @@ -158,7 +156,7 @@ final class CalendarContext implements CalendarContextInterface | ||||
|         $options = $this->getOptions($template); | ||||
|  | ||||
|         $data = array_merge( | ||||
|             $this->baseContextData->getData($contextGenerationData['creator'] ?? null), | ||||
|             $this->baseContextData->getData(), | ||||
|             [ | ||||
|                 'calendar' => $this->normalizer->normalize($entity, 'docgen', ['docgen:expects' => Calendar::class, 'groups' => ['docgen:read']]), | ||||
|             ] | ||||
| @@ -288,7 +286,7 @@ final class CalendarContext implements CalendarContextInterface | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * return array{askMainPerson: bool, mainPersonLabel: ?string, askThirdParty: bool, thirdPartyLabel: ?string, trackDateTime: bool} $options | ||||
|      * @return array{askMainPerson: bool, mainPersonLabel: ?string, askThirdParty: bool, thirdPartyLabel: ?string, trackDateTime: bool} $options | ||||
|      */ | ||||
|     private function getOptions(DocGeneratorTemplate $template): array | ||||
|     { | ||||
|   | ||||
| @@ -18,9 +18,6 @@ use Chill\DocGeneratorBundle\Entity\DocGeneratorTemplate; | ||||
| use Chill\DocStoreBundle\Entity\StoredObject; | ||||
| use Symfony\Component\Form\FormBuilderInterface; | ||||
|  | ||||
| /** | ||||
|  * @template-extends DocGeneratorContextWithPublicFormInterface<Calendar> | ||||
|  */ | ||||
| interface CalendarContextInterface extends DocGeneratorContextWithPublicFormInterface, DocGeneratorContextWithAdminFormInterface | ||||
| { | ||||
|     public function adminFormReverseTransform(array $data): array; | ||||
| @@ -29,14 +26,23 @@ interface CalendarContextInterface extends DocGeneratorContextWithPublicFormInte | ||||
|  | ||||
|     public function buildAdminForm(FormBuilderInterface $builder): void; | ||||
|  | ||||
|     /** | ||||
|      * @param Calendar $entity | ||||
|      */ | ||||
|     public function buildPublicForm(FormBuilderInterface $builder, DocGeneratorTemplate $template, $entity): void; | ||||
|  | ||||
|     /** | ||||
|      * @param Calendar $entity | ||||
|      */ | ||||
|     public function getData(DocGeneratorTemplate $template, $entity, array $contextGenerationData = []): array; | ||||
|  | ||||
|     public function getDescription(): string; | ||||
|  | ||||
|     public function getEntityClass(): string; | ||||
|  | ||||
|     /** | ||||
|      * @param Calendar $entity | ||||
|      */ | ||||
|     public function getFormData(DocGeneratorTemplate $template, $entity): array; | ||||
|  | ||||
|     public static function getKey(): string; | ||||
| @@ -45,11 +51,17 @@ interface CalendarContextInterface extends DocGeneratorContextWithPublicFormInte | ||||
|  | ||||
|     public function hasAdminForm(): bool; | ||||
|  | ||||
|     /** | ||||
|      * @param Calendar $entity | ||||
|      */ | ||||
|     public function hasPublicForm(DocGeneratorTemplate $template, $entity): bool; | ||||
|  | ||||
|     public function contextGenerationDataNormalize(DocGeneratorTemplate $template, $entity, array $data): array; | ||||
|  | ||||
|     public function contextGenerationDataDenormalize(DocGeneratorTemplate $template, $entity, array $data): array; | ||||
|  | ||||
|     /** | ||||
|      * @param Calendar $entity | ||||
|      */ | ||||
|     public function storeGenerated(DocGeneratorTemplate $template, StoredObject $storedObject, object $entity, array $contextGenerationData): void; | ||||
| } | ||||
|   | ||||
| @@ -96,7 +96,7 @@ final class CalendarTypeTest extends TypeTestCase | ||||
|         ]; | ||||
|  | ||||
|         $calendar = new Calendar(); | ||||
|         $calendar->setMainUser(new class () extends User { | ||||
|         $calendar->setMainUser(new class() extends User { | ||||
|             public function getId() | ||||
|             { | ||||
|                 return '1'; | ||||
| @@ -114,12 +114,8 @@ final class CalendarTypeTest extends TypeTestCase | ||||
|         $this->assertEquals(8, $calendar->getCalendarRange()->getId()); | ||||
|         $this->assertEquals(9, $calendar->getLocation()->getId()); | ||||
|         $this->assertEquals(true, $calendar->getSendSMS()); | ||||
|         $this->assertContains(2, $calendar->getUsers()->map(static function (User $u) { | ||||
|             return $u->getId(); | ||||
|         })); | ||||
|         $this->assertContains(3, $calendar->getUsers()->map(static function (User $u) { | ||||
|             return $u->getId(); | ||||
|         })); | ||||
|         $this->assertContains(2, $calendar->getUsers()->map(static function (User $u) { return $u->getId(); })); | ||||
|         $this->assertContains(3, $calendar->getUsers()->map(static function (User $u) { return $u->getId(); })); | ||||
|     } | ||||
|  | ||||
|     protected function getExtensions() | ||||
| @@ -151,9 +147,7 @@ final class CalendarTypeTest extends TypeTestCase | ||||
|             ->will(static function ($args) { | ||||
|                 return implode( | ||||
|                     ',', | ||||
|                     array_map(static function ($p) { | ||||
|                         return $p->getId(); | ||||
|                     }, $args[0]) | ||||
|                     array_map(static function ($p) { return $p->getId(); }, $args[0]) | ||||
|                 ); | ||||
|             }); | ||||
|         $transformer->transform(Argument::exact(null)) | ||||
| @@ -162,9 +156,7 @@ final class CalendarTypeTest extends TypeTestCase | ||||
|             ->will(static function ($args) { | ||||
|                 return implode( | ||||
|                     ',', | ||||
|                     array_map(static function ($p) { | ||||
|                         return $p->getId(); | ||||
|                     }, $args[0]->toArray()) | ||||
|                     array_map(static function ($p) { return $p->getId(); }, $args[0]->toArray()) | ||||
|                 ); | ||||
|             }); | ||||
|         $transformer->reverseTransform(Argument::type('string')) | ||||
|   | ||||
| @@ -205,7 +205,7 @@ final class CalendarContextTest extends TestCase | ||||
|         ?NormalizerInterface $normalizer = null | ||||
|     ): CalendarContext { | ||||
|         $baseContext = $this->prophesize(BaseContextData::class); | ||||
|         $baseContext->getData(null)->willReturn(['base_context' => 'data']); | ||||
|         $baseContext->getData()->willReturn(['base_context' => 'data']); | ||||
|  | ||||
|         $personRender = $this->prophesize(PersonRender::class); | ||||
|         $personRender->renderString(Argument::type(Person::class), [])->willReturn('person name'); | ||||
|   | ||||
| @@ -16,17 +16,15 @@ use Chill\DocStoreBundle\Entity\StoredObject; | ||||
|  | ||||
| /** | ||||
|  * Interface for context for document generation. | ||||
|  * | ||||
|  * @template T of object | ||||
|  */ | ||||
| interface DocGeneratorContextInterface | ||||
| { | ||||
|     /** | ||||
|      * Get the data that will be injected to the generated document. | ||||
|      * | ||||
|      * @param T $entity | ||||
|      * @param mixed $entity | ||||
|      */ | ||||
|     public function getData(DocGeneratorTemplate $template, object $entity, array $contextGenerationData = []): array; | ||||
|     public function getData(DocGeneratorTemplate $template, $entity, array $contextGenerationData = []): array; | ||||
|  | ||||
|     public function getDescription(): string; | ||||
|  | ||||
| @@ -36,8 +34,5 @@ interface DocGeneratorContextInterface | ||||
|  | ||||
|     public function getName(): string; | ||||
|  | ||||
|     /** | ||||
|      * @param T $entity | ||||
|      */ | ||||
|     public function storeGenerated(DocGeneratorTemplate $template, StoredObject $storedObject, object $entity, array $contextGenerationData): void; | ||||
| } | ||||
|   | ||||
| @@ -14,43 +14,34 @@ namespace Chill\DocGeneratorBundle\Context; | ||||
| use Chill\DocGeneratorBundle\Entity\DocGeneratorTemplate; | ||||
| use Symfony\Component\Form\FormBuilderInterface; | ||||
|  | ||||
| /** | ||||
|  * @template T | ||||
|  */ | ||||
| interface DocGeneratorContextWithPublicFormInterface extends DocGeneratorContextInterface | ||||
| { | ||||
|     /** | ||||
|      * Generate the form that display. | ||||
|      * | ||||
|      * @param T $entity | ||||
|      * @param mixed $entity | ||||
|      */ | ||||
|     public function buildPublicForm(FormBuilderInterface $builder, DocGeneratorTemplate $template, mixed $entity): void; | ||||
|     public function buildPublicForm(FormBuilderInterface $builder, DocGeneratorTemplate $template, $entity): void; | ||||
|  | ||||
|     /** | ||||
|      * Fill the form with initial data | ||||
|      * | ||||
|      * @param T $entity | ||||
|      */ | ||||
|     public function getFormData(DocGeneratorTemplate $template, mixed $entity): array; | ||||
|     public function getFormData(DocGeneratorTemplate $template, $entity): array; | ||||
|  | ||||
|     /** | ||||
|      * has form. | ||||
|      * | ||||
|      * @param T $entity | ||||
|      * @param mixed $entity | ||||
|      */ | ||||
|     public function hasPublicForm(DocGeneratorTemplate $template, mixed $entity): bool; | ||||
|     public function hasPublicForm(DocGeneratorTemplate $template, $entity): bool; | ||||
|  | ||||
|     /** | ||||
|      * Transform the data from the form into serializable data, storable into messenger's message | ||||
|      * | ||||
|      * @param T $entity | ||||
|      */ | ||||
|     public function contextGenerationDataNormalize(DocGeneratorTemplate $template, mixed $entity, array $data): array; | ||||
|     public function contextGenerationDataNormalize(DocGeneratorTemplate $template, $entity, array $data): array; | ||||
|  | ||||
|     /** | ||||
|      * Reverse the data from the messenger's message into data usable for doc's generation | ||||
|      * | ||||
|      * @param T $entity | ||||
|      */ | ||||
|     public function contextGenerationDataDenormalize(DocGeneratorTemplate $template, mixed $entity, array $data): array; | ||||
|     public function contextGenerationDataDenormalize(DocGeneratorTemplate $template, $entity, array $data): array; | ||||
| } | ||||
|   | ||||
| @@ -39,7 +39,6 @@ use Symfony\Component\Routing\Annotation\Route; | ||||
| use Symfony\Component\Serializer\Normalizer\AbstractNormalizer; | ||||
| use Symfony\Contracts\HttpClient\HttpClientInterface; | ||||
| use function strlen; | ||||
| use const JSON_PRETTY_PRINT; | ||||
|  | ||||
| final class DocGeneratorTemplateController extends AbstractController | ||||
| { | ||||
| @@ -256,10 +255,9 @@ final class DocGeneratorTemplateController extends AbstractController | ||||
|         // if is test, render the data or generate the doc | ||||
|         if ($isTest && isset($form) && $form['show_data']->getData()) { | ||||
|             return $this->render('@ChillDocGenerator/Generator/debug_value.html.twig', [ | ||||
|                 'datas' => json_encode($context->getData($template, $entity, $contextGenerationData), JSON_PRETTY_PRINT), | ||||
|                 'datas' => json_encode($context->getData($template, $entity, $contextGenerationData), JSON_PRETTY_PRINT) | ||||
|             ]); | ||||
|         } | ||||
|         if ($isTest) { | ||||
|         } elseif ($isTest) { | ||||
|             $generated = $this->generator->generateDocFromTemplate( | ||||
|                 $template, | ||||
|                 $entityId, | ||||
| @@ -285,7 +283,7 @@ final class DocGeneratorTemplateController extends AbstractController | ||||
|         // we prepare the object to store the document | ||||
|         $storedObject = (new StoredObject()) | ||||
|             ->setStatus(StoredObject::STATUS_PENDING) | ||||
|         ; | ||||
|             ; | ||||
|  | ||||
|         $this->entityManager->persist($storedObject); | ||||
|  | ||||
|   | ||||
| @@ -61,7 +61,7 @@ class LoadDocGeneratorTemplate extends AbstractFixture | ||||
|                 ->setFilename($template['file']['filename']) | ||||
|                 ->setKeyInfos(json_decode($template['file']['key'], true)) | ||||
|                 ->setIv(json_decode($template['file']['iv'], true)) | ||||
|                 ->setCreatedAt(new DateTime('today')) | ||||
|                 ->setCreationDate(new DateTime('today')) | ||||
|                 ->setType($template['file']['type']); | ||||
|  | ||||
|             $manager->persist($newStoredObj); | ||||
|   | ||||
| @@ -21,14 +21,18 @@ class BaseContextData | ||||
| { | ||||
|     private NormalizerInterface $normalizer; | ||||
|  | ||||
|     public function __construct(NormalizerInterface $normalizer) | ||||
|     private Security $security; | ||||
|  | ||||
|     public function __construct(Security $security, NormalizerInterface $normalizer) | ||||
|     { | ||||
|         $this->security = $security; | ||||
|         $this->normalizer = $normalizer; | ||||
|     } | ||||
|  | ||||
|     public function getData(?User $user = null): array | ||||
|     public function getData(): array | ||||
|     { | ||||
|         $data = []; | ||||
|         $user = $this->security->getUser(); | ||||
|  | ||||
|         $data['creator'] = $this->normalizer->normalize( | ||||
|             $user instanceof User ? $user : null, | ||||
|   | ||||
| @@ -1,14 +1,5 @@ | ||||
| <?php | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| /* | ||||
|  * Chill is a software for social workers | ||||
|  * | ||||
|  * For the full copyright and license information, please view | ||||
|  * the LICENSE file that was distributed with this source code. | ||||
|  */ | ||||
|  | ||||
| namespace Chill\DocGeneratorBundle\Service\Generator; | ||||
|  | ||||
| use Chill\DocGeneratorBundle\Context\ContextManagerInterface; | ||||
| @@ -18,7 +9,6 @@ use Chill\DocGeneratorBundle\GeneratorDriver\DriverInterface; | ||||
| use Chill\DocGeneratorBundle\GeneratorDriver\Exception\TemplateException; | ||||
| use Chill\DocStoreBundle\Entity\StoredObject; | ||||
| use Chill\DocStoreBundle\Service\StoredObjectManagerInterface; | ||||
| use Chill\MainBundle\Entity\User; | ||||
| use Doctrine\ORM\EntityManagerInterface; | ||||
| use Psr\Log\LoggerInterface; | ||||
| use Symfony\Component\HttpFoundation\File\File; | ||||
| @@ -65,8 +55,7 @@ class Generator implements GeneratorInterface | ||||
|         array                $contextGenerationDataNormalized, | ||||
|         ?StoredObject        $destinationStoredObject = null, | ||||
|         bool                 $isTest = false, | ||||
|         ?File                $testFile = null, | ||||
|         ?User                $creator = null | ||||
|         ?File                $testFile = null | ||||
|     ): ?string { | ||||
|         if ($destinationStoredObject instanceof StoredObject && StoredObject::STATUS_PENDING !== $destinationStoredObject->getStatus()) { | ||||
|             $this->logger->info(self::LOG_PREFIX.'Aborting generation of an already generated document'); | ||||
| @@ -83,7 +72,7 @@ class Generator implements GeneratorInterface | ||||
|         $entity = $this | ||||
|             ->entityManager | ||||
|             ->find($context->getEntityClass(), $entityId) | ||||
|         ; | ||||
|             ; | ||||
|  | ||||
|         if (null === $entity) { | ||||
|             throw new RelatedEntityNotFoundException($template->getEntity(), $entityId); | ||||
| @@ -91,7 +80,6 @@ class Generator implements GeneratorInterface | ||||
|  | ||||
|         $contextGenerationDataNormalized = array_merge( | ||||
|             $contextGenerationDataNormalized, | ||||
|                 ['creator' => $creator], | ||||
|                 $context instanceof DocGeneratorContextWithPublicFormInterface ? | ||||
|                     $context->contextGenerationDataDenormalize($template, $entity, $contextGenerationDataNormalized) | ||||
|                     : [] | ||||
| @@ -125,7 +113,7 @@ class Generator implements GeneratorInterface | ||||
|             throw new GeneratorException($e->getErrors(), $e); | ||||
|         } | ||||
|  | ||||
|         if (true === $isTest) { | ||||
|         if ($isTest) { | ||||
|             $this->logger->info(self::LOG_PREFIX.'Finished generation of a document', [ | ||||
|                 'is_test' => true, | ||||
|                 'entity_id' => $entityId, | ||||
| @@ -134,12 +122,12 @@ class Generator implements GeneratorInterface | ||||
|             return $generatedResource; | ||||
|         } | ||||
|  | ||||
|         /** @var StoredObject $destinationStoredObject */ | ||||
|         /** @var StoredObject $storedObject */ | ||||
|         $destinationStoredObject | ||||
|             ->setType($template->getFile()->getType()) | ||||
|             ->setFilename(sprintf('%s_odt', uniqid('doc_', true))) | ||||
|             ->setStatus(StoredObject::STATUS_READY) | ||||
|         ; | ||||
|             ; | ||||
|  | ||||
|         $this->storedObjectManager->write($destinationStoredObject, $generatedResource); | ||||
|  | ||||
|   | ||||
| @@ -1,34 +1,19 @@ | ||||
| <?php | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| /* | ||||
|  * Chill is a software for social workers | ||||
|  * | ||||
|  * For the full copyright and license information, please view | ||||
|  * the LICENSE file that was distributed with this source code. | ||||
|  */ | ||||
|  | ||||
| namespace Chill\DocGeneratorBundle\Service\Generator; | ||||
|  | ||||
| use RuntimeException; | ||||
| use Throwable; | ||||
|  | ||||
| class GeneratorException extends RuntimeException | ||||
| class GeneratorException extends \RuntimeException | ||||
| { | ||||
|     /** | ||||
|      * @var list<string> | ||||
|      */ | ||||
|     private array $errors; | ||||
|  | ||||
|     public function __construct(array $errors = [], ?Throwable $previous = null) | ||||
|     public function __construct(array $errors = [], \Throwable $previous = null) | ||||
|     { | ||||
|         $this->errors = $errors; | ||||
|         parent::__construct( | ||||
|             'Could not generate the document', | ||||
|             15252, | ||||
|             $previous | ||||
|         ); | ||||
|         parent::__construct("Could not generate the document", 15252, | ||||
|             $previous); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|   | ||||
| @@ -1,19 +1,9 @@ | ||||
| <?php | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| /* | ||||
|  * Chill is a software for social workers | ||||
|  * | ||||
|  * For the full copyright and license information, please view | ||||
|  * the LICENSE file that was distributed with this source code. | ||||
|  */ | ||||
|  | ||||
| namespace Chill\DocGeneratorBundle\Service\Generator; | ||||
|  | ||||
| use Chill\DocGeneratorBundle\Entity\DocGeneratorTemplate; | ||||
| use Chill\DocStoreBundle\Entity\StoredObject; | ||||
| use Chill\MainBundle\Entity\User; | ||||
| use Symfony\Component\HttpFoundation\File\File; | ||||
|  | ||||
| interface GeneratorInterface | ||||
| @@ -32,7 +22,6 @@ interface GeneratorInterface | ||||
|         array                $contextGenerationDataNormalized, | ||||
|         ?StoredObject        $destinationStoredObject = null, | ||||
|         bool                 $isTest = false, | ||||
|         ?File                $testFile = null, | ||||
|         ?User                $creator = null | ||||
|         ?File                $testFile = null | ||||
|     ): ?string; | ||||
| } | ||||
|   | ||||
| @@ -1,22 +1,11 @@ | ||||
| <?php | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| /* | ||||
|  * Chill is a software for social workers | ||||
|  * | ||||
|  * For the full copyright and license information, please view | ||||
|  * the LICENSE file that was distributed with this source code. | ||||
|  */ | ||||
|  | ||||
| namespace Chill\DocGeneratorBundle\Service\Generator; | ||||
|  | ||||
| use RuntimeException; | ||||
|  | ||||
| class ObjectReadyException extends RuntimeException | ||||
| class ObjectReadyException extends \RuntimeException | ||||
| { | ||||
|     public function __construct() | ||||
|     { | ||||
|         parent::__construct('object is already ready', 6698856); | ||||
|         parent::__construct("object is already ready", 6698856); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -1,26 +1,14 @@ | ||||
| <?php | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| /* | ||||
|  * Chill is a software for social workers | ||||
|  * | ||||
|  * For the full copyright and license information, please view | ||||
|  * the LICENSE file that was distributed with this source code. | ||||
|  */ | ||||
|  | ||||
| namespace Chill\DocGeneratorBundle\Service\Generator; | ||||
|  | ||||
| use RuntimeException; | ||||
|  | ||||
| class RelatedEntityNotFoundException extends RuntimeException | ||||
| class RelatedEntityNotFoundException extends \RuntimeException | ||||
| { | ||||
|     public function __construct(string $relatedEntityClass, int $relatedEntityId, ?\Throwable $previous = null) | ||||
|     public function __construct(string $relatedEntityClass, int $relatedEntityId, Throwable $previous = null) | ||||
|     { | ||||
|         parent::__construct( | ||||
|             sprintf('Related entity not found: %s, %s', $relatedEntityClass, $relatedEntityId), | ||||
|             sprintf("Related entity not found: %s, %s", $relatedEntityClass, $relatedEntityId), | ||||
|             99876652, | ||||
|             $previous | ||||
|         ); | ||||
|             $previous); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -1,14 +1,5 @@ | ||||
| <?php | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| /* | ||||
|  * Chill is a software for social workers | ||||
|  * | ||||
|  * For the full copyright and license information, please view | ||||
|  * the LICENSE file that was distributed with this source code. | ||||
|  */ | ||||
|  | ||||
| namespace Chill\DocGeneratorBundle\Service\Messenger; | ||||
|  | ||||
| use Chill\DocGeneratorBundle\Repository\DocGeneratorTemplateRepository; | ||||
| @@ -40,7 +31,7 @@ final class OnGenerationFails implements EventSubscriberInterface | ||||
|  | ||||
|     private UserRepositoryInterface $userRepository; | ||||
|  | ||||
|     public const LOG_PREFIX = '[docgen failed] '; | ||||
|     const LOG_PREFIX = '[docgen failed] '; | ||||
|  | ||||
|     /** | ||||
|      * @param DocGeneratorTemplateRepository $docGeneratorTemplateRepository | ||||
| @@ -117,7 +108,10 @@ final class OnGenerationFails implements EventSubscriberInterface | ||||
|  | ||||
|     private function warnCreator(RequestGenerationMessage $message, WorkerMessageFailedEvent $event): void | ||||
|     { | ||||
|         $creatorId = $message->getCreatorId(); | ||||
|         if (null === $creatorId = $message->getCreatorId()) { | ||||
|             $this->logger->info(self::LOG_PREFIX.'creator id is null'); | ||||
|             return; | ||||
|         } | ||||
|  | ||||
|         if (null === $creator = $this->userRepository->find($creatorId)) { | ||||
|             $this->logger->error(self::LOG_PREFIX.'Creator not found with given id', ['creator_id', $creatorId]); | ||||
|   | ||||
| @@ -1,23 +1,12 @@ | ||||
| <?php | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| /* | ||||
|  * Chill is a software for social workers | ||||
|  * | ||||
|  * For the full copyright and license information, please view | ||||
|  * the LICENSE file that was distributed with this source code. | ||||
|  */ | ||||
|  | ||||
| namespace Chill\DocGeneratorBundle\Service\Messenger; | ||||
|  | ||||
| use Chill\DocGeneratorBundle\Repository\DocGeneratorTemplateRepository; | ||||
| use Chill\DocGeneratorBundle\Service\Generator\Generator; | ||||
| use Chill\DocStoreBundle\Entity\StoredObject; | ||||
| use Chill\DocStoreBundle\Repository\StoredObjectRepository; | ||||
| use Chill\MainBundle\Repository\UserRepositoryInterface; | ||||
| use Doctrine\ORM\EntityManagerInterface; | ||||
| use Psr\Log\LoggerInterface; | ||||
| use Symfony\Component\Messenger\Exception\UnrecoverableMessageHandlingException; | ||||
| use Symfony\Component\Messenger\Handler\MessageHandlerInterface; | ||||
|  | ||||
| @@ -34,28 +23,18 @@ class RequestGenerationHandler implements MessageHandlerInterface | ||||
|  | ||||
|     private Generator $generator; | ||||
|  | ||||
|     private LoggerInterface $logger; | ||||
|  | ||||
|     private UserRepositoryInterface $userRepository; | ||||
|  | ||||
|     public const AUTHORIZED_TRIALS = 5; | ||||
|  | ||||
|     private const LOG_PREFIX = '[docgen message handler] '; | ||||
|  | ||||
|     public function __construct( | ||||
|         DocGeneratorTemplateRepository $docGeneratorTemplateRepository, | ||||
|         EntityManagerInterface $entityManager, | ||||
|         Generator $generator, | ||||
|         LoggerInterface $logger, | ||||
|         StoredObjectRepository $storedObjectRepository, | ||||
|         UserRepositoryInterface $userRepository | ||||
|         StoredObjectRepository $storedObjectRepository | ||||
|     ) { | ||||
|         $this->docGeneratorTemplateRepository = $docGeneratorTemplateRepository; | ||||
|         $this->entityManager = $entityManager; | ||||
|         $this->generator = $generator; | ||||
|         $this->logger = $logger; | ||||
|         $this->storedObjectRepository = $storedObjectRepository; | ||||
|         $this->userRepository = $userRepository; | ||||
|     } | ||||
|  | ||||
|     public function __invoke(RequestGenerationMessage $message) | ||||
| @@ -72,8 +51,6 @@ class RequestGenerationHandler implements MessageHandlerInterface | ||||
|             throw new UnrecoverableMessageHandlingException('maximum number of retry reached'); | ||||
|         } | ||||
|  | ||||
|         $creator = $this->userRepository->find($message->getCreatorId()); | ||||
|  | ||||
|         $destinationStoredObject->addGenerationTrial(); | ||||
|         $this->entityManager->createQuery('UPDATE '.StoredObject::class.' s SET s.generationTrialsCounter = s.generationTrialsCounter + 1 WHERE s.id = :id') | ||||
|             ->setParameter('id', $destinationStoredObject->getId()) | ||||
| @@ -83,16 +60,7 @@ class RequestGenerationHandler implements MessageHandlerInterface | ||||
|             $template, | ||||
|             $message->getEntityId(), | ||||
|             $message->getContextGenerationData(), | ||||
|             $destinationStoredObject, | ||||
|             false, | ||||
|             null, | ||||
|             $creator | ||||
|             $destinationStoredObject | ||||
|         ); | ||||
|  | ||||
|         $this->logger->info(self::LOG_PREFIX.'Request generation finished', [ | ||||
|             'template_id' => $message->getTemplateId(), | ||||
|             'destination_stored_object' => $message->getDestinationStoredObjectId(), | ||||
|             'duration_int' => (new \DateTimeImmutable('now'))->getTimestamp() - $message->getCreatedAt()->getTimestamp(), | ||||
|         ]); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -1,14 +1,5 @@ | ||||
| <?php | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| /* | ||||
|  * Chill is a software for social workers | ||||
|  * | ||||
|  * For the full copyright and license information, please view | ||||
|  * the LICENSE file that was distributed with this source code. | ||||
|  */ | ||||
|  | ||||
| namespace Chill\DocGeneratorBundle\Service\Messenger; | ||||
|  | ||||
| use Chill\DocGeneratorBundle\Entity\DocGeneratorTemplate; | ||||
| @@ -17,17 +8,15 @@ use Chill\MainBundle\Entity\User; | ||||
|  | ||||
| class RequestGenerationMessage | ||||
| { | ||||
|     private int $creatorId; | ||||
|    private int $creatorId; | ||||
|  | ||||
|     private int $templateId; | ||||
|    private int $templateId; | ||||
|  | ||||
|     private int $entityId; | ||||
|    private int $entityId; | ||||
|  | ||||
|     private int $destinationStoredObjectId; | ||||
|    private int $destinationStoredObjectId; | ||||
|  | ||||
|     private array $contextGenerationData; | ||||
|  | ||||
|    private \DateTimeImmutable $createdAt; | ||||
|    private array $contextGenerationData; | ||||
|  | ||||
|     public function __construct( | ||||
|         User $creator, | ||||
| @@ -41,7 +30,6 @@ class RequestGenerationMessage | ||||
|         $this->entityId = $entityId; | ||||
|         $this->destinationStoredObjectId = $destinationStoredObject->getId(); | ||||
|         $this->contextGenerationData = $contextGenerationData; | ||||
|         $this->createdAt = new \DateTimeImmutable('now'); | ||||
|     } | ||||
|  | ||||
|     public function getCreatorId(): int | ||||
| @@ -68,9 +56,4 @@ class RequestGenerationMessage | ||||
|     { | ||||
|         return $this->contextGenerationData; | ||||
|     } | ||||
|  | ||||
|     public function getCreatedAt(): \DateTimeImmutable | ||||
|     { | ||||
|         return $this->createdAt; | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -2,13 +2,6 @@ | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| /* | ||||
|  * Chill is a software for social workers | ||||
|  * | ||||
|  * For the full copyright and license information, please view | ||||
|  * the LICENSE file that was distributed with this source code. | ||||
|  */ | ||||
|  | ||||
| namespace Chill\Migrations\DocGenerator; | ||||
|  | ||||
| use Doctrine\DBAL\Schema\Schema; | ||||
|   | ||||
| @@ -1,14 +1,5 @@ | ||||
| <?php | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| /* | ||||
|  * Chill is a software for social workers | ||||
|  * | ||||
|  * For the full copyright and license information, please view | ||||
|  * the LICENSE file that was distributed with this source code. | ||||
|  */ | ||||
|  | ||||
| namespace Chill\DocGeneratorBundle\tests\Service\Context\Generator; | ||||
|  | ||||
| use Chill\DocGeneratorBundle\Context\ContextManagerInterface; | ||||
| @@ -26,10 +17,6 @@ use Prophecy\Argument; | ||||
| use Prophecy\PhpUnit\ProphecyTrait; | ||||
| use Psr\Log\NullLogger; | ||||
|  | ||||
| /** | ||||
|  * @internal | ||||
|  * @coversNothing | ||||
|  */ | ||||
| class GeneratorTest extends TestCase | ||||
| { | ||||
|     use ProphecyTrait; | ||||
| @@ -42,7 +29,7 @@ class GeneratorTest extends TestCase | ||||
|         $reflection = new \ReflectionClass($destinationStoredObject); | ||||
|         $reflection->getProperty('id')->setAccessible(true); | ||||
|         $reflection->getProperty('id')->setValue($destinationStoredObject, 1); | ||||
|         $entity = new class () {}; | ||||
|         $entity = new class {}; | ||||
|         $data = []; | ||||
|  | ||||
|         $context = $this->prophesize(DocGeneratorContextInterface::class); | ||||
|   | ||||
| @@ -1,14 +1,5 @@ | ||||
| <?php | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| /* | ||||
|  * Chill is a software for social workers | ||||
|  * | ||||
|  * For the full copyright and license information, please view | ||||
|  * the LICENSE file that was distributed with this source code. | ||||
|  */ | ||||
|  | ||||
| namespace Chill\DocStoreBundle\Controller; | ||||
|  | ||||
| use Chill\DocStoreBundle\Entity\StoredObject; | ||||
|   | ||||
| @@ -35,11 +35,12 @@ use Symfony\Component\Serializer\Annotation as Serializer; | ||||
|  */ | ||||
| class StoredObject implements AsyncFileInterface, Document, TrackCreationInterface | ||||
| { | ||||
|     use TrackCreationTrait; | ||||
|     public const STATUS_READY = "ready"; | ||||
|     public const STATUS_PENDING = "pending"; | ||||
|     public const STATUS_FAILURE = "failure"; | ||||
|  | ||||
|     use TrackCreationTrait; | ||||
|  | ||||
|     /** | ||||
|      * @ORM\Column(type="json", name="datas") | ||||
|      * @Serializer\Groups({"read", "write"}) | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| <template> | ||||
|   <div v-if="'ready' === props.storedObject.status" class="btn-group"> | ||||
|   <div v-if="'ready' === props.storedObject.status" class="dropdown"> | ||||
|     <button :class="Object.assign({'btn': true, 'btn-outline-primary': true, 'dropdown-toggle': true, 'btn-sm': props.small})" type="button" data-bs-toggle="dropdown" aria-expanded="false"> | ||||
|       Actions | ||||
|     </button> | ||||
|   | ||||
| @@ -38,11 +38,13 @@ async function download_and_open(event: Event): Promise<void> { | ||||
|     button.href = window.URL.createObjectURL(raw); | ||||
|     button.type = props.storedObject.type; | ||||
|  | ||||
|     button.download = props.filename || 'document'; | ||||
|     if (props.filename !== undefined) { | ||||
|       button.download = props.filename || 'document'; | ||||
|  | ||||
|     const ext = mime.getExtension(props.storedObject.type); | ||||
|     if (null !== ext) { | ||||
|       button.download = button.download + '.' + ext; | ||||
|       const ext = mime.getExtension(props.storedObject.type); | ||||
|       if (null !== ext) { | ||||
|         button.download = button.download + '.' + ext; | ||||
|       } | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   | ||||
| @@ -95,16 +95,6 @@ class AccompanyingCourseDocumentWorkflowHandler implements EntityWorkflowHandler | ||||
|         return null; | ||||
|     } | ||||
|  | ||||
|     public function getSuggestedUsers(EntityWorkflow $entityWorkflow): array | ||||
|     { | ||||
|         $suggestedUsers = $entityWorkflow->getUsersInvolved(); | ||||
|  | ||||
|         $referrer = $this->getRelatedEntity($entityWorkflow)->getCourse()->getUser(); | ||||
|         $suggestedUsers[spl_object_hash($referrer)] = $referrer; | ||||
|  | ||||
|         return $suggestedUsers; | ||||
|     } | ||||
|  | ||||
|     public function getTemplate(EntityWorkflow $entityWorkflow, array $options = []): string | ||||
|     { | ||||
|         return '@ChillDocStore/AccompanyingCourseDocument/_workflow.html.twig'; | ||||
|   | ||||
| @@ -2,13 +2,6 @@ | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| /* | ||||
|  * Chill is a software for social workers | ||||
|  * | ||||
|  * For the full copyright and license information, please view | ||||
|  * the LICENSE file that was distributed with this source code. | ||||
|  */ | ||||
|  | ||||
| namespace Chill\Migrations\DocStore; | ||||
|  | ||||
| use Doctrine\DBAL\Schema\Schema; | ||||
|   | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user