Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change minimal body and chassis length #16

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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog][keepachangelog] and this project adheres to [Semantic Versioning][semver].

## Unreleased

### Changed

- Minimal valid length of chassis_code and body_code is 8 symbols
- Minimal `avto-dev/identity-laravel` version now is `5.9`
- Minimal `avto-dev/extended-laravel-validator` version now is `4.0`

## v3.7.0

### Added
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"fakerphp/faker": "^1.23.1"
},
"require-dev": {
"avto-dev/extended-laravel-validator": "^3.7",
"avto-dev/identity-laravel": "^5.7",
"avto-dev/extended-laravel-validator": "^4.0",
"avto-dev/identity-laravel": "^5.9",
"laravel/laravel": "~10.0 || ~11.0",
"phpstan/phpstan": "^1.10.66",
"phpunit/phpunit": "^10.5"
Expand Down
4 changes: 2 additions & 2 deletions src/Providers/Identifiers/BodyProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class BodyProvider extends AbstractIdentifierProvider
* @var string[]
*/
protected static $formats = [
'#######',
'########',
'??##########',
'???###-#######',
'???### #######',
Expand Down Expand Up @@ -81,7 +81,7 @@ public function invalidBodyCode(...$arguments): string
break;

case 1:
$code = \mb_substr($this->bodyCode(...$arguments), 0, 6);
$code = \mb_substr($this->bodyCode(...$arguments), 0, 7);
break;
}

Expand Down