Skip to content

Update for Cake 5.x #1

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

Merged
merged 10 commits into from
Apr 21, 2025
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: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# CakePHP4 Messages Validator plugin
# CakePHP5 Messages Validator plugin

CakePHP4 Validator that set the validation message
CakePHP5 Validator that set the validation message

## Requirements

The master branch has the following requirements:

* CakePHP >4.0.0
* PHP 7.2 or greater
* CakePHP ^5.0.1
* PHP 8.1 or greater

## Installation

Expand Down
2 changes: 1 addition & 1 deletion bin/createValidator
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ for method in $VALIDATOR_METHODS; do
fi

echo ' /**'
echo ' * {@inheritDoc}'
echo ' * @inheritDoc'
echo ' */'
echo ' '$method
echo ' {'
Expand Down
17 changes: 11 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "tyrellsys/cakephp-validator",
"description": "CakePHP4 Validator that set the validation message",
"description": "CakePHP5 Validator that set the validation message",
"type": "cakephp-plugin",
"require": {
"php": ">=7.2",
"cakephp/cakephp": "^4.0"
"php": ">=8.1",
"cakephp/cakephp": "^5.0.1"
},
"require-dev": {
"cakephp/cakephp-codesniffer": "~4.0.0",
"phpunit/phpunit": "^8.5"
"cakephp/cakephp-codesniffer": "^5.0",
"phpunit/phpunit": "^10.1.0"
},
"autoload": {
"psr-4": {
Expand All @@ -28,6 +28,11 @@
],
"test": "phpunit",
"cs-check": "phpcs --colors -p src/ tests/",
"cs-fix": "phpcs --colors -p src/ tests/"
"cs-fix": "phpcbf --colors -p src/ tests/"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
Loading