diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7b729a7..ae2acdf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,10 +38,7 @@ jobs: - run: vendor/bin/rector process --dry-run if: ${{ failure() || success() }} - - run: vendor/bin/simple-phpunit --coverage-clover ./clover.xml --log-junit ./phpunit.report.xml - env: - XDEBUG_MODE: coverage - SYMFONY_DEPRECATIONS_HELPER: disabled + - run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover ./clover.xml --log-junit ./phpunit.report.xml if: ${{ failure() || success() }} # https://community.sonarsource.com/t/code-coverage-doesnt-work-with-github-action/16747 diff --git a/composer.json b/composer.json index 8cafa87..513ee17 100644 --- a/composer.json +++ b/composer.json @@ -1,65 +1,65 @@ -{ - "name": "assoconnect/validator-bundle", - "description": "Custom Symfony validators for common scalar types.", - "type": "symfony-bundle", - "license": "MIT", - "keywords": ["Symfony", "Validation"], - "authors": [ - { - "name": "AssoConnect", - "homepage": "https://www.assoconnect.com" - }, - { - "name": "Sylvain Fabre" - }, - { - "name": "Tristan Pouliquen", - "email": "tristan.pouliquen@yahoo.fr" - } - ], - "autoload": { - "psr-4": { - "AssoConnect\\ValidatorBundle\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "AssoConnect\\ValidatorBundle\\Tests\\": "tests/" - } - }, - "require": { - "doctrine/doctrine-bundle": "^2.12", - "giggsey/libphonenumber-for-php": "^8.13", - "php": "^8.3", - "symfony/http-kernel": "^7.0", - "symfony/validator": "^7.0", - "egulias/email-validator": "^3.2|^4.0", - "symfony/property-access": "^7.0", - "jeremykendall/php-domain-parser": "^6.0", - "moneyphp/money": "^3.0|^4.0", - "assoconnect/php-date": "^2.0", - "doctrine/orm": "^2.7", - "symfony/intl": "^7.0", - "assoconnect/doctrine-types-bundle": "^v2.15", - "assoconnect/php-percent":"^1.1", - "assoconnect/absolute-percent-value-bundle": "^1.5", - "webmozart/assert": "^1.11", - "psr/simple-cache": "^1.0" - }, - "require-dev": { - "doctrine/cache": "~1.0", - "symfony/phpunit-bridge": "^7.0", - "symfony/framework-bundle": "^7.0", - "symfony/yaml": "^7.0", - "dg/bypass-finals": "^1.1", - "assoconnect/php-quality-config": "^2", - "guzzlehttp/guzzle": "^7.7", - "guzzlehttp/psr7": "^2.4.5", - "phpstan/phpstan-symfony": "^2" - }, - "config": { - "allow-plugins": { - "dealerdirect/phpcodesniffer-composer-installer": true - } - } -} +{ + "name": "assoconnect/validator-bundle", + "description": "Custom Symfony validators for common scalar types.", + "type": "symfony-bundle", + "license": "MIT", + "keywords": ["Symfony", "Validation"], + "authors": [ + { + "name": "AssoConnect", + "homepage": "https://www.assoconnect.com" + }, + { + "name": "Sylvain Fabre" + }, + { + "name": "Tristan Pouliquen", + "email": "tristan.pouliquen@yahoo.fr" + } + ], + "autoload": { + "psr-4": { + "AssoConnect\\ValidatorBundle\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "AssoConnect\\ValidatorBundle\\Tests\\": "tests/" + } + }, + "require": { + "doctrine/doctrine-bundle": "^2.12", + "giggsey/libphonenumber-for-php": "^8.13", + "php": "^8.3", + "symfony/http-kernel": "^7.0", + "symfony/validator": "^7.0", + "egulias/email-validator": "^3.2|^4.0", + "symfony/property-access": "^7.0", + "jeremykendall/php-domain-parser": "^6.0", + "moneyphp/money": "^3.0|^4.0", + "assoconnect/php-date": "^2.0", + "doctrine/orm": "^2.7", + "symfony/intl": "^7.0", + "assoconnect/doctrine-types-bundle": "^v2.15", + "assoconnect/php-percent":"^1.1", + "assoconnect/absolute-percent-value-bundle": "^1.5", + "webmozart/assert": "^1.11", + "psr/simple-cache": "^1.0" + }, + "require-dev": { + "doctrine/cache": "~1.0", + "symfony/phpunit-bridge": "^7.0", + "symfony/framework-bundle": "^7.0", + "symfony/yaml": "^7.0", + "dg/bypass-finals": "^1.1", + "assoconnect/php-quality-config": "^2.2", + "guzzlehttp/guzzle": "^7.7", + "guzzlehttp/psr7": "^2.4.5", + "phpstan/phpstan-symfony": "^2" + }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } + } +} diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index e6c5c68..da02d48 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,781 +1,769 @@ -parameters: - ignoreErrors: - - - message: '#^Public property `bool` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEmbeddable.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$absoluteDate\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$array\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$bic\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$bigint\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$bigintUnsigned\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$boolean\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$country\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$currency\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$date\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$datetime\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$decimal\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$email\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$embeddable\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$float\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$frenchRNA\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$frenchSIREN\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$iban\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$id\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$integer\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$ip\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$json\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$latitude\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$locale\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$longitude\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$mainParent\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$money\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$notNullable\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$parentNotNullable\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$parentNullable\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$parents\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$percent\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$phone\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$phonelandline\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$phonemobile\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$smallint\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$smallintUnsigned\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$string\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$text\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$timezone\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$uuid\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$uuid_binary_ordered_time\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Property AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity\:\:\$decimal cannot have float as its type \- floats are not allowed\.$#' - identifier: float.property - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Property AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity\:\:\$float cannot have float as its type \- floats are not allowed\.$#' - identifier: float.property - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Property AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity\:\:\$money cannot have float as its type \- floats are not allowed\.$#' - identifier: float.property - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Property AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity\:\:\$percent cannot have float as its type \- floats are not allowed\.$#' - identifier: float.property - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `absoluteDate` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `array` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `bic` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `bigintUnsigned` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `bigint` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `boolean` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `country` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `currency` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `date` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `datetime` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `decimal` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `email` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `embeddable` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `float` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `frenchRNA` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `frenchSIREN` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `iban` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `id` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `integer` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `ip` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `json` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `latitude` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `locale` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `longitude` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `mainParent` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `money` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `notNullable` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `parentNotNullable` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `parentNullable` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `parents` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `percent` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `phone` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `phonelandline` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `phonemobile` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `smallintUnsigned` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `smallint` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `string` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `text` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `timezone` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `uuid_binary_ordered_time` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Public property `uuid` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntity.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntityParent has an uninitialized property \$id\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntityParent.php - - - - message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntityParent has an uninitialized property \$mainChild\. Give it default value or assign it in the constructor\.$#' - identifier: property.uninitialized - count: 1 - path: src/Test/Functional/App/Entity/MyEntityParent.php - - - - message: '#^Public property `id` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntityParent.php - - - - message: '#^Public property `mainChild` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Test/Functional/App/Entity/MyEntityParent.php - - - - message: '#^Method AssoConnect\\ValidatorBundle\\Validator\\Constraints\\Email\:\:__construct\(\) has parameter \$normalizer with no signature specified for callable\.$#' - identifier: missingType.callable - count: 1 - path: src/Validator/Constraints/Email.php - - - - message: '#^Public property `checkDNS` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/Email.php - - - - message: '#^Public property `dnsMessage` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/Email.php - - - - message: '#^Public property `tldMessage` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/Email.php - - - - message: '#^Public property `message` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/EmployerIdentificationNumber.php - - - - message: '#^Public property `message` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/FloatScale.php - - - - message: '#^Public property `scale` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/FloatScale.php - - - - message: '#^Method AssoConnect\\ValidatorBundle\\Validator\\Constraints\\FrenchRna\:\:__construct\(\) has parameter \$options with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/Validator/Constraints/FrenchRna.php - - - - message: '#^Public property `message` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/FrenchRna.php - - - - message: '#^Method AssoConnect\\ValidatorBundle\\Validator\\Constraints\\FrenchSiren\:\:__construct\(\) has parameter \$options with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/Validator/Constraints/FrenchSiren.php - - - - message: '#^Method AssoConnect\\ValidatorBundle\\Validator\\Constraints\\FrenchSiret\:\:__construct\(\) has parameter \$options with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/Validator/Constraints/FrenchSiret.php - - - - message: '#^Public property `message` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/LastDigitsUsSocialSecurityNumber.php - - - - message: '#^Parameter \#1 \$min of method AssoConnect\\ValidatorBundle\\Validator\\Constraints\\Money\:\:__construct\(\) cannot have float as its type \- floats are not allowed\.$#' - identifier: float.type - count: 1 - path: src/Validator/Constraints/Money.php - - - - message: '#^Parameter \#2 \$max of method AssoConnect\\ValidatorBundle\\Validator\\Constraints\\Money\:\:__construct\(\) cannot have float as its type \- floats are not allowed\.$#' - identifier: float.type - count: 1 - path: src/Validator/Constraints/Money.php - - - - message: '#^Cannot assign float to \$this\->min \- floats are not allowed\.$#' - identifier: float.assign - count: 1 - path: src/Validator/Constraints/Money.php - - - - message: '#^Cannot assign float to \$this\->max \- floats are not allowed\.$#' - identifier: float.assign - count: 1 - path: src/Validator/Constraints/Money.php - - - - message: '#^Property AssoConnect\\ValidatorBundle\\Validator\\Constraints\\Money\:\:\$max cannot have float as its type \- floats are not allowed\.$#' - identifier: float.property - count: 1 - path: src/Validator/Constraints/Money.php - - - - message: '#^Property AssoConnect\\ValidatorBundle\\Validator\\Constraints\\Money\:\:\$min cannot have float as its type \- floats are not allowed\.$#' - identifier: float.property - count: 1 - path: src/Validator/Constraints/Money.php - - - - message: '#^Public property `max` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/Money.php - - - - message: '#^Public property `min` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/Money.php - - - - message: '#^Public property `inexistantMessage` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/Phone.php - - - - message: '#^Public property `invalidCountryCodeMessage` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/Phone.php - - - - message: '#^Public property `message` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/Phone.php - - - - message: '#^Public property `notIntlFormatMessage` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/Phone.php - - - - message: '#^Public property `tooLongMessage` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/Phone.php - - - - message: '#^Public property `tooShortMessage` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/Phone.php - - - - message: '#^Public property `wrongTypeMessage` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/Phone.php - - - - message: '#^Public property `wrongTypeMessage` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/PhoneLandline.php - - - - message: '#^Public property `wrongTypeMessage` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/PhoneMobile.php - - - - message: '#^Public property `countryPropertyPath` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/Postal.php - - - - message: '#^Public property `message` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/Postal.php - - - - message: '#^Public property `missingPostalCodeMessage` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/Postal.php - - - - message: '#^Public property `noPostalCodeMessage` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/Postal.php - - - - message: '#^Public property `unknownCountryMessage` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/Postal.php - - - - message: '#^Public property `message` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/Timezone.php - - - - message: '#^Public property `message` not marked as readonly\.$#' - identifier: shipmonk.publicPropertyNotReadonly - count: 1 - path: src/Validator/Constraints/UsSocialSecurityNumber.php - - - - message: '#^Method AssoConnect\\ValidatorBundle\\Validator\\ConstraintsSetProvider\\Field\\IntegerProvider\:\:getMaxValue\(\) cannot have float\|int as its return type \- floats are not allowed\.$#' - identifier: float.type - count: 1 - path: src/Validator/ConstraintsSetProvider/Field/IntegerProvider.php - - - - message: '#^Method AssoConnect\\ValidatorBundle\\Validator\\ConstraintsSetProvider\\Field\\IntegerProvider\:\:getMinValue\(\) cannot have float\|int as its return type \- floats are not allowed\.$#' - identifier: float.type - count: 1 - path: src/Validator/ConstraintsSetProvider/Field/IntegerProvider.php - - - - message: '#^Method registerBundles always return list, but is marked as iterable\$#' - identifier: shipmonk.returnListNotUsed - count: 1 - path: tests/TestKernel.php +parameters: + ignoreErrors: + - + message: '#^Public property `bool` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEmbeddable.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$absoluteDate\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$array\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$bic\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$bigint\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$bigintUnsigned\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$boolean\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$country\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$currency\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$date\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$datetime\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$decimal\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$email\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$embeddable\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$float\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$frenchRNA\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$frenchSIREN\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$iban\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$id\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$integer\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$ip\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$json\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$latitude\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$locale\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$longitude\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$mainParent\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$money\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$notNullable\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$parentNotNullable\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$parentNullable\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$parents\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$percent\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$phone\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$phonelandline\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$phonemobile\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$smallint\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$smallintUnsigned\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$string\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$text\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$timezone\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$uuid\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity has an uninitialized property \$uuid_binary_ordered_time\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Property AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity\:\:\$decimal cannot have float as its type \- floats are not allowed\.$#' + identifier: float.property + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Property AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity\:\:\$float cannot have float as its type \- floats are not allowed\.$#' + identifier: float.property + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Property AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity\:\:\$money cannot have float as its type \- floats are not allowed\.$#' + identifier: float.property + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Property AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntity\:\:\$percent cannot have float as its type \- floats are not allowed\.$#' + identifier: float.property + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `absoluteDate` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `array` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `bic` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `bigintUnsigned` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `bigint` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `boolean` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `country` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `currency` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `date` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `datetime` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `decimal` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `email` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `embeddable` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `float` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `frenchRNA` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `frenchSIREN` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `iban` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `id` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `integer` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `ip` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `json` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `latitude` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `locale` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `longitude` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `mainParent` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `money` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `notNullable` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `parentNotNullable` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `parentNullable` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `parents` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `percent` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `phone` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `phonelandline` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `phonemobile` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `smallintUnsigned` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `smallint` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `string` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `text` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `timezone` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `uuid_binary_ordered_time` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Public property `uuid` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntity.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntityParent has an uninitialized property \$id\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntityParent.php + + - + message: '#^Class AssoConnect\\ValidatorBundle\\Test\\Functional\\App\\Entity\\MyEntityParent has an uninitialized property \$mainChild\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized + count: 1 + path: src/Test/Functional/App/Entity/MyEntityParent.php + + - + message: '#^Public property `id` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntityParent.php + + - + message: '#^Public property `mainChild` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Test/Functional/App/Entity/MyEntityParent.php + + - + message: '#^Method AssoConnect\\ValidatorBundle\\Validator\\Constraints\\Email\:\:__construct\(\) has parameter \$normalizer with no signature specified for callable\.$#' + identifier: missingType.callable + count: 1 + path: src/Validator/Constraints/Email.php + + - + message: '#^Public property `checkDNS` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/Email.php + + - + message: '#^Public property `dnsMessage` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/Email.php + + - + message: '#^Public property `tldMessage` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/Email.php + + - + message: '#^Public property `message` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/EmployerIdentificationNumber.php + + - + message: '#^Public property `message` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/FloatScale.php + + - + message: '#^Public property `scale` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/FloatScale.php + + - + message: '#^Method AssoConnect\\ValidatorBundle\\Validator\\Constraints\\FrenchRna\:\:__construct\(\) has parameter \$options with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/Validator/Constraints/FrenchRna.php + + - + message: '#^Public property `message` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/FrenchRna.php + + - + message: '#^Public property `message` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/LastDigitsUsSocialSecurityNumber.php + + - + message: '#^Parameter \#1 \$min of method AssoConnect\\ValidatorBundle\\Validator\\Constraints\\Money\:\:__construct\(\) cannot have float as its type \- floats are not allowed\.$#' + identifier: float.type + count: 1 + path: src/Validator/Constraints/Money.php + + - + message: '#^Parameter \#2 \$max of method AssoConnect\\ValidatorBundle\\Validator\\Constraints\\Money\:\:__construct\(\) cannot have float as its type \- floats are not allowed\.$#' + identifier: float.type + count: 1 + path: src/Validator/Constraints/Money.php + + - + message: '#^Cannot assign float to \$this\->min \- floats are not allowed\.$#' + identifier: float.assign + count: 1 + path: src/Validator/Constraints/Money.php + + - + message: '#^Cannot assign float to \$this\->max \- floats are not allowed\.$#' + identifier: float.assign + count: 1 + path: src/Validator/Constraints/Money.php + + - + message: '#^Property AssoConnect\\ValidatorBundle\\Validator\\Constraints\\Money\:\:\$max cannot have float as its type \- floats are not allowed\.$#' + identifier: float.property + count: 1 + path: src/Validator/Constraints/Money.php + + - + message: '#^Property AssoConnect\\ValidatorBundle\\Validator\\Constraints\\Money\:\:\$min cannot have float as its type \- floats are not allowed\.$#' + identifier: float.property + count: 1 + path: src/Validator/Constraints/Money.php + + - + message: '#^Public property `max` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/Money.php + + - + message: '#^Public property `min` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/Money.php + + - + message: '#^Public property `inexistantMessage` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/Phone.php + + - + message: '#^Public property `invalidCountryCodeMessage` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/Phone.php + + - + message: '#^Public property `message` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/Phone.php + + - + message: '#^Public property `notIntlFormatMessage` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/Phone.php + + - + message: '#^Public property `tooLongMessage` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/Phone.php + + - + message: '#^Public property `tooShortMessage` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/Phone.php + + - + message: '#^Public property `wrongTypeMessage` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/Phone.php + + - + message: '#^Public property `wrongTypeMessage` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/PhoneLandline.php + + - + message: '#^Public property `wrongTypeMessage` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/PhoneMobile.php + + - + message: '#^Public property `countryPropertyPath` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/Postal.php + + - + message: '#^Public property `message` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/Postal.php + + - + message: '#^Public property `missingPostalCodeMessage` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/Postal.php + + - + message: '#^Public property `noPostalCodeMessage` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/Postal.php + + - + message: '#^Public property `unknownCountryMessage` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/Postal.php + + - + message: '#^Public property `message` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/Timezone.php + + - + message: '#^Public property `message` not marked as readonly\.$#' + identifier: shipmonk.publicPropertyNotReadonly + count: 1 + path: src/Validator/Constraints/UsSocialSecurityNumber.php + + - + message: '#^Method AssoConnect\\ValidatorBundle\\Validator\\ConstraintsSetProvider\\Field\\IntegerProvider\:\:getMaxValue\(\) cannot have float\|int as its return type \- floats are not allowed\.$#' + identifier: float.type + count: 1 + path: src/Validator/ConstraintsSetProvider/Field/IntegerProvider.php + + - + message: '#^Method AssoConnect\\ValidatorBundle\\Validator\\ConstraintsSetProvider\\Field\\IntegerProvider\:\:getMinValue\(\) cannot have float\|int as its return type \- floats are not allowed\.$#' + identifier: float.type + count: 1 + path: src/Validator/ConstraintsSetProvider/Field/IntegerProvider.php + + - + message: '#^Method registerBundles always return list, but is marked as iterable\$#' + identifier: shipmonk.returnListNotUsed + count: 1 + path: tests/TestKernel.php diff --git a/phpunit.xml.dist b/phpunit.xml.dist index ea70e73..e381b42 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,22 +1,20 @@ - + - - - - - ./src - - ./tests/ + + + ./src + + diff --git a/src/Validator/Constraints/FrenchSiren.php b/src/Validator/Constraints/FrenchSiren.php index f9903b1..460278a 100755 --- a/src/Validator/Constraints/FrenchSiren.php +++ b/src/Validator/Constraints/FrenchSiren.php @@ -14,6 +14,10 @@ class FrenchSiren extends Luhn { public const INVALID_FORMAT_ERROR = '4d762774-3g50-4bd5-a6d5-b10a3299d8d3'; + /** + * @param array|null $options + * @param array|null $groups + */ public function __construct( ?array $options = null, ?string $message = null, diff --git a/src/Validator/Constraints/FrenchSiret.php b/src/Validator/Constraints/FrenchSiret.php index 616a7d8..63460ea 100644 --- a/src/Validator/Constraints/FrenchSiret.php +++ b/src/Validator/Constraints/FrenchSiret.php @@ -14,6 +14,10 @@ class FrenchSiret extends Luhn { public const INVALID_FORMAT_ERROR = 'cbe06561-776e-45c2-b33c-a73141746d43'; + /** + * @param array|null $options + * @param array|null $groups + */ public function __construct( ?array $options = null, ?string $message = null, diff --git a/tests/Validator/Constraints/EntityValidatorTest.php b/tests/Validator/Constraints/EntityValidatorTest.php index ad49faf..392df45 100644 --- a/tests/Validator/Constraints/EntityValidatorTest.php +++ b/tests/Validator/Constraints/EntityValidatorTest.php @@ -153,6 +153,20 @@ public static function providerValidValues(): iterable return []; } + public function testValidValues(mixed $value = null): void + { + self::markTestSkipped('EntityValidator validates fields based on Doctrine metadata, not raw values'); + } + + public function testInvalidValues( + mixed $value = null, + string $code = '', + string $message = '', + ?array $parameters = null + ): void { + self::markTestSkipped('EntityValidator validates fields based on Doctrine metadata, not raw values'); + } + private function getMockClassMetadata(): \stdClass { $metadata = new \stdClass(); diff --git a/tests/Validator/Constraints/PostalValidatorTest.php b/tests/Validator/Constraints/PostalValidatorTest.php index eeaddf5..dd441fd 100644 --- a/tests/Validator/Constraints/PostalValidatorTest.php +++ b/tests/Validator/Constraints/PostalValidatorTest.php @@ -157,4 +157,18 @@ public static function providerInvalidValues(): iterable { return []; } + + public function testValidValues(mixed $value = null): void + { + self::markTestSkipped('PostalValidator requires object context with a country property, not a raw value'); + } + + public function testInvalidValues( + mixed $value = null, + string $code = '', + string $message = '', + ?array $parameters = null + ): void { + self::markTestSkipped('PostalValidator requires object context with a country property, not a raw value'); + } }