No description
  • PHP 99.1%
  • Shell 0.9%
Find a file
Henrique Moody 94ddfcd0bd
Create named constructor to create Result
The constructor of `Result` has many arguments, but that's not the
primary reason why I'm making this change. I want to change the
constructor, and it will become more complicated, so having this named
constructor will be useful in the next refactoring.

With this change, I also made the `id` mandatory. That made the
constructor look neater and most to promote almost all properties to the
constructor.

Another change was removing the `fromAdjacent` method, which was quite
confusing. I created the `asAdjacentOf` method, which is a bit clearer.
If anything, it makes all static methods named constructors. It will be
a bit more verbose, but more intuitive.
2025-12-26 22:34:43 +01:00
.github Bump PHP support from 8.1 to 8.5 2025-12-18 19:03:38 +01:00
bin Remove deprecated rules 2025-12-18 17:22:51 +01:00
data/domain/public-suffix Update Regional Information 2024-03-25 18:43:50 +01:00
docs Replace placeholder "name" with "subject" 2025-12-26 21:30:01 +01:00
library Create named constructor to create Result 2025-12-26 22:34:43 +01:00
tests Create named constructor to create Result 2025-12-26 22:34:43 +01:00
.docheader Use SPDX IDs for licensing 2023-02-19 00:19:10 -03:00
.gitattributes Update list of files to be exported by Git 2020-07-29 10:35:36 +02:00
.gitignore Upgrade "phpunit/phpunit" 2024-01-28 14:16:52 +01:00
.readthedocs.yaml Create Read the Docs configuration file 2024-01-28 21:50:01 +01:00
CHANGELOG.md Check if property is initialized before getting its value 2024-01-27 20:36:01 +01:00
codecov.yml Use Pest instead of PHPT files 2024-12-16 17:07:47 +01:00
composer.json Use a DI container to create instances of Validator 2025-12-22 13:12:04 +01:00
CONTRIBUTING.md Replace placeholder "name" with "subject" 2025-12-26 21:30:01 +01:00
LICENSE Dusting off. See CHANGELOG.md for more details on this commit 2023-02-13 03:59:11 -03:00
mkdocs.yml Create MkDocs configuration file 2018-12-11 09:25:41 +01:00
phpcs.xml.dist Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
phpstan.neon.dist Do not overwrite existing names 2025-12-26 14:48:23 +01:00
phpunit.xml.dist Remove "uopz" as a dependency to run tests 2025-12-18 14:13:09 +01:00
README.md Improve the "Feature Guide" documentation 2024-12-05 00:21:34 +01:00

Respect\Validation

Build Status Code Coverage Latest Stable Version Total Downloads License

The most awesome validation engine ever created for PHP.

Learn More: