• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mpyw / laravel-file-errors / 4401972525

pending completion
4401972525

push

github

mpyw
chore: 🤖 Drop stale version support

24 of 24 relevant lines covered (100.0%)

9.25 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/ValidationServiceProvider.php
1
<?php
2

3
namespace Mpyw\LaravelFileErrors;
4

5
use Illuminate\Support\ServiceProvider;
6
use Illuminate\Validation\Factory;
7

8
/**
9
 * Class ValidationServiceProvider
10
 */
11
class ValidationServiceProvider extends ServiceProvider
12
{
13
    public function register(): void
14
    {
15
        $this->app->extend('validator', static function (Factory $factory) {
9✔
16
            $factory->resolver(static function (...$parameters) {
9✔
17
                return new Validator(...$parameters);
9✔
18
            });
9✔
19
            return $factory;
9✔
20
        });
9✔
21
    }
22
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc