Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php-versions: [ '8.1', '8.2', '8.3', '8.4' ]
php-versions: [ '8.2', '8.3', '8.4', '8.5' ]
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}

steps:
Expand Down
41 changes: 0 additions & 41 deletions .scrutinizer.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2025 odan
Copyright (c) 2026 odan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ the [notification pattern](https://martinfowler.com/articles/replaceThrowWithNot

## Requirements

* PHP 8.1 - 8.4
* PHP 8.2 - 8.5

## Installation

Expand Down
18 changes: 8 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
"psr15"
],
"require": {
"php": "8.1.* || 8.2.* || 8.3.* || 8.4.*",
"php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0",
"ext-json": "*",
"psr/http-factory": "^1.0.1",
"psr/http-factory": "^1.1.0",
"psr/http-server-middleware": "^1.0.1"
},
"require-dev": {
"cakephp/validation": "^4.2",
"cakephp/validation": "^5.3",
"fig/http-message-util": "^1.1",
"friendsofphp/php-cs-fixer": "^3",
"nyholm/psr7": "^1.4",
"phpstan/phpstan": "^1 || ^2",
"phpunit/phpunit": "^10",
"relay/relay": "^2.0",
"phpstan/phpstan": "^2",
"phpunit/phpunit": "^11",
"relay/relay": "^3.0",
"slim/psr7": "^1",
"squizlabs/php_codesniffer": "^3"
},
Expand All @@ -43,12 +43,10 @@
},
"scripts": {
"cs:check": [
"@putenv PHP_CS_FIXER_IGNORE_ENV=1",
"php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php --ansi"
"php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php --ansi --allow-unsupported-php-version=yes"
],
"cs:fix": [
"@putenv PHP_CS_FIXER_IGNORE_ENV=1",
"php-cs-fixer fix --config=.cs.php --ansi --verbose"
"php-cs-fixer fix --config=.cs.php --ansi --verbose --allow-unsupported-php-version=yes"
],
"sniffer:check": "phpcs --standard=phpcs.xml",
"sniffer:fix": "phpcbf --standard=phpcs.xml",
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
bootstrap="vendor/autoload.php"
colors="true"
backupGlobals="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false">
<coverage/>
Expand Down
4 changes: 2 additions & 2 deletions tests/Encoder/JsonEncoderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace Selective\Validation\Test\Encoder;

use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
use Selective\Validation\Encoder\JsonEncoder;
use UnexpectedValueException;

/**
* Tests.
*
* @coversDefaultClass \Selective\Validation\Encoder\JsonEncoder
*/
#[CoversClass(JsonEncoder::class)]
class JsonEncoderTest extends TestCase
{
/**
Expand Down
4 changes: 2 additions & 2 deletions tests/Exception/ValidationExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace Selective\Validation\Test\Exception;

use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
use Selective\Validation\Exception\ValidationException;
use Selective\Validation\Test\TestService;

/**
* Tests.
*
* @coversDefaultClass \Selective\Validation\Exception\ValidationException
*/
#[CoversClass(ValidationException::class)]
class ValidationExceptionTest extends TestCase
{
/**
Expand Down
4 changes: 2 additions & 2 deletions tests/Middleware/ValidationExceptionMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

use Fig\Http\Message\StatusCodeInterface;
use Nyholm\Psr7\Factory\Psr17Factory;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
use Selective\Validation\Encoder\JsonEncoder;
use Selective\Validation\Middleware\ValidationExceptionMiddleware;
use Selective\Validation\Transformer\ErrorDetailsResultTransformer;

/**
* Tests.
*
* @coversDefaultClass \Selective\Validation\Middleware\ValidationExceptionMiddleware
*/
#[CoversClass(ValidationExceptionMiddleware::class)]
class ValidationExceptionMiddlewareTest extends TestCase
{
use MiddlewareTestTrait;
Expand Down
4 changes: 2 additions & 2 deletions tests/Transformer/ErrorDetailsTransformerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace Selective\Validation\Test\Transformer;

use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
use Selective\Validation\Transformer\ErrorDetailsResultTransformer;
use Selective\Validation\ValidationResult;

/**
* Tests.
*
* @coversDefaultClass \Selective\Validation\Transformer\ErrorDetailsResultTransformer
*/
#[CoversClass(ErrorDetailsResultTransformer::class)]
class ErrorDetailsTransformerTest extends TestCase
{
/**
Expand Down
4 changes: 2 additions & 2 deletions tests/ValidationErrorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

namespace Selective\Validation\Test;

use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
use Selective\Validation\ValidationError;

/**
* Tests.
*
* @coversDefaultClass \Selective\Validation\ValidationError
*/
#[CoversClass(ValidationError::class)]
class ValidationErrorTest extends TestCase
{
/**
Expand Down
4 changes: 2 additions & 2 deletions tests/ValidationResultTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace Selective\Validation\Test;

use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
use Selective\Validation\ValidationError;
use Selective\Validation\ValidationResult;

/**
* ValidationResult tests.
*
* @coversDefaultClass \Selective\Validation\ValidationResult
*/
#[CoversClass(ValidationResult::class)]
class ValidationResultTest extends TestCase
{
/**
Expand Down